/* ============================================================
   AvigyanJewel — Luxury Design System
   Palette: deep charcoal, ivory, champagne gold
   ============================================================ */
:root {
  --ink:        #171412;
  --ink-soft:   #3d3833;
  --ivory:      #faf7f0;
  --cream:      #f3eee2;
  --gold:       #c9a24b;
  --gold-deep:  #a8842f;
  --gold-pale:  #eaddbf;
  --silver:     #a8a9ad;
  --white:      #ffffff;
  --green:      #1e7d4f;
  --red:        #b3382c;
  --shadow:     0 10px 40px rgba(23, 20, 18, .10);
  --shadow-sm:  0 3px 14px rgba(23, 20, 18, .08);
  --radius:     14px;
  --font-head:  'Cormorant Garamond', 'Georgia', serif;
  --font-body:  'Jost', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: var(--gold-pale);
  text-align: center; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .5rem 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 75, .25);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 2rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; }
.site-logo { max-height: 140px; width: auto; max-width: 100%; display: block; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.12)); }

.brand-name { display: none; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a { font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: .3rem 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }


/* Rates dropdown */
.rates-drop { position: relative; }
.rates-panel {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 270px;
  background: var(--white); border: 1px solid var(--gold-pale); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.3rem; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.rates-drop:hover .rates-panel, .rates-drop:focus-within .rates-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.rates-panel h4 { color: var(--gold-deep); font-size: 1.05rem; margin-bottom: .4rem; }
.rates-panel .rrow { display: flex; justify-content: space-between; font-size: .88rem; padding: .18rem 0; }
.rates-panel .rrow strong { font-variant-numeric: tabular-nums; }
.rates-note { color: var(--red); font-size: .75rem; font-style: italic; margin-top: .5rem; }
.rates-time { color: var(--green); font-size: .72rem; margin-top: .2rem; }

.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: .5rem; color: inherit; }
.icon-btn .cart-icon { display: block; flex-shrink: 0; }
.cart-count {
  position: absolute; top: -2px; right: -4px; background: var(--gold-deep); color: #fff;
  font-size: .65rem; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; z-index: 1;
}
.burger { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; pointer-events: none; }
.nav-backdrop.visible { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 2.1rem; border-radius: 40px;
  font-family: var(--font-body); font-size: .88rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; border: 1.5px solid transparent; transition: all .35s cubic-bezier(.4, 0, .2, 1);
  min-height: 48px; text-align: center;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 55%, #dfc07a);
  color: var(--white); background-size: 180% auto;
}
.btn-gold:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(168, 132, 47, .35); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost { border-color: var(--gold); color: var(--gold-deep); background: transparent; }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn-sm { padding: .45rem 1.2rem; font-size: .78rem; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, rgba(201,162,75,.28), transparent 60%),
              linear-gradient(160deg, #1d1a17 0%, #2b2620 60%, #3a3126 100%);
  color: var(--ivory);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 5.5rem 0; }
.hero .kicker {
  color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem;
  display: inline-flex; align-items: center; gap: .8rem;
}
.hero .kicker::before { content: ''; width: 42px; height: 1px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 1rem 0; color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { color: #cfc8bc; max-width: 46ch; font-size: 1.05rem; }
.hero-brands {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin: 1.4rem 0 0;
}
.hero-brands .trust-label {
  color: #b9b0a2;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-brands img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.2);
  opacity: .96;
}
@media (max-width: 820px) {
  .hero-brands {
    justify-content: flex-start;
    gap: .85rem;
  }
  .hero-brands img { max-height: 32px; }
}
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-visual { position: relative; text-align: center; }
.hero-visual img { width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; display: block; margin: 0 auto; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: floaty 6s ease-in-out infinite; }
.hero-visual .hero-products { display: flex; gap: .75rem; justify-content: center; align-items: center; }
.hero-visual .hero-products img { width: min(180px, 40%); aspect-ratio: auto; display: block; object-fit: contain; filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); animation: floaty 6s ease-in-out infinite; }
.hero-visual .hero-products img:last-child { animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg);} 50% { transform: translateY(-18px) rotate(2deg);} }

