/* ============================================================
   SAFAR AR ROOH SHOP — store.css
   Matches main website design system exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500;600;700&family=Noto+Naskh+Arabic:wght@400;600;700&display=swap');

/* ── Design Tokens (identical to main site) ───────────── */
:root {
  --gold:        #C8A45A;
  --gold-light:  #E8C97A;
  --gold-dark:   #8B6914;
  --gold-pale:   #F5E6C0;
  --teal:        #1F8B8B;
  --teal-light:  #2DBDBD;
  --deep:        #080C18;
  --deep2:       #0C1022;
  --deep3:       #111630;
  --cream:       #FAF3E0;
  --text:        #EDE5D0;
  --text-muted:  #9A8870;
  --text-soft:   #C4B898;
  --card-bg:     rgba(255,255,255,0.03);
  --card-border: rgba(200,164,90,0.18);
  --success:     #2DBDBD;
  --error:       #E07070;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px;
  --t: all 0.32s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Cinzel', serif;
  --font-serif:   'Cormorant Garamond', serif;
  --font-arabic:  'Noto Naskh Arabic', serif;
  --font-body:    'Jost', sans-serif;
  --shadow-deep:  0 20px 80px rgba(0,0,0,0.5);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--deep); color: var(--text); font-family: var(--font-body); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

