/* =====================================================================
   Abu Ahmad Attars — Main stylesheet (layout, components, animations)
   Loads AFTER theme.css. Uses only CSS variables from theme.css.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
/* Faint embroidered arabesque woven across the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='0.6' stroke-opacity='0.07'%3E%3Cpath d='M40 8c8 8 8 16 0 24-8-8-8-16 0-24zM40 48c8 8 8 16 0 24-8-8-8-16 0-24zM8 40c8-8 16-8 24 0-8 8-16 8-24 0zM48 40c8-8 16-8 24 0-8 8-16 8-24 0z'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
  animation: weave 80s linear infinite;
}
@keyframes weave { to { background-position: 320px 320px; } }
/* Large slow-revolving mandala anchored in the centre of the page */
body::after {
  content: ""; position: fixed; top: 50%; left: 50%; z-index: 0; pointer-events: none;
  width: min(86vmin, 860px); height: min(86vmin, 860px); transform: translate(-50%, -50%);
  opacity: .09;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='0.8'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Cellipse cx='100' cy='100' rx='6' ry='92'/%3E%3Cellipse cx='100' cy='100' rx='6' ry='92' transform='rotate(30 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='6' ry='92' transform='rotate(60 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='6' ry='92' transform='rotate(90 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='6' ry='92' transform='rotate(120 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='6' ry='92' transform='rotate(150 100 100)'/%3E%3Ccircle cx='100' cy='100' r='64' stroke-dasharray='2 8'/%3E%3Ccircle cx='100' cy='100' r='48'/%3E%3Cellipse cx='100' cy='100' rx='7' ry='44' transform='rotate(15 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='7' ry='44' transform='rotate(45 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='7' ry='44' transform='rotate(75 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='7' ry='44' transform='rotate(105 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='7' ry='44' transform='rotate(135 100 100)'/%3E%3Cellipse cx='100' cy='100' rx='7' ry='44' transform='rotate(165 100 100)'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='10'/%3E%3C/g%3E%3C/svg%3E");
  animation: bgSpin 260s linear infinite;
}
@keyframes bgSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.site-header, main, .site-footer, .whatsapp-float, .to-top, .qv-modal, .cart-drawer, .nav-backdrop, .mobile-nav { position: relative; z-index: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.14; letter-spacing: 0; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Gold accent words — graceful script with shimmer -------------------- */
.text-gold { color: var(--brand-gold); }
.gold-text {
  font-family: var(--font-script); font-weight: 400;
  font-size: 1.24em; line-height: .9; padding-right: .06em;
  background: var(--gold-shimmer);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: goldShimmer 6s linear infinite;
}
@keyframes goldShimmer { to { background-position: 220% center; } }

/* Mandala divider with reveal -----------------------------------------*/
.divider { display:flex; align-items:center; justify-content:center; gap:18px; margin:18px 0 0; }
.divider::before, .divider::after {
  content:""; height:1px; width:72px; background:var(--gold-gradient);
  transform-origin:center; animation:drawLine 1.2s var(--ease) both;
}
.divider::after { animation-delay:.1s; }
.divider span {
  width:38px; height:38px; font-size:0; color:transparent; display:inline-block;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='1.1'%3E%3Cellipse cx='20' cy='20' rx='3.4' ry='15'/%3E%3Cellipse cx='20' cy='20' rx='3.4' ry='15' transform='rotate(45 20 20)'/%3E%3Cellipse cx='20' cy='20' rx='3.4' ry='15' transform='rotate(90 20 20)'/%3E%3Cellipse cx='20' cy='20' rx='3.4' ry='15' transform='rotate(135 20 20)'/%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='20' cy='20' r='2' fill='%23d9b44a'/%3E%3C/g%3E%3C/svg%3E");
  animation:ornamentSpin 1.1s var(--ease) both;
}
@keyframes drawLine { from { transform:scaleX(0); opacity:0; } to { transform:scaleX(1); opacity:1; } }
@keyframes ornamentSpin { from { transform:rotate(-120deg) scale(0); opacity:0; } to { transform:rotate(0) scale(1); opacity:1; } }
@keyframes ornamentReveal { from { transform:translateY(14px) scale(.6); opacity:0; } to { transform:none; opacity:1; } }

/* Buttons ------------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; gap:.55em;
  padding:.95em 1.8em; border-radius:50px; border:1px solid transparent;
  font-family: var(--font-label); font-weight:600; letter-spacing:.11em; font-size:.78rem; text-transform:uppercase;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.btn-gold {
  background: var(--gold-shimmer); background-size: 200% auto; color:#161202; box-shadow: var(--glow-gold);
  position: relative; overflow: hidden; font-weight: 600;
}
.btn-gold::after {                       /* embroidered light sweep */
  content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(var(--brand-gold-rgb), .4); }
.btn-gold:hover::after { left: 130%; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); position: relative; }
.btn-ghost:hover { background: rgba(var(--brand-gold-rgb), .1); border-color: var(--brand-gold); transform: translateY(-3px); }

/* =====================================================================
   HEADER  (sticky + glassmorphism)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.topbar {
  font-size:.78rem; letter-spacing:.04em; color: var(--text-muted);
  border-bottom:1px solid var(--border); background: var(--bg-2);
}
.topbar .container { display:flex; justify-content:space-between; align-items:center; min-height:38px; gap:16px; }
.topbar .ticker { white-space:nowrap; overflow:hidden; }
.topbar .ticker span { color: var(--brand-gold); }
.topbar-right { display:flex; gap:16px; align-items:center; }
.topbar-right a:hover { color: var(--brand-gold); }

.header-main { display:flex; align-items:center; gap:22px; min-height: var(--header-h); }

/* Logo ---------------------------------------------------------------- */
.logo { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.logo-crest { display:grid; place-items:center; filter: drop-shadow(0 2px 6px rgba(var(--brand-gold-rgb),.25)); transition: transform .5s var(--ease); }
.logo:hover .logo-crest { transform: rotate(-4deg) scale(1.05); }
.logo svg { display:block; }
.logo .logo-text { display:flex; flex-direction:column; line-height:1; }
.logo .logo-text b { font-family:var(--font-display); font-weight:700; font-size:1.18rem; letter-spacing:.02em; color:var(--text); }
.logo .logo-text small { font-family:var(--font-serif); font-size:.7rem; letter-spacing:.3em; color: var(--brand-gold); text-transform:uppercase; margin-top:4px; }

/* Primary nav + mega menu -------------------------------------------- */
.primary-nav { display:flex; align-items:center; gap:6px; margin-inline:auto; }
.primary-nav > li > a, .nav-trigger {
  display:flex; align-items:center; gap:6px;
  padding:10px 14px; border-radius: var(--radius-sm);
  font-weight:500; font-size:.95rem; color: var(--text);
  background:none; border:none;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.primary-nav > li > a:hover, .nav-trigger:hover,
.has-mega:hover .nav-trigger { color: var(--brand-gold); background: rgba(var(--brand-gold-rgb), .08); }
.nav-trigger .chev { transition: transform .3s var(--ease); font-size:.7rem; }
.has-mega:hover .nav-trigger .chev { transform: rotate(180deg); }

.has-mega { position: static; }
.mega {
  position:absolute; left:0; right:0; top:100%;
  background: var(--surface); border-top:1px solid var(--border-strong);
  box-shadow: var(--shadow);
  opacity:0; visibility:hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  z-index: 90;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity:1; visibility:visible; transform: translateY(0); }
.mega-grid { display:grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap:28px; padding:30px 0 36px; }
@media (max-width:1180px){ .mega-grid { grid-template-columns: repeat(3,1fr); } }
.mega-col h4 { font-size:.82rem; text-transform:uppercase; letter-spacing:.14em; color:var(--brand-gold); margin-bottom:14px; }
.mega-col a { display:block; padding:7px 0; color:var(--text-muted); font-size:.92rem; border-bottom:1px solid transparent; transition:.25s var(--ease); }
.mega-col a:hover { color:var(--text); padding-left:8px; border-color:var(--border); }
.mega-promo {
  border-radius: var(--radius); padding:22px; color:#fff;
  background: var(--gold-gradient); display:flex; flex-direction:column; justify-content:flex-end;
  min-height:300px; position:relative; overflow:hidden;
}
.mega-preview { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; transition:opacity .4s var(--ease), transform .6s var(--ease); }
.mega-promo:hover .mega-preview { transform:scale(1.05); }
.mega-promo::after { content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(8,14,10,.88) 8%, rgba(8,14,10,.25) 55%, rgba(8,14,10,.1) 100%); }
.mega-promo-body { position:relative; z-index:2; }
.mega-promo-body h4 { color:#fff; font-size:1.3rem; margin:0 0 .15em; }
.mega-promo-body p { margin:.2em 0 1em; font-size:.85rem; color:var(--brand-gold-soft); opacity:.95; }
.mega-promo .btn { background:var(--brand-gold); color:#161202; align-self:flex-start; padding:.6em 1.3em; border:0; }

/* Header actions (search, theme, cart) ------------------------------- */
.header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.icon-btn {
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:50%; border:1px solid var(--border); background:var(--glass);
  color:var(--text); position:relative; transition:.3s var(--ease);
}
.icon-btn:hover { color:var(--brand-gold); border-color:var(--brand-gold); transform:translateY(-2px); }
.icon-btn svg { width:20px; height:20px; }
.cart-count {
  position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 5px;
  background:var(--gold-gradient); color:#161202; font-size:.7rem; font-weight:700;
  border-radius:10px; display:grid; place-items:center; line-height:1;
}
.menu-toggle { display:none; }

/* Search bar (expands under header) ---------------------------------- */
.search-panel {
  max-height:0; overflow:hidden; border-top:0 solid var(--border);
  transition: max-height .4s var(--ease), border-color .4s;
  background: var(--bg-2);
}
.search-panel.open { max-height:120px; border-top:1px solid var(--border); overflow:visible; }
.search-panel form { display:flex; gap:10px; padding:18px 0; }
.search-panel input {
  flex:1; padding:14px 18px; border-radius:50px; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--text); font-size:1rem;
}
.search-panel input::placeholder { color:var(--text-faint); }

/* =====================================================================
   HERO  (parallax)
   ===================================================================== */
.hero {
  position:relative; min-height: clamp(560px, 86vh, 860px);
  display:flex; align-items:center; overflow:hidden;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(var(--brand-gold-rgb), .14), transparent 60%), var(--bg);
}
.hero-bg {
  position:absolute; inset:-12% 0 0; z-index:0;
  background:
    radial-gradient(600px 600px at 80% 30%, rgba(var(--brand-gold-rgb), .18), transparent 70%),
    radial-gradient(500px 500px at 15% 80%, rgba(var(--brand-gold-rgb), .10), transparent 70%);
  will-change: transform;
}
.hero-pattern { position:absolute; inset:0; z-index:0; opacity:.5; }
.hero::after { content:""; position:absolute; inset:0; z-index:1; background: var(--hero-overlay); }
.hero .container { position:relative; z-index:2; }
.hero-content { max-width:680px; }
.hero .eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  letter-spacing:.32em; text-transform:uppercase; font-size:.78rem;
  color:var(--brand-gold); margin-bottom:22px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom:.25em; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.25rem); color:var(--text-muted); max-width:540px; margin-bottom:2em; }
.hero-cta { display:flex; gap:14px; flex-wrap:wrap; }
.scroll-cue {
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:2;
  color:var(--text-faint); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.scroll-cue .mouse { width:24px; height:38px; border:2px solid var(--border-strong); border-radius:14px; position:relative; }
.scroll-cue .mouse::before { content:""; position:absolute; top:7px; left:50%; width:4px; height:7px; border-radius:2px; background:var(--brand-gold); transform:translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} }

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
section { padding: clamp(56px, 8vw, 110px) 0; position:relative; }
.section-head { text-align:center; max-width:680px; margin:0 auto clamp(34px,5vw,60px); }
.section-head .eyebrow { color:var(--brand-gold); letter-spacing:.28em; text-transform:uppercase; font-size:.76rem; font-weight:600; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin:.3em 0; }
.section-head p { color:var(--text-muted); }

/* Category showcase --------------------------------------------------- */
.cat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:22px; }
.cat-card {
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); background: var(--card-bg);
  padding:34px 24px; min-height:230px; display:flex; flex-direction:column; justify-content:flex-end;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.cat-card::before {
  content:""; position:absolute; inset:0; z-index:0;
  background: radial-gradient(300px 200px at 80% 0%, rgba(var(--brand-gold-rgb), .16), transparent 70%);
  opacity:0; transition: opacity var(--speed) var(--ease);
}
.cat-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.cat-card:hover::before { opacity:1; }
.cat-card .cat-ico { width:54px; height:54px; margin-bottom:auto; color:var(--brand-gold); position:relative; z-index:1; }
.cat-card h3 { font-size:1.25rem; position:relative; z-index:1; margin-bottom:.1em; }
.cat-card span { color:var(--text-muted); font-size:.85rem; position:relative; z-index:1; }
.cat-card .go { position:relative; z-index:1; color:var(--brand-gold); font-size:.85rem; margin-top:12px; opacity:0; transform:translateX(-6px); transition:.3s var(--ease); }
.cat-card:hover .go { opacity:1; transform:translateX(0); }

/* Product grid -------------------------------------------------------- */
.product-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap:24px; }
.product-card {
  border-radius: var(--radius); overflow:hidden; border:1px solid var(--border);
  background: var(--card-bg); display:flex; flex-direction:column;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-media { position:relative; aspect-ratio: 1/1.08; background: var(--bg-2); overflow:hidden; }
.product-media .placeholder-bottle { width:100%; height:100%; }
.product-media .badge {
  position:absolute; top:12px; left:12px; z-index:2;
  background: var(--gold-gradient); color:#161202; font-size:.7rem; font-weight:700;
  padding:5px 11px; border-radius:50px; letter-spacing:.04em;
}
.product-media .wish {
  position:absolute; top:10px; right:10px; z-index:2;
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background: rgba(12,11,9,.5); color:#fff; border:1px solid var(--border); backdrop-filter: blur(6px);
  opacity:0; transform: translateY(-6px); transition:.3s var(--ease);
}
.product-card:hover .wish { opacity:1; transform: translateY(0); }
.product-media .quick-add {
  position:absolute; left:12px; right:12px; bottom:12px; z-index:2;
  opacity:0; transform: translateY(14px); transition:.35s var(--ease);
  justify-content:center; width:auto;
}
.product-card:hover .quick-add { opacity:1; transform: translateY(0); }
.product-body { padding:18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-body .scent { font-size:.72rem; text-transform:uppercase; letter-spacing:.16em; color:var(--brand-gold); }
.product-body h3 { font-size:1.08rem; margin:0; }
.product-body .desc { font-size:.85rem; color:var(--text-muted); flex:1; }
.product-meta { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.price .now { font-weight:700; color:var(--text); font-size:1.12rem; }
.price .was { color:var(--text-faint); text-decoration:line-through; font-size:.85rem; margin-left:6px; }
.stars { color:var(--brand-gold); font-size:.85rem; letter-spacing:1px; }
.stars .star { color: var(--text-faint); }
.stars .star.full, .stars .star.half { color: var(--brand-gold); }
.review-count { color:var(--text-faint); font-size:.78rem; margin-left:4px; }

/* =====================================================================
   COUNTERS
   ===================================================================== */
.counters { background: var(--bg-2); border-block:1px solid var(--border); }
.counter-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:30px; text-align:center; }
.counter-item .num { font-family:var(--font-head); font-size: clamp(2.4rem,5vw,3.6rem); font-weight:700; line-height:1; }
.counter-item .num .gold-text { display:inline; }
.counter-item .label { color:var(--text-muted); letter-spacing:.08em; margin-top:8px; font-size:.92rem; }
.counter-item .ico { color:var(--brand-gold); width:34px; height:34px; margin:0 auto 14px; }

/* =====================================================================
   ISLAMIC QUOTE
   ===================================================================== */
.quote {
  text-align:center; position:relative; overflow:hidden;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(var(--brand-gold-rgb), .1), transparent 70%), var(--bg);
}
.quote .ornament { color:var(--brand-gold); font-size:2.4rem; opacity:.8; }
.quote blockquote { max-width:820px; margin:18px auto; }
.quote .arabic { font-family:var(--font-arabic); font-size: clamp(1.8rem,4vw,2.8rem); color:var(--brand-gold-soft); line-height:1.9; margin-bottom:.4em; direction:rtl; }
.quote .translation { font-family:var(--font-head); font-size: clamp(1.1rem,2.4vw,1.6rem); font-style:italic; }
.quote .ref { color:var(--text-muted); letter-spacing:.16em; text-transform:uppercase; font-size:.78rem; margin-top:1.2em; }

/* =====================================================================
   TESTIMONIALS SLIDER
   ===================================================================== */
.testi-viewport { overflow:hidden; }
.testi-track { display:flex; transition: transform .6s var(--ease); }
.testi-slide { min-width:100%; padding:6px; }
@media (min-width:760px){ .testi-slide { min-width:50%; } }
@media (min-width:1080px){ .testi-slide { min-width:33.333%; } }
.testi-card {
  height:100%; border:1px solid var(--border); border-radius: var(--radius);
  background: var(--card-bg); padding:30px 28px; display:flex; flex-direction:column; gap:14px;
}
.testi-card .stars { font-size:1rem; }
.testi-card p { color:var(--text); font-style:italic; flex:1; }
.testi-author { display:flex; align-items:center; gap:12px; }
.testi-author .avatar {
  width:46px; height:46px; border-radius:50%; display:grid; place-items:center;
  background: var(--gold-gradient); color:#161202; font-weight:700; font-family:var(--font-head);
}
.testi-author b { display:block; }
.testi-author small { color:var(--text-muted); }
.testi-controls { display:flex; justify-content:center; gap:12px; margin-top:30px; }
.testi-controls button {
  width:48px; height:48px; border-radius:50%; border:1px solid var(--border-strong);
  background:var(--glass); color:var(--text); display:grid; place-items:center; transition:.3s var(--ease);
}
.testi-controls button:hover { background:var(--gold-gradient); color:#161202; border-color:transparent; }

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.newsletter { position:relative; }
.newsletter-card {
  border-radius: var(--radius-lg); border:1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(var(--brand-gold-rgb), .12), var(--surface));
  padding: clamp(34px,5vw,60px); text-align:center; position:relative; overflow:hidden;
}
.newsletter-card h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); }
.newsletter-card p { color:var(--text-muted); max-width:520px; margin:0 auto 26px; }
.newsletter-form { display:flex; gap:12px; max-width:520px; margin:0 auto; flex-wrap:wrap; }
.newsletter-form input {
  flex:1; min-width:220px; padding:15px 22px; border-radius:50px;
  border:1px solid var(--border-strong); background:var(--bg); color:var(--text); font-size:1rem;
}
.newsletter-note { font-size:.78rem; color:var(--text-faint); margin-top:14px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--bg-2); border-top:1px solid var(--border); padding-top: clamp(50px,7vw,84px); }
.footer-grid { display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap:40px; }
.footer-brand p { color:var(--text-muted); font-size:.9rem; margin:16px 0; max-width:320px; }
.footer-col h4 { font-size:.85rem; text-transform:uppercase; letter-spacing:.14em; color:var(--brand-gold); margin-bottom:18px; }
.footer-col a { display:block; padding:7px 0; color:var(--text-muted); font-size:.9rem; transition:.25s var(--ease); }
.footer-col a:hover { color:var(--brand-gold); padding-left:6px; }
.footer-contact li { display:flex; gap:10px; color:var(--text-muted); font-size:.9rem; padding:6px 0; }
.footer-contact svg { width:18px; height:18px; color:var(--brand-gold); flex-shrink:0; margin-top:3px; }
.social-row { display:flex; gap:12px; margin-top:18px; }
.social-row a { width:42px; height:42px; border-radius:50%; border:1px solid var(--border); display:grid; place-items:center; color:var(--text); transition:.3s var(--ease); }
.social-row a:hover { background:var(--gold-gradient); color:#161202; transform:translateY(-3px); }
.payment-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.payment-row span { font-size:.72rem; border:1px solid var(--border); border-radius:6px; padding:6px 10px; color:var(--text-muted); }
.footer-bottom {
  border-top:1px solid var(--border); margin-top: clamp(34px,5vw,56px);
  padding:24px 0; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  font-size:.84rem; color:var(--text-faint);
}

/* =====================================================================
   WHATSAPP FLOATING BUTTON
   ===================================================================== */
.whatsapp-float {
  position:fixed; right:22px; bottom:22px; z-index:120;
  width:60px; height:60px; border-radius:50%;
  background:#25d366; color:#fff; display:grid; place-items:center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  animation: waPulse 2.6s infinite;
}
.whatsapp-float svg { width:32px; height:32px; }
.whatsapp-float::after {
  content: attr(data-label); position:absolute; right:72px; white-space:nowrap;
  background: var(--surface); color: var(--text); border:1px solid var(--border);
  padding:8px 14px; border-radius:50px; font-size:.82rem; box-shadow: var(--shadow-sm);
  opacity:0; transform: translateX(10px); pointer-events:none; transition:.3s var(--ease);
}
.whatsapp-float:hover::after { opacity:1; transform: translateX(0); }
@keyframes waPulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* Back-to-top --------------------------------------------------------- */
.to-top {
  position:fixed; right:22px; bottom:92px; z-index:115;
  width:46px; height:46px; border-radius:50%; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--brand-gold); display:grid; place-items:center;
  opacity:0; visibility:hidden; transform: translateY(12px); transition:.35s var(--ease);
}
.to-top.show { opacity:1; visibility:visible; transform: translateY(0); }

