/*
Theme Name: OneStodz Arabic
Theme URI: https://onestodz.com/
Description: واجهة عربية RTL عصرية لمتجر OneStodz مبنية على Shoptimizer.
Author: OneStodz
Template: shoptimizer
Version: 1.0.0
Text Domain: onestodz-arabic
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --os-navy: #0b1f33;
  --os-navy-2: #12304a;
  --os-teal: #0e9f9a;
  --os-teal-dark: #087b78;
  --os-gold: #f2bd4b;
  --os-coral: #f47752;
  --os-cream: #fffaf0;
  --os-bg: #f5f8fb;
  --os-text: #172b3d;
  --os-muted: #607286;
  --os-border: #e4ebf1;
  --os-shadow: 0 16px 45px rgba(11, 31, 51, 0.10);
}

html { direction: rtl; }
body {
  direction: rtl;
  font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
  color: var(--os-text);
  background: var(--os-bg);
  line-height: 1.85;
}

body, button, input, textarea, select { font-family: 'Cairo', 'Tajawal', Arial, sans-serif; }
a { color: var(--os-teal-dark); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--os-coral); }

.site-header {
  background: linear-gradient(120deg, var(--os-navy) 0%, var(--os-navy-2) 58%, var(--os-teal-dark) 100%);
  color: #fff;
  border-bottom: 4px solid var(--os-gold);
  box-shadow: 0 8px 28px rgba(11,31,51,.18);
}
.site-header .col-full { max-width: 1240px; }
.site-branding { padding: 24px 0 12px; }
.site-branding a,
.site-header .site-title a { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.site-title { font-size: 2rem; margin: 0; }
.site-description { color: rgba(255,255,255,.82); margin: 2px 0 0; font-size: .95rem; }

.site-navigation, .main-navigation { background: transparent; }
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a { color: #fff; font-weight: 600; padding: 12px 15px; }
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover { color: var(--os-gold); }
.main-navigation ul ul { background: var(--os-navy); border-top: 3px solid var(--os-gold); }
.main-navigation ul ul a { color: #fff; }

.site-header .site-search { margin: 15px 0; }
.site-header .site-search .widget_product_search form { display: flex; gap: 8px; }
.site-header .site-search input[type='search'] {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
}
.site-header .site-search input::placeholder { color: rgba(255,255,255,.8); }
.site-header-cart a.cart-contents { color: #fff; font-weight: 700; }
.site-header-cart a.cart-contents:hover { color: var(--os-gold); }

#content, .site-content { padding-top: 32px; padding-bottom: 48px; }
.col-full, .site-main { max-width: 1240px; }
.entry-header { background: transparent; text-align: center; padding: 18px 0 8px; }
.entry-title, .page-title { color: var(--os-navy); font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 800; }

.os-hero {
  position: relative;
  overflow: hidden;
  margin: 10px auto 36px;
  max-width: 1240px;
  border-radius: 28px;
  padding: clamp(34px, 6vw, 78px) clamp(24px, 6vw, 80px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(242,189,75,.35), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(14,159,154,.45), transparent 30%),
    linear-gradient(125deg, #0b1f33 0%, #12304a 60%, #087b78 100%);
  box-shadow: 0 24px 60px rgba(11,31,51,.22);
}
.os-hero::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  left: -90px; bottom: -120px;
  border: 2px solid rgba(242,189,75,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(242,189,75,.08), 0 0 0 48px rgba(242,189,75,.04);
}
.os-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.os-eyebrow { color: var(--os-gold); font-weight: 800; letter-spacing: .04em; margin: 0 0 12px; }
.os-hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1.2; margin: 0 0 20px; font-weight: 800; }
.os-hero p { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 660px; }
.os-hero .button, .os-hero a.button {
  display: inline-block; margin-top: 18px; background: var(--os-gold); color: var(--os-navy);
  border: 0; border-radius: 999px; padding: 13px 28px; font-weight: 800;
  box-shadow: 0 10px 20px rgba(0,0,0,.14);
}
.os-hero .button:hover { background: #ffd875; color: var(--os-navy); transform: translateY(-2px); }
.os-points { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 18px 0 0; margin: 0; list-style: none; color: rgba(255,255,255,.85); }
.os-points li::before { content: '✦'; color: var(--os-gold); margin-left: 7px; }

.button, button, input[type='button'], input[type='reset'], input[type='submit'], .added_to_cart {
  border: 0; border-radius: 999px; background: var(--os-teal); color: #fff; font-weight: 700; padding: 11px 22px; transition: all .2s ease;
}
.button:hover, button:hover, input[type='submit']:hover, .added_to_cart:hover { background: var(--os-coral); color: #fff; transform: translateY(-2px); }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 25px 0 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; padding: 18px 18px 22px !important;
  background: #fff; border: 1px solid var(--os-border); border-radius: 20px; text-align: right;
  box-shadow: var(--os-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(11,31,51,.15); }
.woocommerce ul.products li.product a img { border-radius: 14px; background: linear-gradient(135deg,#edf5f7,#fffaf0); padding: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--os-navy); font-size: 1.1rem; font-weight: 800; min-height: 58px; }
.woocommerce ul.products li.product .price { color: var(--os-teal-dark); font-size: 1.15rem; font-weight: 800; }
.woocommerce ul.products li.product .button { width: 100%; text-align: center; margin-top: 12px; }
.woocommerce span.onsale { background: var(--os-coral); color: #fff; border-radius: 999px; min-height: auto; padding: 7px 12px; line-height: 1.4; }

.woocommerce div.product { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--os-shadow); }
.woocommerce div.product .product_title { color: var(--os-navy); font-weight: 800; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--os-teal-dark); font-size: 1.55rem; font-weight: 800; }
.woocommerce div.product form.cart .button { background: var(--os-coral); }
.woocommerce div.product form.cart .button:hover { background: var(--os-teal); }

.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--os-teal); border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(11,31,51,.07); }
.woocommerce table.shop_table { background: #fff; border: 1px solid var(--os-border); border-radius: 15px; overflow: hidden; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: #fff; border: 1px solid var(--os-border); border-radius: 18px; padding: 22px; box-shadow: var(--os-shadow); }

.site-footer { background: var(--os-navy); color: rgba(255,255,255,.78); border-top: 5px solid var(--os-gold); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--os-gold); }

@media (max-width: 900px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .site-branding { text-align: center; }
  .os-hero { border-radius: 20px; }
}
@media (max-width: 560px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .os-hero { padding: 32px 22px; }
  .os-hero h1 { font-size: 2.1rem; }
  .os-points { display: block; }
  .os-points li { margin: 5px 0; }
}