/* ── Utility ──────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Background ───────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 15% 40%, #0d1a3a 0%, #080C18 55%),
              radial-gradient(ellipse at 85% 70%, #0a1a1a 0%, transparent 60%);
}
.particle-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,90,0.6), transparent 70%);
  animation: pDrift var(--dur,12s) var(--delay,0s) ease-in-out infinite; opacity: 0;
}
@keyframes pDrift {
  0%{transform:translateY(100vh) translateX(0);opacity:0}
  10%,90%{opacity:var(--op,0.12)}
  100%{transform:translateY(-20vh) translateX(var(--drift,30px));opacity:0}
}

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.9rem 0;
  background: rgba(8,12,24,0.65); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(200,164,90,0.12); transition: var(--t);
}
.navbar.scrolled { padding: 0.55rem 0; background: rgba(8,12,24,0.95); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo {
  height: 46px;
  transition: var(--t);
  border-radius: 50%;
  border: 1.5px solid rgba(200,164,90,0.45);
  padding: 3px;
  background: rgba(200,164,90,0.06);
  box-shadow:
    0 0 0 1px rgba(200,164,90,0.15),
    0 0 16px rgba(200,164,90,0.25),
    0 3px 10px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(200,164,90,0.08);
  animation: logoGlow 4s ease-in-out infinite;
}

.nav-logo:hover {
  border-color: rgba(200,164,90,0.8);
  background: rgba(200,164,90,0.1);
  box-shadow:
    0 0 0 2px rgba(200,164,90,0.25),
    0 0 28px rgba(200,164,90,0.55),
    0 4px 14px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(200,164,90,0.15);
  transform: scale(1.06);
}

@keyframes logoGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(200,164,90,0.15),
      0 0 14px rgba(200,164,90,0.2),
      0 3px 10px rgba(0,0,0,0.6);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(200,164,90,0.25),
      0 0 24px rgba(200,164,90,0.4),
      0 4px 14px rgba(0,0,0,0.7);
  }
}

.nav-logo:hover {
  filter:
    drop-shadow(0 0 22px rgba(200,164,90,0.7))
    drop-shadow(0 4px 14px rgba(0,0,0,0.8));
  transform: scale(1.06);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-en { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.18em; color: var(--gold); }
.nav-brand-ar { font-family: var(--font-arabic); font-size: 0.75rem; color: var(--text-soft); direction: rtl; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-search-btn {
  padding: 0.5rem 1rem; border-radius: 8px;
  background: rgba(200,164,90,0.06); border: 1px solid rgba(200,164,90,0.15);
  color: var(--text-muted); font-size: 0.82rem; display: flex; align-items: center; gap: 0.4rem;
  transition: var(--t);
}
.nav-search-btn:hover { background: rgba(200,164,90,0.12); color: var(--gold); }
.nav-main-link {
  padding: 0.45rem 0.9rem; font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--text-muted); border-radius: 6px; transition: var(--t); font-weight: 500;
  text-transform: uppercase;
}
.nav-main-link:hover { color: var(--gold); }
.cart-btn {
  position: relative; padding: 0.5rem 1.1rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0f00; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(200,164,90,0.3); transition: var(--t);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,164,90,0.5); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--teal-light); color: var(--deep); border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8,12,24,0.96);
  backdrop-filter: blur(30px); display: none; flex-direction: column;
  align-items: center; justify-content: flex-start; padding-top: 12vh;
}
.search-overlay.open { display: flex; }
.search-box { width: min(600px, 90vw); position: relative; }
.search-box input {
  width: 100%; padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(200,164,90,0.3);
  border-radius: var(--r-lg); color: var(--text); font-size: 1.1rem;
  outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.search-box-icon { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
.search-close {
  position: absolute; top: 1.5rem; right: 2rem; font-size: 1.5rem;
  color: var(--text-muted); cursor: pointer; transition: color .3s;
}
.search-close:hover { color: var(--gold); }
.search-results { width: min(600px, 90vw); margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.search-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem; border-radius: var(--r-sm);
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: var(--t); cursor: pointer;
}
.search-result-item:hover { border-color: rgba(200,164,90,0.35); background: rgba(200,164,90,0.06); }
.search-result-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: rgba(200,164,90,0.1); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.search-result-name { font-size: 0.88rem; color: var(--text); }
.search-result-price { font-size: 0.8rem; color: var(--gold); margin-top: 0.15rem; }

/* ── Mobile drawer ────────────────────────────────────── */
.nav-drawer {
  position: fixed; inset: 0; z-index: 999; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  background: rgba(8,12,24,0.98); backdrop-filter: blur(30px);
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-main-link { font-size: 1.1rem; padding: 0.7rem 2rem; }

/* ── Cart Drawer ──────────────────────────────────────── */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1500;
  width: min(420px, 100vw); background: var(--deep2);
  border-left: 1px solid rgba(200,164,90,0.15);
  transform: translateX(100%); transition: transform .4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay { position: fixed; inset: 0; z-index: 1400; background: rgba(0,0,0,0.6); display: none; }
.cart-overlay.open { display: block; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid rgba(200,164,90,0.1); }
.cart-header h2 { font-family: var(--font-display); font-size: 1rem; color: var(--gold-light); }
.cart-close { font-size: 1.4rem; color: var(--text-muted); cursor: pointer; transition: color .3s; }
.cart-close:hover { color: var(--gold); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: rgba(200,164,90,0.2); border-radius: 2px; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty .cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.cart-item { display: flex; gap: 1rem; padding: 1rem; border-radius: var(--r-sm); background: rgba(255,255,255,0.02); border: 1px solid rgba(200,164,90,0.1); }
.cart-item-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: rgba(200,164,90,0.08); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-variant { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.cart-item-price { font-size: 0.85rem; color: var(--gold); margin-top: 0.3rem; }
.cart-item-controls { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
.qty-btn { width: 24px; height: 24px; border-radius: 6px; background: rgba(200,164,90,0.1); border: 1px solid rgba(200,164,90,0.2); color: var(--gold); font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--t); }
.qty-btn:hover { background: rgba(200,164,90,0.2); }
.qty-val { font-size: 0.85rem; width: 28px; text-align: center; color: var(--text); }
.cart-item-remove { font-size: 0.75rem; color: var(--text-muted); cursor: pointer; transition: color .3s; margin-left: auto; align-self: flex-start; }
.cart-item-remove:hover { color: var(--error); }
.cart-footer { padding: 1.2rem 1.5rem; border-top: 1px solid rgba(200,164,90,0.1); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-subtotal span { font-size: 0.82rem; color: var(--text-muted); }
.cart-subtotal strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); }
.btn-checkout {
  display: block; width: 100%; text-align: center; padding: 1rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%; animation: gShimmer 4s ease infinite;
  color: #1a0f00; border-radius: 50px; font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 6px 30px rgba(200,164,90,0.4); transition: var(--t); cursor: pointer;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(200,164,90,0.6); }
@keyframes gShimmer { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.06em; transition: var(--t); cursor: pointer; }
.btn-gold { background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light)); background-size: 200% 200%; animation: gShimmer 4s ease infinite; color: #1a0f00; box-shadow: 0 6px 30px rgba(200,164,90,0.4); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(200,164,90,0.6); }
.btn-outline { border: 1.5px solid rgba(200,164,90,0.4); color: var(--gold); background: rgba(200,164,90,0.05); }
.btn-outline:hover { background: rgba(200,164,90,0.12); border-color: var(--gold); }
.btn-teal { background: linear-gradient(135deg, #0d4040, var(--teal), var(--teal-light)); background-size: 200% 200%; animation: tShimmer 5s ease infinite; color: var(--cream); }
.btn-teal:hover { transform: translateY(-2px); }
@keyframes tShimmer { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.btn-add-to-cart { width: 100%; justify-content: center; padding: 0.9rem; font-size: 0.85rem; }

/* ── Section header ───────────────────────────────────── */
.section-tag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal-light); padding: 0.28rem 1rem; border: 1px solid rgba(31,139,139,0.3); border-radius: 30px; background: rgba(31,139,139,0.06); margin-bottom: 0.9rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem); color: var(--gold-light); line-height: 1.15; }
.section-title-ar { display: block; font-family: var(--font-arabic); direction: rtl; font-size: clamp(0.95rem,2vw,1.2rem); color: var(--text-muted); margin-top: 0.3rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.8rem 0; opacity: 0.4; }
.ornament::before,.ornament::after { content:''; flex:1; max-width:100px; height:1px; background:linear-gradient(to right,transparent,var(--gold),transparent); }
.ornament span { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.5rem; }

/* ── Product Card ─────────────────────────────────────── */
.product-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-md); overflow: hidden; transition: var(--t);
  position: relative; display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
}
.product-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent); transform:scaleX(0); transition:transform .4s; }
.product-card:hover { transform: translateY(-8px); border-color: rgba(200,164,90,0.35); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.product-card:hover::before { transform:scaleX(1); }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: rgba(200,164,90,0.04); display: flex; align-items: center; justify-content: center; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-img-placeholder { font-size: 4rem; opacity: 0.35; }
.product-badge { position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.22rem 0.7rem; border-radius: 20px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-sale { background: rgba(200,164,90,0.2); border: 1px solid rgba(200,164,90,0.3); color: var(--gold); }
.badge-new { background: rgba(31,139,139,0.2); border: 1px solid rgba(31,139,139,0.3); color: var(--teal-light); }
.badge-featured { background: rgba(200,164,90,0.15); border: 1px solid var(--gold-dark); color: var(--gold-light); }
.product-quick-add { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.7rem; background: rgba(8,12,24,0.9); transform: translateY(100%); transition: transform .3s ease; }
.product-card:hover .product-quick-add { transform: translateY(0); }
.product-info { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--teal-light); text-transform: uppercase; margin-bottom: 0.4rem; }
.product-name { font-family: var(--font-display); font-size: 0.92rem; color: var(--gold-light); margin-bottom: 0.2rem; line-height: 1.3; }
.product-name-ar { font-family: var(--font-arabic); direction: rtl; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.product-price-row { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; }
.product-price { font-family: var(--font-display); font-size: 1rem; color: var(--gold); }
.product-compare { font-size: 0.78rem; color: var(--text-muted); text-decoration: line-through; }
.product-discount { font-size: 0.65rem; padding: 0.15rem 0.5rem; background: rgba(200,164,90,0.1); border-radius: 4px; color: var(--gold-light); }

/* ── Grid layouts ─────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; }
.products-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1.2rem; }

/* ── Filter sidebar ───────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.filter-sidebar { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.filter-sidebar::-webkit-scrollbar { width: 3px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: rgba(200,164,90,0.2); }
.filter-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-md); padding: 1.5rem; margin-bottom: 1.2rem; }
.filter-title { font-family: var(--font-display); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.filter-check { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; cursor: pointer; }
.filter-check input { accent-color: var(--gold); width: 15px; height: 15px; }
.filter-check span { font-size: 0.82rem; color: var(--text-muted); transition: color .3s; }
.filter-check:hover span { color: var(--gold-light); }
.price-range { display: flex; gap: 0.6rem; align-items: center; }
.price-input { flex:1; background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,90,0.2); border-radius: 8px; padding: 0.5rem 0.7rem; color: var(--text); font-size: 0.82rem; outline: none; width: 100%; }
.price-input:focus { border-color: rgba(200,164,90,0.4); }
.filter-clear { font-size: 0.72rem; color: var(--text-muted); cursor: pointer; transition: color .3s; margin-top: 0.8rem; display: block; }
.filter-clear:hover { color: var(--gold); }

/* ── Sort bar ─────────────────────────────────────────── */
.shop-top-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.results-count { font-size: 0.82rem; color: var(--text-muted); }
.sort-select { background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,90,0.2); border-radius: 8px; padding: 0.5rem 0.9rem; color: var(--text); font-size: 0.82rem; outline: none; cursor: pointer; appearance: none; padding-right: 2rem; }
.sort-select:focus { border-color: rgba(200,164,90,0.4); }

/* ── Toast ────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.6rem; }
.toast { padding: 0.85rem 1.3rem; border-radius: var(--r-sm); display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; min-width: 260px; animation: toastIn .3s ease; backdrop-filter: blur(20px); }
.toast-success { background: rgba(31,139,139,0.2); border: 1px solid rgba(31,139,139,0.4); color: var(--teal-light); }
.toast-error { background: rgba(224,112,112,0.2); border: 1px solid rgba(224,112,112,0.4); color: var(--error); }
.toast-info { background: rgba(200,164,90,0.15); border: 1px solid rgba(200,164,90,0.3); color: var(--gold-light); }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }
.toast-out { animation: toastOut .3s ease forwards; }
@keyframes toastOut { to{opacity:0;transform:translateX(20px)} }

/* ── Page hero (shop, product, checkout) ──────────────── */
.page-hero { padding: 8rem 0 3rem; text-align: center; position: relative; z-index: 2; }
.page-title { font-family: var(--font-display); font-size: clamp(2rem,5vw,3.8rem); color: var(--gold-light); line-height: 1.1; }
.page-title-ar { display: block; font-family: var(--font-arabic); direction: rtl; font-size: clamp(1.1rem,2.5vw,1.8rem); color: var(--text-muted); margin-top: 0.3rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); justify-content: center; margin-top: 1rem; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { opacity: 0.4; }

/* ── Product detail ───────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery { position: sticky; top: 5.5rem; }
.gallery-main { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: rgba(200,164,90,0.04); border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; font-size: 8rem; margin-bottom: 0.8rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.6rem; }
.gallery-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(200,164,90,0.15); cursor: pointer; transition: var(--t); flex-shrink: 0; background: rgba(200,164,90,0.04); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.gallery-thumb.active,.gallery-thumb:hover { border-color: var(--gold); }
.product-detail-name { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.2rem); color: var(--gold-light); line-height: 1.2; margin-bottom: 0.3rem; }
.product-detail-name-ar { font-family: var(--font-arabic); direction: rtl; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-detail-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); margin-bottom: 1.5rem; }
.product-detail-price .compare { font-size: 1rem; text-decoration: line-through; color: var(--text-muted); margin-left: 0.8rem; }
.product-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 1.5rem; }
.variant-group { margin-bottom: 1.5rem; }
.variant-label { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.6rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-opt { padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.82rem; border: 1px solid rgba(200,164,90,0.2); color: var(--text-muted); cursor: pointer; transition: var(--t); background: rgba(200,164,90,0.04); }
.variant-opt.active,.variant-opt:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,164,90,0.1); }
.qty-control { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.qty-control label { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; }
.qty-wrap { display: flex; align-items: center; gap: 0; border: 1px solid rgba(200,164,90,0.2); border-radius: 10px; overflow: hidden; }
.qty-dec,.qty-inc { width: 38px; height: 38px; background: rgba(200,164,90,0.06); font-size: 1.1rem; color: var(--gold); display: flex; align-items: center; justify-content: center; transition: var(--t); }
.qty-dec:hover,.qty-inc:hover { background: rgba(200,164,90,0.15); }
.qty-num { width: 44px; text-align: center; font-size: 0.95rem; color: var(--text); background: rgba(200,164,90,0.03); border-left: 1px solid rgba(200,164,90,0.1); border-right: 1px solid rgba(200,164,90,0.1); line-height: 38px; }
.add-to-cart-main { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; }
.btn-wishlist { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(200,164,90,0.3); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--t); flex-shrink: 0; }
.btn-wishlist:hover { background: rgba(200,164,90,0.1); }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); padding: 1rem 0; border-top: 1px solid rgba(200,164,90,0.08); }
.product-meta-row span { display: flex; align-items: center; gap: 0.4rem; }

/* ── Checkout ─────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.checkout-form-section { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 2rem; margin-bottom: 1.5rem; }
.checkout-section-title { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold-light); letter-spacing: 0.1em; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(200,164,90,0.1); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,90,0.2);
  border-radius: var(--r-sm); padding: 0.8rem 1rem; color: var(--text);
  font-size: 0.88rem; outline: none; transition: border-color .3s; width: 100%;
}
.form-input::placeholder,.form-textarea::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-input:focus,.form-select:focus,.form-textarea:focus { border-color: rgba(200,164,90,0.45); background: rgba(200,164,90,0.03); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--deep2); }
.form-textarea { resize: vertical; min-height: 90px; }

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 0.8rem; }
.payment-opt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); border: 1.5px solid rgba(200,164,90,0.15); cursor: pointer; transition: var(--t); }
.payment-opt.selected,.payment-opt:hover { border-color: var(--gold); background: rgba(200,164,90,0.05); }
.payment-opt input[type=radio] { accent-color: var(--gold); }
.payment-opt-label { flex: 1; }
.payment-opt-name { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.payment-opt-sub { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.15rem; }
.payment-opt-icons { font-size: 1.2rem; }

/* Order summary */
.order-summary { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r-lg); padding: 1.8rem; position: sticky; top: 5.5rem; }
.order-summary-title { font-family: var(--font-display); font-size: 0.9rem; color: var(--gold-light); margin-bottom: 1.5rem; }
.summary-items { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.summary-item { display: flex; align-items: center; gap: 1rem; }
.summary-item-img { width: 52px; height: 52px; border-radius: 8px; background: rgba(200,164,90,0.08); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.summary-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.summary-item-name { font-size: 0.82rem; color: var(--text); flex: 1; }
.summary-item-qty { font-size: 0.72rem; color: var(--text-muted); }
.summary-item-price { font-size: 0.85rem; color: var(--gold); }
.summary-line { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.summary-total { display: flex; justify-content: space-between; padding-top: 0.8rem; border-top: 1px solid rgba(200,164,90,0.12); margin-top: 0.5rem; }
.summary-total span { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.coupon-row { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.coupon-input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(200,164,90,0.2); border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--text); font-size: 0.82rem; outline: none; }
.coupon-btn { padding: 0.6rem 1rem; border-radius: 8px; background: rgba(200,164,90,0.1); border: 1px solid rgba(200,164,90,0.25); color: var(--gold); font-size: 0.78rem; cursor: pointer; transition: var(--t); }
.coupon-btn:hover { background: rgba(200,164,90,0.2); }

/* ── Order success ────────────────────────────────────── */
.success-wrap { text-align: center; padding: 5rem 2rem; max-width: 600px; margin: 0 auto; }
.success-icon { font-size: 5rem; margin-bottom: 1.5rem; animation: successBounce 0.6s ease; }
@keyframes successBounce { 0%{transform:scale(0)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }
.success-title { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); margin-bottom: 0.5rem; }
.success-order { font-family: var(--font-display); font-size: 1rem; color: var(--teal-light); margin-bottom: 1rem; }
.success-msg { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }

/* ── Footer ───────────────────────────────────────────── */
.shop-footer { border-top: 1px solid rgba(200,164,90,0.1); padding: 3rem 0 2rem; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-logo {
  height: 52px;
  margin-bottom: 0.9rem;
  filter:
    drop-shadow(0 0 14px rgba(200,164,90,0.3))
    drop-shadow(0 3px 10px rgba(0,0,0,0.7));
  transition: var(--t);
  animation: logoGlow 5s ease-in-out infinite;
}
.footer-logo {
  height: 52px;
  margin-bottom: 0.9rem;
  transition: var(--t);
  border-radius: 50%;
  border: 1.5px solid rgba(200,164,90,0.35);
  padding: 4px;
  background: rgba(200,164,90,0.05);
  box-shadow:
    0 0 0 1px rgba(200,164,90,0.12),
    0 0 18px rgba(200,164,90,0.2),
    0 4px 12px rgba(0,0,0,0.6);
  animation: logoGlow 5s ease-in-out infinite;
}

.footer-logo:hover {
  border-color: rgba(200,164,90,0.7);
  box-shadow:
    0 0 0 2px rgba(200,164,90,0.2),
    0 0 28px rgba(200,164,90,0.45),
    0 4px 14px rgba(0,0,0,0.7);
  transform: scale(1.04);
}
.footer-about { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; max-width: 260px; }
.footer-heading { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(200,164,90,0.07); font-size: 0.73rem; color: var(--text-muted); }
.footer-arabic { font-family: var(--font-arabic); direction: rtl; }

/* ── Newsletter ───────────────────────────────────────── */
.newsletter-section { background: rgba(31,139,139,0.06); border-top: 1px solid rgba(31,139,139,0.12); border-bottom: 1px solid rgba(31,139,139,0.12); padding: 3.5rem 0; text-align: center; position: relative; z-index: 2; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 440px; margin: 1.5rem auto 0; }
.newsletter-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(200,164,90,0.25); border-radius: 50px; padding: 0.8rem 1.3rem; color: var(--text); font-size: 0.85rem; outline: none; }
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-btn { padding: 0.8rem 1.5rem; border-radius: 50px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #1a0f00; font-size: 0.82rem; font-weight: 700; border: none; cursor: pointer; transition: var(--t); flex-shrink: 0; }
.newsletter-btn:hover { transform: translateY(-2px); }

/* ── Reveal ───────────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease,transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ── Loading skeleton ─────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: skelAnim 1.5s infinite; border-radius: 8px; }
@keyframes skelAnim { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Responsive ───────────────────────────────────────── */
@media(max-width:1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; max-height: none; }
  .filter-sidebar { display: none; }
  .filter-sidebar.open { display: block; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media(max-width:768px) {
  .nav-actions .nav-main-link { display: none; }
  .nav-toggle { display: flex; }
  .container { padding: 0 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .order-summary { position: static; }
}
@media(max-width:480px) {
  html { font-size: 15px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-info { padding: 0.8rem; }
  .product-name { font-size: 0.8rem; }
  .page-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .add-to-cart-main { flex-direction: column; }
}