/* =====================================================================
   SCROLL-REVEAL  (IntersectionObserver toggles .is-visible)
   ===================================================================== */
.reveal { opacity:0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity:1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }
.reveal[data-delay="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
  html { scroll-behavior:auto; }
  .whatsapp-float, .scroll-cue .mouse::before { animation:none; }
}

/* =====================================================================
   MOBILE NAV DRAWER
   ===================================================================== */
.nav-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.6); opacity:0; visibility:hidden; transition:.3s; z-index:130; }
.nav-backdrop.open { opacity:1; visibility:visible; }
.mobile-nav {
  position:fixed; top:0; right:-100%; width:min(86vw,360px); height:100%; z-index:131;
  background: var(--surface); border-left:1px solid var(--border-strong);
  padding:22px; overflow-y:auto; transition: right .4s var(--ease);
}
.mobile-nav.open { right:0; }
.mobile-nav .close { margin-left:auto; }
.mobile-nav ul.m-cats { margin-top:18px; }
.mobile-nav .m-cats > li { border-bottom:1px solid var(--border); }
.mobile-nav .m-cats > li > a, .mobile-nav .m-cats > li > button {
  width:100%; text-align:left; background:none; border:none; color:var(--text);
  padding:15px 4px; font-size:1.02rem; display:flex; justify-content:space-between; align-items:center;
}
.mobile-nav .m-sub { max-height:0; overflow:hidden; transition: max-height .35s var(--ease); }
.mobile-nav .m-sub.open { max-height:400px; }
.mobile-nav .m-sub a { padding:11px 16px; color:var(--text-muted); display:block; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .primary-nav, .topbar { display:none; }
  .menu-toggle { display:grid; }
  .mega-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .hero-cta { width:100%; }
  .hero-cta .btn { flex:1; justify-content:center; }
  .whatsapp-float::after { display:none; }
}