.trust-strip { background: var(--ink); padding: .6rem 0; }
.trust-strip .container { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.trust-strip .trust-label { color: #b9b0a2; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.trust-strip img { max-height: 36px; width: auto; object-fit: contain; filter: brightness(1.3) contrast(1.1); opacity: .92; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .kicker { color: var(--gold-deep); letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: .5rem; }
.section-head p { color: var(--ink-soft); margin-top: .7rem; }
.section.alt { background: var(--cream); }

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1; background: linear-gradient(150deg, var(--cream), #fff); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 2.6rem; color: var(--gold);
}
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--gold-pale);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .7rem; border-radius: 30px;
}
.badge.out { background: var(--red); color: #fff; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-body .cat { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.card-body h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.price { font-size: 1.15rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-old { color: #9b9284; text-decoration: line-through; font-size: .88rem; }
.per-g { font-size: .72rem; color: var(--ink-soft); }

/* ---------- Category tiles ---------- */
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2/1;
  background: linear-gradient(150deg, #262019, #4a3c25); color: var(--ivory);
  display: flex; align-items: flex-end; padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .4s ease;
}
.cat-tile:hover { transform: translateY(-6px); }
.cat-tile img, .cat-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .6s, opacity .4s; }
.cat-tile:hover img, .cat-tile:hover video { transform: scale(1.05); opacity: .8; }
.cat-tile .ct-label { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; gap: 1rem; }
.cat-tile h3 { font-size: 1.5rem; color: #fff; }
.cat-tile small { color: var(--gold-pale); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }

/* ---------- Feature icons ---------- */
.feature { text-align: center; padding: 1.8rem 1.2rem; }
.feature .fic {
  width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  transition: transform .35s ease;
}
.feature:hover .fic { transform: rotate(-8deg) scale(1.08); }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; padding: 3.5rem 0; }
.pd-media { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 110px; }
.pd-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.pd-info .sku { color: var(--ink-soft); font-size: .8rem; letter-spacing: .1em; margin: .4rem 0 1rem; }
.pd-price { font-size: 2rem; font-weight: 600; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.pd-price-old { text-decoration: line-through; color: #9b9284; font-size: 1.1rem; margin-left: .7rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .92rem; }
.spec-table td { padding: .55rem .3rem; border-bottom: 1px dashed var(--gold-pale); }
.spec-table td:first-child { color: var(--ink-soft); width: 45%; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; }
.qty-box { display: inline-flex; border: 1.5px solid var(--gold-pale); border-radius: 40px; overflow: hidden; }
.qty-box button { width: 40px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; }
.qty-box input { width: 52px; border: 0; text-align: center; font-size: 1rem; background: transparent; }
.pd-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.rate-lock-note {
  background: var(--cream); border-left: 3px solid var(--gold); border-radius: 6px;
  padding: .8rem 1rem; font-size: .85rem; color: var(--ink-soft); margin-top: 1rem;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fg { display: flex; flex-direction: column; gap: .35rem; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fg input, .fg select, .fg textarea {
  padding: .75rem 1rem; border: 1.5px solid #e2dbc9; border-radius: 10px; font-family: var(--font-body);
  font-size: 1rem; background: #fff; transition: border-color .25s, box-shadow .25s;
  min-height: 48px;
}
.fg textarea { min-height: 120px; }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.15);
}

/* ---------- Tables / panels ---------- */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.8rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); padding: .7rem .8rem; border-bottom: 2px solid var(--gold-pale);
}
.table td { padding: .8rem; border-bottom: 1px solid #f0ead9; vertical-align: middle; }
.table tr:hover td { background: #fdfaf2; }
.table-stack td::before { display: none; }
.pill { display: inline-block; padding: .22rem .75rem; border-radius: 30px; font-size: .74rem; letter-spacing: .06em; text-transform: capitalize; }
.pill.pending    { background: #fdf3d7; color: #8a6d1a; }
.pill.confirmed  { background: #e3ecfb; color: #2b5797; }
.pill.paid, .pill.delivered { background: #ddf2e5; color: var(--green); }
.pill.processing { background: #efe5fb; color: #6b3fa0; }
.pill.shipped    { background: #dcf1f5; color: #1a7f8f; }
.pill.cancelled, .pill.refunded { background: #fbe3e0; color: var(--red); }
.pill.online { background: #ddf2e5; color: var(--green); }
.pill.make_to_order { background: #fdf3d7; color: #8a6d1a; }
.pill.price_request { background: #e3ecfb; color: #2b5797; }

/* ---------- Flash ---------- */
.flash { padding: .9rem 1.3rem; border-radius: 10px; margin: 1.2rem 0; font-size: .93rem; animation: fadeUp .5s ease; }
.flash.success { background: #ddf2e5; color: var(--green); border: 1px solid #b7e3c8; }
.flash.error   { background: #fbe3e0; color: var(--red);   border: 1px solid #f1c2bc; }
.flash.info    { background: #e3ecfb; color: #2b5797;      border: 1px solid #c3d6f2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b0a2; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: .06em; }
.site-footer a { display: block; padding: .22rem 0; font-size: .9rem; transition: color .25s, transform .25s; }
.site-footer a:hover { color: var(--gold-pale); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(201,162,75,.2); padding: 1.2rem 0; font-size: .8rem; text-align: center; }
.footer-logo { max-height: 130px; width: auto; max-width: 340px; display: block; object-fit: contain; margin-bottom: .8rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.footer-brands { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: flex-start; margin-top: .4rem; }
.footer-brands img { max-height: 32px; max-width: 110px; height: auto; width: auto; object-fit: contain; vertical-align: middle; display: inline-block; opacity: .9; transition: opacity .25s, filter .25s; filter: brightness(1.1) contrast(1.1); border-radius: 4px; padding: 3px; background: rgba(255,255,255,.08); }
.footer-brands img:hover { opacity: 1; filter: brightness(1.2) contrast(1.1); background: rgba(255,255,255,.14); }
.footer-brand-label { font-size: .78rem; color: var(--gold-pale); letter-spacing: .08em; margin-bottom: .4rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); animation: pulse 2.4s infinite;
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }

/* ---------- Rates ticker ---------- */
.ticker { background: var(--cream); border-block: 1px solid var(--gold-pale); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: .55rem 0; animation: ticker 28s linear infinite; }
.ticker-track span { margin: 0 2.2rem; font-size: .85rem; letter-spacing: .05em; }
.ticker-track b { color: var(--gold-deep); font-variant-numeric: tabular-nums; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Account / dashboard shells ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2.5rem 0; align-items: start; }
.dash-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: 110px; }
.dash-nav a { display: block; padding: .9rem 1.3rem; font-size: .92rem; border-left: 3px solid transparent; transition: all .25s; }
.dash-nav a:hover, .dash-nav a.active { background: var(--cream); border-left-color: var(--gold); color: var(--gold-deep); }
.dash-nav .dn-head { padding: 1.1rem 1.3rem .5rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.8rem; }
.stat {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.3rem 1.4rem;
  border-top: 3px solid var(--gold); animation: fadeUp .5s ease both;
}
.stat:nth-child(2) { animation-delay: .07s; } .stat:nth-child(3) { animation-delay: .14s; } .stat:nth-child(4) { animation-delay: .21s; }
.stat .sl { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.stat .sv { font-size: 1.65rem; font-weight: 600; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.stat .sm { font-size: .78rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---------- Auth page ---------- */
.auth-wrap { min-height: 72vh; display: flex; align-items: center; justify-content: center; padding: 3rem 0; }
.auth-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 3rem;
  max-width: 440px; width: 100%; text-align: center; animation: fadeUp .6s ease;
}
.auth-card .brand-mark { font-family: var(--font-head); font-size: 2rem; color: var(--gold-deep); margin-bottom: .4rem; }
.auth-card .brand-mark img { max-height: 140px; width: auto; max-width: 340px; display: inline-block; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.1)); }
.g-btn {
  display: flex; align-items: center; justify-content: center; gap: .9rem; width: 100%;
  padding: .95rem; margin-top: 1.8rem; border: 1.5px solid #e2dbc9; border-radius: 12px;
  background: #fff; font-size: 1rem; cursor: pointer; transition: all .3s;
}
.g-btn:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(201,162,75,.2); transform: translateY(-2px); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--ink-soft); padding: 1.2rem 0 0; }
.crumbs a:hover { color: var(--gold-deep); }

/* ---------- Page head banner ---------- */
.page-head { background: linear-gradient(140deg, #211d18, #37301f); color: var(--ivory); padding: 3rem 0; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; }
.page-head p { color: var(--gold-pale); margin-top: .4rem; }

/* ---------- CMS content ---------- */
.cms-content { max-width: 780px; margin: 0 auto; padding: 3rem 0; }
.cms-content h2 { margin: 1.6rem 0 .8rem; }
.cms-content ul { padding-left: 1.4rem; margin: .8rem 0; }
.cms-content li { margin: .4rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-logo { max-height: 110px; }
  .auth-card .brand-mark img { max-height: 110px; }
  .footer-logo { max-height: 100px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  html { font-size: 15.5px; }
  .site-logo { max-height: 85px; }
  .auth-card .brand-mark img { max-height: 85px; }
  .footer-logo { max-height: 76px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 3.5rem 0; }
  .hero .kicker { justify-content: center; } .hero .kicker::before { display: none; }
  .hero p.lead { margin: 0 auto; } .hero-cta { justify-content: center; }
  .pd { grid-template-columns: 1fr; gap: 2rem; } .pd-media { position: static; }
  .pd-actions { gap: .75rem; }
  .dash { grid-template-columns: 1fr; } .dash-nav { position: static; display: flex; flex-wrap: wrap; }
  .dash-nav .dn-head { display: none; }
  .site-header { position: relative; }
  .nav-backdrop { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory);
    display: flex; flex-direction: column; gap: 0;
    border-bottom: 2px solid var(--gold-pale); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .3s ease; z-index: 200;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav > a, .nav .rates-drop > a {
    display: block; width: 100%; padding: .65rem 1.5rem; font-size: .85rem;
    border-bottom: 1px solid rgba(0,0,0,.06); text-transform: uppercase; letter-spacing: .06em;
  }
  .nav a::after { display: none; }
  .nav .rates-drop { width: 100%; }
  .nav .rates-drop > a { display: flex; justify-content: space-between; align-items: center; }
  .nav .rates-drop > a::after { content: '›'; display: inline-block; font-size: 1.3rem; line-height: 1; transition: none; width: auto; height: auto; background: none; position: static; }
  .nav .icon-btn { display: flex; align-items: center; gap: .5rem; padding: .65rem 1.5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(0,0,0,.06); justify-content: flex-start; margin-top: 0; align-self: auto; position: static; }
  .nav .cart-count { position: static; display: inline-flex; background: transparent; color: inherit; font-size: .8rem; min-width: 0; height: auto; border-radius: 0; padding: 0; }
  .burger { display: block; margin-left: auto; z-index: 210; }
  /* Submenu panel — slides in from right */
  .nav .rates-panel {
    position: fixed; top: 0; right: -100%; bottom: 0; width: 100%; max-width: 380px;
    background: var(--ivory); z-index: 220; padding: 1rem 1.5rem;
    display: block; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; margin: 0;
    transition: right .3s ease; overflow-y: auto;
  }
  .nav .rates-drop.open .rates-panel { right: 0; }
  .nav .rates-panel .rates-back {
    display: flex; align-items: center; gap: .4rem; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
    padding: .5rem 0 .8rem; border-bottom: 1px solid rgba(0,0,0,.06); margin-bottom: .8rem;
    color: var(--gold-deep);
  }
  .nav .rates-panel .rates-back::before { content: '‹'; font-size: 1.4rem; line-height: 1; }
  .nav .rates-panel h4 { font-size: .9rem; margin-bottom: .3rem; }
  .nav .rates-panel .rrow { font-size: .8rem; padding: .12rem 0; }
  .nav .rates-panel .rates-note { font-size: .72rem; }
  .nav .rates-panel .rates-time { font-size: .7rem; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  body { line-height: 1.7; }
  .container { width: min(100%, calc(100% - 1.4rem)); }
  .site-logo { max-height: 68px; }
  .auth-card .brand-mark img { max-height: 68px; }
  .footer-logo { max-height: 60px; }
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head .kicker,
  .announce,
  .crumbs,
  .dash-nav .dn-head,
  .table th { font-size: .82rem; }
  .section-head p,
  .feature p,
  .card-body h3,
  .card-body .cat,
  .pd-info .sku,
  .rates-panel .rrow,
  .rates-time,
  .rates-note { font-size: .98rem; }
  .page-head { padding: 2.2rem 0; }
  .page-head p { font-size: 1rem; padding-inline: .5rem; }
  .hero-inner { padding: 2.8rem 0 3rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero p.lead { font-size: 1rem; max-width: 100%; }
  .hero-cta,
  .pd-actions { flex-direction: column; }
  .hero-cta .btn,
  .pd-actions .btn,
  .pd-actions form,
  .pd-actions form .btn { width: 100%; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .cat-tile { aspect-ratio: auto; min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .trust-strip .container { justify-content: center; gap: 1rem; }
  .auth-card { padding: 2rem 1.4rem; }
  .panel { padding: 1.2rem; }
  .price-row { flex-wrap: wrap; gap: .45rem .7rem; }
  .price, .pd-price { font-size: 1.35rem; }
  .pd-price-old { font-size: .98rem; display: inline-block; margin-left: .5rem; }
  .spec-table td { display: block; width: 100%; padding: .45rem 0; }
  .spec-table td:first-child { width: 100%; font-size: .92rem; font-weight: 600; }
  .qty-row { flex-wrap: wrap; align-items: flex-start; }
  .qty-box { min-height: 48px; }
  .qty-box input { width: 60px; font-size: 1rem; }
  .form-grid { gap: .9rem; }
  .fg label { font-size: .85rem; }
  .table-stack,
  .table-stack thead,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td,
  .table-stack tfoot { display: block; width: 100%; }
  .table-stack thead { display: none; }
  .table-stack tr {
    border: 1px solid var(--gold-pale);
    border-radius: 12px;
    padding: .7rem .85rem;
    margin-bottom: .9rem;
    background: var(--white);
  }
  .table-stack td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .5rem 0;
    border: 0;
    font-size: .98rem;
    text-align: left !important;
  }
  .table-stack td::before {
    content: attr(data-label);
    display: block;
    flex: 0 0 42%;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .table-stack td[data-label="Image"]::before { content: ''; }
  .table-stack td[data-label="Image"] { justify-content: flex-start; }
  .table-stack td[data-label="Product"] { display: block; }
  .table-stack td[data-label="Product"]::before,
  .table-stack td[data-label="Item"]::before { margin-bottom: .35rem; }
  .table-stack td[data-label="Quantity"] form,
  .table-stack td[data-label="Action"] form { width: 100%; }
  .table-stack td[data-label="Quantity"] form {
    display: flex !important;
    flex-wrap: wrap;
    gap: .55rem !important;
  }
  .table-stack td[data-label="Quantity"] input[type="number"] {
    width: 84px !important;
    min-height: 44px;
  }
  .table-stack tfoot tr {
    display: block;
    border-top: 2px solid var(--gold-pale);
    padding-top: .8rem;
    margin-top: .6rem;
  }
  .table-stack tfoot td {
    display: block;
    padding: .35rem 0;
  }
  .table-stack tfoot td::before { display: none; }
}
@media (max-width: 420px) {
  .container { width: min(100%, calc(100% - 1rem)); }
  .btn { padding: .78rem 1rem; font-size: .9rem; letter-spacing: .08em; }
  .nav > a, .nav .rates-drop > a, .nav .icon-btn { font-size: .92rem; padding-inline: 1.1rem; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.35rem); }
  .section-head h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .card-body { padding: 1rem 1rem 1.2rem; }
  .footer-grid { padding: 2.4rem 0 2rem; }
}