/* =====================================================================
   PHASE 2 — CATALOG (listing, detail, search, quick view)
   ===================================================================== */

/* Breadcrumb */
.breadcrumb { display:flex; gap:8px; align-items:center; padding-top:22px; font-size:.84rem; color:var(--text-muted); flex-wrap:wrap; }
.breadcrumb a:hover { color:var(--brand-gold); }
.breadcrumb span[aria-current] { color:var(--brand-gold); }

/* Product media: <a> wrapped image/placeholder + stacked tools */
.product-media img { width:100%; height:100%; object-fit:cover; }
.card-tools { position:absolute; top:10px; right:10px; z-index:3; display:flex; flex-direction:column; gap:8px; opacity:0; transform:translateY(-6px); transition:.3s var(--ease); }
.product-card:hover .card-tools { opacity:1; transform:translateY(0); }
.card-tools .wish {
  position:static; width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background:rgba(12,11,9,.55); color:#fff; border:1px solid var(--border); backdrop-filter:blur(6px); transition:.25s var(--ease);
}
.card-tools .wish:hover, .card-tools .wish.active { background:var(--gold-gradient); color:#161202; border-color:transparent; }

/* ---------- Shop layout ---------- */
.shop-layout { display:grid; grid-template-columns:260px 1fr; gap:34px; align-items:start; }
.shop-filters { position:sticky; top:calc(var(--header-h) + 20px); border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:22px; }
.filter-block { padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--border); }
.filter-block:last-of-type { border-bottom:none; }
.filter-block h4 { font-size:.82rem; text-transform:uppercase; letter-spacing:.12em; color:var(--brand-gold); margin-bottom:12px; }
.filter-cats a { display:block; padding:7px 0; color:var(--text-muted); font-size:.92rem; transition:.2s var(--ease); }
.filter-cats a:hover { color:var(--text); padding-left:6px; }
.filter-cats a.active { color:var(--brand-gold); font-weight:600; }
.price-inputs { display:flex; align-items:center; gap:8px; }
.price-inputs input { width:100%; padding:10px 12px; border-radius:var(--radius-sm); border:1px solid var(--border-strong); background:var(--surface); color:var(--text); }
.filter-radio { display:flex; align-items:center; gap:9px; padding:6px 0; color:var(--text-muted); font-size:.92rem; cursor:pointer; }
.filter-radio input { accent-color:var(--brand-gold); }
.filter-actions { display:flex; gap:10px; flex-wrap:wrap; }
.filter-actions .btn { padding:.7em 1.2em; font-size:.88rem; }

.shop-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:24px; flex-wrap:wrap; }
.sort-control { display:flex; align-items:center; gap:10px; font-size:.88rem; color:var(--text-muted); margin-left:auto; }
.sort-control select { padding:10px 14px; border-radius:50px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); font-size:.9rem; }
.filter-toggle { display:none; padding:.6em 1.1em; font-size:.88rem; }

.pagination { display:flex; justify-content:center; gap:8px; margin-top:48px; }
.pagination a { min-width:44px; height:44px; padding:0 8px; display:grid; place-items:center; border-radius:var(--radius-sm); border:1px solid var(--border); color:var(--text); font-size:.95rem; transition:.25s var(--ease); }
.pagination a:hover { border-color:var(--brand-gold); color:var(--brand-gold); }
.pagination a.active { background:var(--gold-gradient); color:#161202; border-color:transparent; font-weight:700; }

.empty-state { text-align:center; padding:60px 20px; border:1px dashed var(--border-strong); border-radius:var(--radius-lg); }
.empty-state h3, .empty-state h1 { margin:14px 0 8px; }
.empty-state p { color:var(--text-muted); margin-bottom:22px; }

/* ---------- Product detail ---------- */
.pd-grid { display:grid; grid-template-columns:1.05fr 1fr; gap:46px; align-items:start; }
.pd-gallery { position:sticky; top:calc(var(--header-h) + 20px); }
.pd-main { border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:var(--bg-2); aspect-ratio:1/1.05; }
.pd-main img, .pd-main svg { width:100%; height:100%; object-fit:cover; }
.pd-thumbs { display:flex; gap:12px; margin-top:14px; }
.pd-thumb { width:78px; height:78px; border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--border); background:var(--bg-2); padding:0; transition:.25s var(--ease); }
.pd-thumb img, .pd-thumb svg { width:100%; height:100%; object-fit:cover; }
.pd-thumb.active, .pd-thumb:hover { border-color:var(--brand-gold); }

.pd-summary .scent { font-size:.76rem; text-transform:uppercase; letter-spacing:.16em; color:var(--brand-gold); }
.pd-summary h1 { font-size:clamp(1.8rem,4vw,2.7rem); margin:.2em 0 .35em; }
.pd-rating { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
.pd-rating a { color:var(--text-muted); font-size:.85rem; }
.pd-rating .stock { font-size:.78rem; padding:4px 10px; border-radius:50px; font-weight:600; }
.pd-rating .stock.in { background:rgba(99,153,34,.15); color:#9fd35a; }
.pd-rating .stock.out { background:rgba(226,75,74,.15); color:#f0999b; }
.pd-price { display:flex; align-items:baseline; gap:14px; margin-bottom:18px; }
.pd-price .pkr { font-family:var(--font-head); font-size:2rem; font-weight:700; color:var(--text); }
.pd-price .sar { color:var(--text-muted); font-size:1.05rem; }
.pd-short { color:var(--text-muted); margin-bottom:24px; }

.pd-label { display:block; font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color:var(--text-muted); margin-bottom:10px; }
.variant-options { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.variant-opt { position:relative; cursor:pointer; }
.variant-opt input { position:absolute; opacity:0; inset:0; }
.variant-opt span { display:block; padding:11px 18px; border-radius:50px; border:1px solid var(--border-strong); color:var(--text); font-size:.9rem; transition:.25s var(--ease); }
.variant-opt input:checked + span { background:var(--gold-gradient); color:#161202; border-color:transparent; font-weight:600; }
.variant-opt.disabled span { opacity:.4; text-decoration:line-through; cursor:not-allowed; }

.pd-cart-row { display:flex; gap:12px; margin-bottom:12px; }
.qty { display:flex; align-items:center; border:1px solid var(--border-strong); border-radius:50px; overflow:hidden; }
.qty button { width:44px; height:48px; background:none; border:none; color:var(--text); font-size:1.3rem; }
.qty button:hover { color:var(--brand-gold); }
.qty input { width:48px; height:48px; text-align:center; border:none; background:none; color:var(--text); font-size:1rem; -moz-appearance:textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance:none; }
.pd-cart-row .btn-gold { flex:1; justify-content:center; }
.pd-buynow { width:100%; justify-content:center; margin-bottom:22px; }

.pd-actions { display:flex; gap:22px; padding-top:6px; }
.link-btn { background:none; border:none; color:var(--text-muted); display:flex; align-items:center; gap:7px; font-size:.88rem; transition:.25s var(--ease); }
.link-btn:hover, .link-btn.active { color:var(--brand-gold); }
.pd-assurances { margin-top:26px; padding-top:22px; border-top:1px solid var(--border); display:grid; gap:10px; }
.pd-assurances li { color:var(--text-muted); font-size:.9rem; }

.pd-info { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:64px; padding-top:44px; border-top:1px solid var(--border); }
.pd-info h2 { font-size:1.4rem; margin-bottom:14px; }
.pd-info p { color:var(--text-muted); }

.pd-reviews { margin-top:64px; padding-top:44px; border-top:1px solid var(--border); }
.rating-summary { display:flex; align-items:center; gap:14px; margin-top:8px; }
.rating-summary strong { font-family:var(--font-head); font-size:2rem; color:var(--brand-gold); }
.rating-summary span { color:var(--text-muted); font-size:.9rem; }
.review-list { display:grid; gap:18px; margin:30px 0 46px; }
.review-item { border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:22px 24px; }
.review-head { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.review-head .avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--gold-gradient); color:#161202; font-weight:700; font-family:var(--font-head); }
.review-head .verified { font-size:.72rem; color:#9fd35a; margin-left:8px; }
.review-head time { margin-left:auto; color:var(--text-faint); font-size:.8rem; }
.review-item h4 { margin:0 0 6px; font-family:var(--font-body); font-size:1rem; }
.review-item p { color:var(--text-muted); margin:0; }

.review-form { border:1px solid var(--border-strong); border-radius:var(--radius); background:var(--card-bg); padding:28px; max-width:620px; }
.review-form h3 { margin-bottom:16px; }
.review-form input, .review-form select, .review-form textarea { width:100%; padding:13px 16px; border-radius:var(--radius-sm); border:1px solid var(--border-strong); background:var(--surface); color:var(--text); margin-bottom:12px; font-family:inherit; font-size:.95rem; }
.rf-row { display:flex; gap:12px; }
.rf-row > * { flex:1; }
.pd-related { margin-top:70px; }

/* ---------- Live search suggestions ---------- */
.search-panel form { position:relative; }
.search-suggest { position:absolute; top:calc(100% + 8px); left:0; right:120px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.25s var(--ease); z-index:95; }
.search-suggest.open { opacity:1; visibility:visible; transform:translateY(0); }
.ss-item { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:13px 18px; border-bottom:1px solid var(--border); transition:.2s var(--ease); }
.ss-item:last-child { border-bottom:none; }
.ss-item:hover { background:rgba(var(--brand-gold-rgb),.1); }
.ss-name { font-weight:500; }
.ss-meta { color:var(--text-muted); font-size:.82rem; white-space:nowrap; }
.ss-empty { padding:18px; color:var(--text-muted); text-align:center; font-size:.9rem; }

/* ---------- Quick View modal ---------- */
.qv-modal { position:fixed; inset:0; z-index:140; display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(0,0,0,.7); opacity:0; visibility:hidden; transition:.3s var(--ease); }
.qv-modal.open { opacity:1; visibility:visible; }
.qv-dialog { position:relative; width:min(820px,100%); max-height:90vh; overflow-y:auto; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-lg); box-shadow:var(--shadow);
  transform:translateY(16px) scale(.98); transition:.35s var(--ease); }
.qv-modal.open .qv-dialog { transform:none; }
.qv-close { position:absolute; top:14px; right:14px; z-index:2; }
.qv-loading { padding:80px; text-align:center; color:var(--text-muted); }
.qv-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:24px; }
.qv-media { border-radius:var(--radius); overflow:hidden; background:var(--bg-2); aspect-ratio:1/1.05; }
.qv-media svg, .qv-media img { width:100%; height:100%; object-fit:cover; }
.qv-body h2 { font-size:1.6rem; margin:.2em 0; }
.qv-sizes { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.qv-size { padding:7px 14px; border-radius:50px; border:1px solid var(--border-strong); font-size:.82rem; color:var(--text-muted); }
.qv-actions { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

/* ---------- Toast ---------- */
#aaa-toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); z-index:300;
  background:var(--surface); color:var(--text); border:1px solid var(--border-strong); border-left:4px solid var(--brand-gold);
  padding:14px 22px; border-radius:var(--radius); box-shadow:var(--shadow); font-size:.92rem; max-width:90vw;
  opacity:0; visibility:hidden; transition:.35s var(--ease); }
#aaa-toast.show { opacity:1; visibility:visible; transform:translate(-50%,0); }
#aaa-toast.err { border-left-color:#e24b4a; }

/* ---------- Catalog responsive ---------- */
@media (max-width:920px) {
  .pd-grid { grid-template-columns:1fr; gap:30px; }
  .pd-gallery { position:static; }
  .pd-info { grid-template-columns:1fr; gap:26px; }
  .qv-grid { grid-template-columns:1fr; }
  .qv-media { max-height:260px; }
}
@media (max-width:780px) {
  .shop-layout { grid-template-columns:1fr; }
  .filter-toggle { display:inline-flex; }
  .shop-filters { position:fixed; top:0; left:-100%; width:min(86vw,340px); height:100%; z-index:135; border-radius:0; overflow-y:auto; transition:left .4s var(--ease); }
  .shop-filters.open { left:0; }
  .search-suggest { right:0; }
}

/* =====================================================================
   ROYAL EMBELLISHMENTS  (embroidered details + dummy-image wrapper)
   ===================================================================== */

/* Dummy product image with graceful SVG fallback behind it */
.product-media > a, .product-media > a > .ph-wrap { display:block; width:100%; height:100%; }
.ph-wrap { position:relative; display:block; width:100%; height:100%; overflow:hidden; }
.ph-wrap .placeholder-bottle { position:absolute; inset:0; width:100%; height:100%; }
.ph-wrap .ph-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1;
  animation: phFade .6s var(--ease) both; }
@keyframes phFade { from { opacity:0; transform:scale(1.04); } to { opacity:1; transform:none; } }

/* Header gold hairline that shimmers */
.site-header::after {
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background: var(--gold-shimmer); background-size:200% auto; opacity:.7;
  animation: goldShimmer 7s linear infinite;
}

/* Section eyebrow flourishes (✦ — ✦) */
.section-head .eyebrow, .hero .eyebrow {
  display:inline-flex; align-items:center; gap:12px; font-family:var(--font-label); font-weight:500; letter-spacing:.26em;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content:""; height:1px; width:34px; background:var(--gold-gradient); display:inline-block; opacity:.8;
}

/* Embroidered drawn corners on cards (animate in on hover) */
.product-card, .cat-card { position:relative; }
.product-card::after, .cat-card::after {
  content:""; position:absolute; inset:8px; border-radius:inherit; pointer-events:none;
  border:1px solid transparent; transition:border-color .5s var(--ease); z-index:2;
}
.product-card:hover::after, .cat-card:hover::after {
  border-color: rgba(var(--brand-gold-rgb), .35);
  -webkit-mask: linear-gradient(#000 0 0) padding-box;        /* keep crisp */
}

/* Corner ornaments for the hero (embroidered frame) */
.hero-frame { position:absolute; inset:24px; z-index:2; pointer-events:none; opacity:.55; }
.hero-frame span { position:absolute; width:46px; height:46px; border:2px solid var(--brand-gold); opacity:.6; }
.hero-frame span:nth-child(1){ top:0; left:0; border-right:0; border-bottom:0; animation:ornamentReveal 1s .2s both; }
.hero-frame span:nth-child(2){ top:0; right:0; border-left:0; border-bottom:0; animation:ornamentReveal 1s .35s both; }
.hero-frame span:nth-child(3){ bottom:0; left:0; border-right:0; border-top:0; animation:ornamentReveal 1s .5s both; }
.hero-frame span:nth-child(4){ bottom:0; right:0; border-left:0; border-top:0; animation:ornamentReveal 1s .65s both; }

/* Royal flanking mandalas in the hero (like the reference frame) */
.hero-ornament { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.hero-ornament .m-side { position:absolute; top:50%; transform:translateY(-50%); opacity:.46;
  filter: drop-shadow(0 0 18px rgba(var(--brand-gold-rgb),.22)); }
.hero-ornament .m-side .mandala { display:block; animation: spinSlow 120s linear infinite; }
.hero-ornament .m-left  { left:-14%; }
.hero-ornament .m-right { right:-14%; }
.hero-ornament .m-right .mandala { animation-direction: reverse; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Decorative double-line band across the hero (reference look) */
.hero-band { position:absolute; left:6%; right:6%; height:0; z-index:1; pointer-events:none; }
.hero-band.top { top:13%; } .hero-band.bottom { bottom:13%; }
.hero-band::before, .hero-band::after { content:""; position:absolute; left:0; right:0; height:1px; background:var(--gold-gradient); opacity:.55; }
.hero-band::after { top:4px; opacity:.3; }

/* Hero two-column layout + royal bottle showcase */
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:30px; align-items:center; }
.hero-content { max-width:600px; }
.hero-visual { position:relative; display:grid; place-items:center; min-height:440px; }
.hv-halo { position:absolute; inset:0; display:grid; place-items:center; opacity:.5; pointer-events:none; }
.hv-halo .mandala { width:min(105%,560px); height:auto; animation:spinSlow 100s linear infinite; }
.hv-glow { position:absolute; width:70%; aspect-ratio:1; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(var(--brand-gold-rgb),.34), rgba(var(--brand-gold-rgb),.09) 55%, transparent 72%); }
.hero-bottle { position:relative; z-index:2; width:min(70%,330px); height:auto;
  filter:drop-shadow(0 24px 46px rgba(0,0,0,.55)); animation:floatSlow 6s var(--ease) infinite; }

/* Hadith plaque (royal framed) */
.hadith-card {
  position:relative; z-index:2; margin:0; max-width:420px; text-align:center;
  padding:40px 36px; border:1px solid var(--border-strong); border-radius:var(--radius-lg);
  background:linear-gradient(160deg, rgba(21,122,85,.16), rgba(8,22,15,.86));
  box-shadow:0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(var(--brand-gold-rgb),.12);
  backdrop-filter:blur(2px);
}
.hadith-card .hc-c { position:absolute; width:26px; height:26px; border:2px solid var(--brand-gold); opacity:.7; }
.hadith-card .hc-c.tl { top:12px; left:12px; border-right:0; border-bottom:0; }
.hadith-card .hc-c.tr { top:12px; right:12px; border-left:0; border-bottom:0; }
.hadith-card .hc-c.bl { bottom:12px; left:12px; border-right:0; border-top:0; }
.hadith-card .hc-c.br { bottom:12px; right:12px; border-left:0; border-top:0; }
.hc-bismillah { font-family:var(--font-arabic); color:var(--brand-gold); font-size:1.7rem; margin-bottom:14px; }
.hc-ar { font-family:var(--font-arabic); font-size:1.5rem; line-height:2.1; color:var(--brand-gold-soft); margin:0 0 16px; }
.hc-en { font-family:var(--font-serif); font-style:italic; font-size:1.12rem; line-height:1.6; color:var(--text); margin:0 0 14px; }
.hadith-card figcaption { font-family:var(--font-label); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.hadith-card .saw { color:var(--brand-gold); }

/* Floating attar-photo medallions (real imagery) */
.hv-medallion { position:absolute; z-index:3; width:96px; height:96px; border-radius:50%; overflow:hidden;
  border:2px solid var(--brand-gold); box-shadow:0 12px 30px rgba(0,0,0,.5), 0 0 0 6px rgba(var(--brand-gold-rgb),.12);
  background:var(--gold-gradient); }
.hv-medallion img { width:100%; height:100%; object-fit:cover; }
.hv-medallion.m-top { top:6%; right:2%; animation:floatSlow 5.5s var(--ease) infinite; }
.hv-medallion.m-bot { bottom:6%; left:0%; width:78px; height:78px; animation:floatSlow 6.5s var(--ease) infinite reverse; }

@media (max-width:920px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-visual { min-height:auto; order:-1; padding:10px 0 6px; }
  .hero-bottle { width:min(54%,250px); }
  .hero-content { max-width:none; }
  .hadith-card { max-width:480px; margin-inline:auto; padding:30px 26px; }
  .hv-medallion.m-top { right:6%; } .hv-medallion.m-bot { left:6%; }
}
@media (max-width:600px) {
  .hv-halo, .hv-glow, .hv-medallion { display:none; }
  .hadith-card { padding:26px 20px; }
  .hc-ar { font-size:1.3rem; }
}

/* Floating slow drift for hero ornament glyphs */
@keyframes floatSlow { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }

/* Quote ornament gentle glow + mandala watermark */
.quote .ornament, .quote .arabic { animation: floatSlow 7s var(--ease) infinite; }
.quote .container { position:relative; z-index:1; }
.quote-mandala { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:0; opacity:.10; pointer-events:none; }
.quote-mandala .mandala { animation: spinSlow 160s linear infinite; }

/* =====================================================================
   PER-SECTION REVOLVING ORNAMENTS — a different motif in every section,
   on every page (driven purely by CSS pseudo-elements, no markup needed).
   ===================================================================== */
@keyframes ornSpin  { to { transform: rotate(360deg);  } }
@keyframes ornSpinR { to { transform: rotate(-360deg); } }

/* Lift real content above the decorative layer */
section:not(.hero) > .container { position: relative; z-index: 1; }

section:not(.hero)::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 300px; height: 300px; opacity: .16;
  background: center / contain no-repeat;
  animation: ornSpin 120s linear infinite;
}
/* alternate the corner + spin direction so neighbours differ */
section:not(.hero):nth-of-type(odd)::before  { top: -72px; right: -72px; }
section:not(.hero):nth-of-type(even)::before { bottom: -72px; left: -72px; animation-name: ornSpinR; width: 340px; height: 340px; }

/* five distinct gold motifs, cycled by section order */
section:not(.hero):nth-of-type(5n+1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='1'%3E%3Ccircle cx='60' cy='60' r='56'/%3E%3Ccircle cx='60' cy='60' r='42'/%3E%3Cellipse cx='60' cy='60' rx='5' ry='52'/%3E%3Cellipse cx='60' cy='60' rx='5' ry='52' transform='rotate(45 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='5' ry='52' transform='rotate(90 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='5' ry='52' transform='rotate(135 60 60)'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3C/g%3E%3C/svg%3E"); }
section:not(.hero):nth-of-type(5n+2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='1'%3E%3Crect x='22' y='22' width='76' height='76'/%3E%3Crect x='22' y='22' width='76' height='76' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='46'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3C/g%3E%3C/svg%3E"); }
section:not(.hero):nth-of-type(5n+3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='1'%3E%3Ccircle cx='60' cy='60' r='54'/%3E%3Cellipse cx='60' cy='60' rx='6' ry='50'/%3E%3Cellipse cx='60' cy='60' rx='6' ry='50' transform='rotate(30 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='6' ry='50' transform='rotate(60 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='6' ry='50' transform='rotate(90 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='6' ry='50' transform='rotate(120 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='6' ry='50' transform='rotate(150 60 60)'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3C/g%3E%3C/svg%3E"); }
section:not(.hero):nth-of-type(5n+4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='1'%3E%3Ccircle cx='60' cy='60' r='56'/%3E%3Ccircle cx='60' cy='60' r='48' stroke-dasharray='1.5 6'/%3E%3Ccircle cx='60' cy='60' r='36'/%3E%3Ccircle cx='60' cy='60' r='26' stroke-dasharray='1.5 6'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3C/g%3E%3C/svg%3E"); }
section:not(.hero):nth-of-type(5n+5)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9b44a' stroke-width='1'%3E%3Cpolygon points='60,6 114,60 60,114 6,60'/%3E%3Cpolygon points='60,6 114,60 60,114 6,60' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='32'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3C/g%3E%3C/svg%3E"); }

/* Reduced motion — silence decorative animation */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .gold-text, .site-header::after, .btn-gold, .quote .ornament, .quote .arabic,
  .divider::before, .divider::after, .divider span, .hero-frame span, .ph-wrap .ph-img,
  .hero-ornament .m-side .mandala, .quote-mandala .mandala, section:not(.hero)::before,
  .hv-halo .mandala, .hero-bottle { animation:none !important; }
}

/* ---------- Cart (Phase-2 placeholder) ---------- */
.cart-layout { display:grid; grid-template-columns:1fr 340px; gap:34px; align-items:start; }
.cart-items { display:grid; gap:14px; }
.cart-row { display:grid; grid-template-columns:84px 1fr auto auto auto; align-items:center; gap:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:14px 18px; }
.cart-thumb { width:84px; height:84px; border-radius:var(--radius-sm); overflow:hidden; background:var(--bg-2); }
.cart-thumb svg { width:100%; height:100%; object-fit:cover; }
.cart-info h3 { font-size:1.05rem; margin:0 0 4px; }
.cart-price { color:var(--text-muted); font-size:.88rem; margin-top:4px; }
.cart-line { font-weight:700; font-family:var(--font-head); white-space:nowrap; }
.cart-remove { background:none; border:none; color:var(--text-faint); font-size:1.1rem; transition:.2s var(--ease); }
.cart-remove:hover { color:#e24b4a; }
.cart-summary { position:sticky; top:calc(var(--header-h) + 20px); border:1px solid var(--border-strong); border-radius:var(--radius); background:var(--card-bg); padding:26px; display:grid; gap:12px; }
.cart-summary h3 { margin-bottom:6px; }
.cs-row { display:flex; justify-content:space-between; color:var(--text-muted); }
.cs-row.total { border-top:1px solid var(--border); padding-top:14px; margin-top:6px; color:var(--text); font-size:1.2rem; font-weight:700; }
.cs-row.total span:last-child { color:var(--brand-gold); font-family:var(--font-head); }
@media (max-width:780px) {
  .cart-layout { grid-template-columns:1fr; }
  .cart-row { grid-template-columns:64px 1fr auto; grid-template-areas:"thumb info remove" "thumb qty line"; }
  .cart-thumb { width:64px; height:64px; grid-area:thumb; }
  .cart-info { grid-area:info; } .cart-qty-form { grid-area:qty; } .cart-line { grid-area:line; } .cart-remove { grid-area:remove; }
}

/* =====================================================================
   PHASE 3 — Cart drawer, coupon, checkout, confirmation, tracking
   ===================================================================== */

/* Flash messages */
.flash { padding:14px 18px; border-radius:var(--radius-sm); border:1px solid var(--border); margin-bottom:8px; font-size:.92rem; }
.flash-ok  { border-left:4px solid #63a922; background:rgba(99,153,34,.1); color:#bfe08a; }
.flash-err { border-left:4px solid #e24b4a; background:rgba(226,75,74,.1); color:#f0999b; }

/* Coupon box */
.coupon-box { border:1px dashed var(--border-strong); border-radius:var(--radius-sm); padding:14px; }
.coupon-input { display:flex; gap:8px; }
.coupon-input input { flex:1; padding:11px 14px; border-radius:var(--radius-sm); border:1px solid var(--border-strong); background:var(--surface); color:var(--text); text-transform:uppercase; letter-spacing:.05em; }
.coupon-input .btn { padding:.6em 1.1em; font-size:.72rem; }
.coupon-hint { font-size:.78rem; color:var(--text-faint); margin:8px 0 0; }
.coupon-hint b { color:var(--brand-gold); }
.coupon-active { display:flex; justify-content:space-between; align-items:center; color:#9fd35a; font-size:.9rem; }
.coupon-active .link-btn { color:var(--text-faint); }
.cs-discount { color:#9fd35a; }

/* Mini-cart drawer */
.cart-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.6); opacity:0; visibility:hidden; transition:.3s; z-index:140; }
.cart-backdrop.open { opacity:1; visibility:visible; }
.cart-drawer { position:fixed; top:0; right:-100%; width:min(92vw,400px); height:100%; z-index:141;
  background:var(--surface); border-left:1px solid var(--border-strong); display:flex; flex-direction:column; transition:right .4s var(--ease); }
.cart-drawer.open { right:0; }
.cart-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:20px; border-bottom:1px solid var(--border); }
.cart-drawer-body { flex:1; overflow-y:auto; display:flex; flex-direction:column; }
.mc-empty { padding:50px 24px; text-align:center; color:var(--text-muted); display:grid; gap:16px; place-items:center; }
.mc-items { padding:12px 16px; display:grid; gap:12px; flex:1; }
.mc-row { display:grid; grid-template-columns:58px 1fr auto; gap:12px; align-items:center; border-bottom:1px solid var(--border); padding-bottom:12px; }
.mc-thumb { width:58px; height:58px; border-radius:var(--radius-sm); overflow:hidden; background:var(--bg-2); }
.mc-info b { font-size:.92rem; display:block; }
.mc-info .scent { font-size:.74rem; color:var(--brand-gold); }
.mc-qty { display:flex; align-items:center; gap:8px; margin-top:6px; font-size:.85rem; }
.mc-step { width:24px; height:24px; border-radius:6px; border:1px solid var(--border-strong); background:none; color:var(--text); line-height:1; }
.mc-step:hover { border-color:var(--brand-gold); color:var(--brand-gold); }
.mc-line { margin-left:auto; font-weight:600; }
.mc-remove { background:none; border:none; color:var(--text-faint); font-size:1rem; align-self:start; }
.mc-remove:hover { color:#e24b4a; }
.mc-foot { padding:18px 20px; border-top:1px solid var(--border-strong); display:grid; gap:10px; background:var(--bg-2); }
.mc-subtotal { display:flex; justify-content:space-between; font-weight:600; }
.mc-subtotal span:last-child { color:var(--brand-gold); font-family:var(--font-head); font-size:1.15rem; }
.mc-foot .btn { width:100%; justify-content:center; }

/* Compare table */
.compare-wrap { overflow-x:auto; }
.compare-table { width:100%; border-collapse:collapse; min-width:560px; }
.compare-table th, .compare-table td { padding:16px 14px; border-bottom:1px solid var(--border); text-align:center; vertical-align:middle; }
.compare-table thead th { border-bottom:1px solid var(--border-strong); }
.cmp-label { text-align:left !important; color:var(--brand-gold); font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; width:130px; }
.cmp-media { width:120px; height:120px; margin:0 auto 10px; border-radius:var(--radius-sm); overflow:hidden; background:var(--bg-2); }
.cmp-name { display:block; font-family:var(--font-head); font-size:1.05rem; margin-bottom:6px; }
.cmp-notes { font-size:.82rem; color:var(--text-muted); max-width:200px; }

/* Checkout */
.checkout-layout { display:grid; grid-template-columns:1fr 360px; gap:30px; align-items:start; }
.checkout-main { display:grid; gap:20px; }
.co-card { border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:26px; }
.co-card h2 { font-size:1.3rem; margin-bottom:18px; }
.co-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.co-field { display:flex; flex-direction:column; gap:6px; }
.co-field.co-wide { grid-column:1 / -1; }
.co-field span { font-size:.82rem; color:var(--text-muted); }
.co-field input, .co-field textarea { padding:13px 15px; border-radius:var(--radius-sm); border:1px solid var(--border-strong); background:var(--surface); color:var(--text); font-family:inherit; font-size:.95rem; }
.co-field.has-err input, .co-field.has-err textarea { border-color:#e24b4a; }
.co-field em { color:#f0999b; font-size:.78rem; font-style:normal; }
.pay-opt { display:flex; gap:14px; align-items:flex-start; padding:16px; border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:12px; cursor:pointer; transition:.25s var(--ease); }
.pay-opt:hover { border-color:var(--border-strong); }
.pay-opt input { accent-color:var(--brand-gold); margin-top:4px; }
.pay-body b { display:block; }
.pay-body small { color:var(--text-muted); font-size:.84rem; }
.bank-details { border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:18px; background:var(--bg-2); }
.bank-details h4 { color:var(--brand-gold); margin-bottom:8px; }
.checkout-summary { position:sticky; top:calc(var(--header-h) + 20px); border:1px solid var(--border-strong); border-radius:var(--radius); background:var(--card-bg); padding:24px; }
.co-items { display:grid; gap:10px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.co-item { display:grid; grid-template-columns:auto 1fr auto; gap:10px; font-size:.9rem; }
.co-item .co-q { color:var(--brand-gold); font-weight:600; }
.co-item .co-n { color:var(--text); }
.co-item .co-n small { color:var(--text-faint); }
.co-item .co-p { color:var(--text-muted); white-space:nowrap; }

/* Confirmation */
.confirm-hero { text-align:center; padding:30px 0; }
.confirm-tick { width:74px; height:74px; border-radius:50%; margin:0 auto 18px; display:grid; place-items:center;
  background:var(--gold-gradient); color:#06140d; font-size:2.2rem; box-shadow:var(--glow-gold); animation:ornamentReveal .7s var(--ease) both; }
.confirm-hero h1 { font-size:clamp(1.7rem,4vw,2.6rem); }
.confirm-note { color:var(--text-muted); }
.confirm-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:22px; }

/* Tracking */
.track-form { display:flex; gap:12px; flex-wrap:wrap; max-width:620px; margin:0 auto; }
.track-form input { flex:1; min-width:200px; padding:14px 18px; border-radius:50px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); }
.track-result { margin-top:30px; }
.track-head { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:24px; }
.track-steps { display:flex; justify-content:space-between; position:relative; counter-reset:step; margin:30px 0; }
.track-steps::before { content:""; position:absolute; top:19px; left:6%; right:6%; height:2px; background:var(--border-strong); z-index:0; }
.track-step { display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; z-index:1; flex:1; text-align:center; }
.ts-dot { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:var(--surface-2); border:2px solid var(--border-strong); color:var(--text-faint); font-weight:600; }
.ts-label { font-size:.8rem; color:var(--text-faint); }
.track-step.done .ts-dot, .track-step.active .ts-dot { background:var(--gold-gradient); border-color:transparent; color:#06140d; }
.track-step.active .ts-dot { box-shadow:var(--glow-gold); }
.track-step.done .ts-label, .track-step.active .ts-label { color:var(--text); }

@media (max-width:860px) {
  .checkout-layout { grid-template-columns:1fr; }
  .checkout-summary { position:static; }
}
@media (max-width:560px) {
  .co-grid { grid-template-columns:1fr; }
  .ts-label { font-size:.68rem; }
}

/* =====================================================================
   PHASE 4 — Auth & customer account
   ===================================================================== */
.auth-wrap { padding-top:40px; }
.auth-card { max-width:460px; margin:0 auto; border:1px solid var(--border-strong); border-radius:var(--radius-lg);
  background:var(--card-bg); padding:clamp(26px,4vw,42px); }
.auth-card .section-head { margin-bottom:22px; }
.auth-field { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.auth-field > span { font-size:.82rem; color:var(--text-muted); }
.auth-field input { padding:13px 16px; border-radius:var(--radius-sm); border:1px solid var(--border-strong);
  background:var(--surface); color:var(--text); font-family:inherit; font-size:.95rem; }
.auth-field.has-err input { border-color:#e24b4a; }
.auth-field em { color:#f0999b; font-size:.78rem; font-style:normal; }
.auth-hint { color:var(--text-faint); font-size:.74rem; }
.auth-row { display:flex; justify-content:flex-end; margin-bottom:16px; font-size:.85rem; }
.auth-row a:hover, .auth-alt a { color:var(--brand-gold); }
.auth-alt { text-align:center; margin-top:18px; color:var(--text-muted); font-size:.9rem; }
.auth-alt a { text-decoration:underline; }

/* Account dashboard */
.acct-layout { display:grid; grid-template-columns:240px 1fr; gap:30px; align-items:start; }
.acct-nav { border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:12px; position:sticky; top:calc(var(--header-h) + 20px); display:grid; gap:2px; }
.acct-link { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:var(--radius-sm); color:var(--text-muted); transition:.25s var(--ease); }
.acct-link:hover { background:rgba(var(--brand-gold-rgb),.08); color:var(--text); }
.acct-link.active { background:var(--gold-gradient); color:#06140d; font-weight:600; }
.acct-link .acct-badge { margin-left:auto; background:#e24b4a; color:#fff; font-size:.7rem; min-width:20px; height:20px; border-radius:10px; display:grid; place-items:center; padding:0 5px; }
.acct-main h1 { font-size:clamp(1.6rem,3.5vw,2.3rem); margin-bottom:18px; }
.acct-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.acct-stat { border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-2); padding:20px; text-align:center; }
.acct-stat b { font-family:var(--font-head); font-size:1.9rem; color:var(--brand-gold); display:block; }
.acct-stat span { color:var(--text-muted); font-size:.85rem; }

/* Order rows */
.order-list { display:grid; gap:12px; }
.order-row { display:grid; grid-template-columns:1.4fr auto 1fr auto auto; gap:16px; align-items:center;
  border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:16px 20px; transition:.25s var(--ease); }
.order-row:hover { border-color:var(--border-strong); transform:translateY(-2px); }
.or-id b { display:block; font-family:var(--font-head); }
.or-id small { color:var(--text-faint); font-size:.8rem; }
.or-count { color:var(--text-muted); font-size:.85rem; }
.or-total { color:var(--brand-gold); font-family:var(--font-head); white-space:nowrap; }
.or-go { color:var(--brand-gold); font-size:.85rem; }
.status-badge { font-size:.72rem; padding:5px 12px; border-radius:50px; font-weight:600; text-transform:capitalize; white-space:nowrap; }
.st-pending { background:rgba(236,198,94,.16); color:var(--brand-gold); }
.st-confirmed, .st-processing { background:rgba(42,146,105,.18); color:#7fd3ad; }
.st-shipped { background:rgba(55,138,221,.18); color:#8fc0ef; }
.st-delivered { background:rgba(99,153,34,.2); color:#bfe08a; }
.st-cancelled, .st-returned { background:rgba(226,75,74,.16); color:#f0999b; }

/* Addresses */
.addr-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
.addr-card { position:relative; border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:20px; }
.addr-card p { color:var(--text-muted); font-size:.88rem; margin:8px 0 12px; }
.addr-default { position:absolute; top:14px; right:14px; font-size:.68rem; background:var(--gold-gradient); color:#06140d; padding:3px 10px; border-radius:50px; font-weight:700; }
.addr-actions { display:flex; gap:16px; align-items:center; }
.addr-actions form { display:inline; }

/* Notifications */
.notif-list { display:grid; gap:10px; }
.notif-item { display:flex; gap:14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--card-bg); padding:16px 20px; transition:.25s var(--ease); }
.notif-item:hover { border-color:var(--border-strong); }
.notif-item .notif-dot { width:9px; height:9px; border-radius:50%; background:var(--border-strong); margin-top:7px; flex-shrink:0; }
.notif-item.unread .notif-dot { background:var(--brand-gold); box-shadow:0 0 0 4px rgba(var(--brand-gold-rgb),.16); }
.notif-item.unread b { color:var(--text); }
.notif-item p { color:var(--text-muted); font-size:.88rem; margin:4px 0; }
.notif-item time { color:var(--text-faint); font-size:.76rem; }

@media (max-width:820px) {
  .acct-layout { grid-template-columns:1fr; }
  .acct-nav { position:static; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
  .acct-link span:not(.acct-badge) { display:none; }
  .acct-link { justify-content:center; }
  .order-row { grid-template-columns:1fr auto; row-gap:8px; }
}

/* Touch devices have no :hover — reveal product-card controls persistently */
@media (hover: none) {
  .product-card .card-tools,
  .product-card .quick-add,
  .product-card .wish { opacity:1; transform:none; }
  .product-card .go { opacity:1; transform:none; }
}
