/* ============================================================
   Cornerstone Living — Global Stylesheet
   Apple SF Pro · Vault-Inspired · BDT Currency
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F7F6F3;
  --white:     #FFFFFF;
  --black:     #131211;
  --dark:      #1F1E1C;
  --mid:       #56524C;
  --muted:     #97928A;
  --border:    #E8E5E0;
  --gold:      #B8732A;
  --gold-lt:   #D4914A;
  --gold-dk:   #9A5F20;
  --pill-bg:   #EDEBE7;
  --green:     #2E8B57;
  --red:       #C94A2B;
  /* Corner radii — reduced 30% for a crisper look */
  --r-sm:      7px;
  --r:         13px;
  --r-lg:      18px;
  --shadow:    0 1px 2px rgba(20,16,10,.04), 0 3px 14px rgba(20,16,10,.06);
  --shadow-md: 0 2px 6px rgba(20,16,10,.05), 0 8px 28px rgba(20,16,10,.09);
  --shadow-lg: 0 4px 12px rgba(20,16,10,.06), 0 18px 48px rgba(20,16,10,.13);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.22,.61,.21,1);
  --ring: 0 0 0 3px rgba(184,115,42,.28);
  /* Page container — content width = --page-max minus 2 × --page-pad */
  --page-max: 1360px;
  --page-pad: 40px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--dark);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--gold); color: #fff; }

/* Accessible focus ring (keyboard only) */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.btn:focus-visible, .icon-pill:focus-visible, .nav-link:focus-visible,
.cat-pill:focus-visible, .pg-btn:focus-visible { border-radius: 100px; }

/* Reveal on scroll (added by JS, safe without it) */
.reveal-init { opacity: 0; transform: translateY(18px); }
.reveal-init.reveal-in { opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out),
              box-shadow .28s var(--ease-out), border-color .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init, .reveal-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Wrap ──
   Single source of truth for page width. Content box = 1360 − 80 = 1280px.
   Header, hero, sections and footer all use these same two values. */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); width: 100%; }

/* ── Announce bar ── */
.announce {
  background: var(--black); color: rgba(255,255,255,.7);
  text-align: center; font-size: .78rem; letter-spacing: .04em; padding: 9px 20px;
}
.announce strong { color: #fff; }

/* ── HEADER ── */
.header {
  background: rgba(247,246,243,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(20,16,10,.07); }
.header-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad);
  height: 66px; display: flex; align-items: center; gap: 28px;
}
.logo {
  font-size: 1.35rem; font-weight: 800; color: var(--black);
  letter-spacing: -.035em; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center;
}
.logo em { color: var(--gold); font-style: normal; }
/* Brand logo image (800×205 source) */
.logo img, .brand-logo {
  height: 44px; width: auto; display: block;
  transition: opacity .18s;
}
.logo:hover img { opacity: .82; }
@media (max-width: 768px) { .logo img { height: 36px; } }

.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link {
  padding: 7px 13px; font-size: .84rem; font-weight: 500; color: var(--mid);
  border-radius: 100px; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-link:hover { background: var(--pill-bg); color: var(--dark); }
.nav-link.active { background: var(--black); color: #fff; }
.nav-link.sale { color: var(--red); font-weight: 600; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 100px; padding: 8px 16px; width: 210px;
  transition: border-color .2s, width .3s var(--ease);
}
.search-bar:focus-within { border-color: var(--black); width: 270px; }
.search-bar input { border: none; outline: none; background: transparent;
  font-size: .84rem; color: var(--dark); width: 100%; }
.search-bar input::placeholder { color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--white); border: 1.5px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--dark);
  cursor: pointer; position: relative;
  transition: border-color .18s, background .18s, color .18s;
}
.icon-pill:hover { border-color: var(--black); background: var(--black); color: #fff; }
.icon-pill svg { width: 17px; height: 17px; flex-shrink: 0; }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff;
  font-size: .58rem; font-weight: 700; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
}

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); transition: color .18s; }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ── SECTION HEADERS ── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 20px; flex-wrap: wrap;
}
.section-head > div:first-child { min-width: 0; }
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--black);
  letter-spacing: -.04em; line-height: 1.1; }
.section-title::after {
  content: ''; display: block; width: 44px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt)); margin-top: 8px;
}
.section-sub { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.section-head .see-all, .section-head .btn { flex-shrink: 0; align-self: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .18s var(--ease);
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
.btn-black { background: var(--black); color: #fff; border: 1.5px solid var(--black); }
.btn-black:hover { background: #2C2A27; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-black:active { transform: scale(.97); box-shadow: none; }
.btn-white { background: #fff; color: var(--black); border: 1.5px solid var(--border); }
.btn-white:hover { border-color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(180deg, var(--gold-lt), var(--gold)); color: #fff; border: 1.5px solid var(--gold); }
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(184,115,42,.32); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--black); background: var(--black); color: #fff; }
.btn-ghost-dark {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-lg { padding: 15px 32px; font-size: .95rem; }
.btn-full { width: 100%; }

/* ── SEE ALL ── */
.see-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; color: var(--dark);
  background: var(--pill-bg); padding: 9px 18px; border-radius: 100px;
  transition: background .18s, color .18s; white-space: nowrap;
}
.see-all:hover { background: var(--black); color: #fff; }

/* ── CATEGORY PILLS ── */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 100px; font-size: .84rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border);
  background: var(--white); color: var(--mid);
  transition: all .18s var(--ease);
}
.cat-pill:hover { border-color: var(--dark); color: var(--dark); }
.cat-pill.active { background: var(--black); border-color: var(--black); color: #fff; }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow);
  border: 1px solid rgba(232,229,224,.7);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.product-thumb {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--pill-bg);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out); }
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,18,17,.06), transparent 30%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.product-card:hover .product-thumb::after { opacity: 1; }

.thumb-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .67rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 100px;
}
.badge-sale { background: var(--black); color: #fff; }
.badge-new  { background: var(--gold); color: #fff; }
.badge-hot  { background: var(--red); color: #fff; }
.badge-ltd  { background: #7B3FA0; color: #fff; }

.wish-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .18s, color .18s;
}
.wish-btn:hover { transform: scale(1.12); color: var(--red); }
.wish-btn.active { color: var(--red); }

.quick-add {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(19,18,17,.88); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 700; padding: 9px 0;
  border-radius: 100px; text-align: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), background .2s;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--gold); }

.product-info { padding: 14px 16px 16px; }
.product-brand { font-size: .68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.product-name { font-size: .88rem; font-weight: 600; color: var(--dark);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.stars { color: #F4C34C; font-size: .76rem; letter-spacing: -.03em; }
.rating-count { font-size: .72rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; flex-wrap: wrap; }
.price-now { font-size: 1.02rem; font-weight: 700; color: var(--black); }
.price-was { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.price-pct { font-size: .7rem; font-weight: 700; color: var(--green);
  background: #EAF5EF; padding: 2px 7px; border-radius: 100px; }

.add-btn {
  width: 100%; padding: 10px; background: var(--pill-bg);
  color: var(--dark); font-size: .82rem; font-weight: 700; border-radius: 100px;
  transition: background .18s, color .18s, transform .15s;
}
.add-btn:hover { background: var(--black); color: #fff; }
.add-btn:active { transform: scale(.97); }

/* ── PRODUCTS GRIDS ── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }

/* Horizontal scroll row */
.h-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .product-card { flex: 0 0 230px; scroll-snap-align: start; }

/* ── TILES / SURFACES ── */
.tiles-band {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}
.tiles-band-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.tiles-band-head h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.tiles-band-head p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.tiles-note {
  font-size: .74rem; font-weight: 700; color: var(--green);
  background: #EAF5EF; padding: 6px 14px; border-radius: 100px; white-space: nowrap;
}
/* Swatch rail */
.swatch-rail {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.swatch-rail::-webkit-scrollbar { display: none; }
.swatch {
  flex: 0 0 132px; scroll-snap-align: start; cursor: pointer; text-align: left;
}
.swatch-chip {
  position: relative; width: 132px; height: 132px; border-radius: 11px; overflow: hidden;
  background: var(--pill-bg); border: 1.5px solid var(--border);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s;
}
.swatch-chip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.swatch:hover .swatch-chip { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--black); }
.swatch:hover .swatch-chip img { transform: scale(1.08); }
.swatch-chip .sw-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: .58rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 100px;
}
.swatch-name { font-size: .8rem; font-weight: 600; color: var(--dark); margin-top: 9px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swatch-price { font-size: .78rem; font-weight: 700; color: var(--black); margin-top: 3px; }
.swatch-price span { font-weight: 500; color: var(--muted); font-size: .7rem; }
/* Unit label on product cards */
.price-unit { font-size: .7rem; font-weight: 500; color: var(--muted); }
@media (max-width: 768px) {
  .swatch, .swatch-chip { flex-basis: 112px; width: 112px; height: 112px; }
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-item { transition: background .25s; }
.trust-item:hover { background: var(--bg); }
.trust-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto 12px;
  transition: transform .3s var(--ease-out), background .25s; }
.trust-item:hover .trust-ico { transform: scale(1.1) rotate(-4deg); background: #fff; box-shadow: var(--shadow); }
.trust-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.trust-item p { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ── FLASH STRIP ── */
.flash-strip {
  background: var(--black); border-radius: var(--r-lg);
  padding: 26px 36px; display: flex; align-items: center; gap: 24px;
}
.flash-text h3 { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.025em; }
.flash-text p  { font-size: .76rem; color: rgba(255,255,255,.45); margin-top: 2px; }
.countdown { display: flex; align-items: center; gap: 6px; }
.cd-unit {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1.05rem; font-weight: 700;
  width: 48px; height: 48px; border-radius: 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.cd-lbl { font-size: .47rem; color: rgba(255,255,255,.4); font-weight: 500; letter-spacing: .06em; }
.cd-sep { color: rgba(255,255,255,.35); font-weight: 700; font-size: 1.1rem; }

/* ── NEWSLETTER ── */
.newsletter-block {
  background: var(--black); border-radius: var(--r-lg);
  padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.nl-overline { font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-lt); margin-bottom: 12px; }
.nl-title { font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.06;
  letter-spacing: -.04em; margin-bottom: 12px; }
.nl-sub { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.7; }
.nl-perks { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.nl-perk { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.5); }
.nl-perk-ico {
  width: 22px; height: 22px; background: rgba(255,255,255,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; flex-shrink: 0;
}
.nl-input-row {
  display: flex; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 100px; overflow: hidden; transition: border-color .2s;
}
.nl-input-row:focus-within { border-color: var(--gold); }
.nl-input-row input { flex: 1; padding: 13px 20px; background: transparent; border: none; outline: none;
  color: #fff; font-size: .88rem; }
.nl-input-row input::placeholder { color: rgba(255,255,255,.3); }
.nl-input-row button { background: var(--gold); color: #fff; font-size: .84rem; font-weight: 700;
  padding: 0 24px; border-radius: 100px; margin: 4px; transition: background .18s; }
.nl-input-row button:hover { background: var(--gold-lt); }
.nl-note { font-size: .7rem; color: rgba(255,255,255,.28); margin-top: 10px; padding-left: 6px; }

/* ── FOOTER ── */
.footer { background: #0D0D0D; color: rgba(255,255,255,.42); }
.footer-main { max-width: var(--page-max); margin: 0 auto; padding: 60px var(--page-pad) 44px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff;
  letter-spacing: -.035em; margin-bottom: 14px; display: block; }
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-brand-desc { font-size: .8rem; line-height: 1.75; margin-bottom: 22px; }
.socials { display: flex; gap: 8px; }
.social {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; color: rgba(255,255,255,.45);
  transition: background .18s, color .18s, border-color .18s;
}
.social:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.footer-col h5 { font-size: .75rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: .8rem; color: rgba(255,255,255,.38);
  transition: color .18s, padding-left .22s var(--ease-out); display: inline-block; }
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  max-width: var(--page-max); margin: 0 auto; padding: 16px var(--page-pad);
  display: flex; align-items: center; justify-content: space-between; font-size: .75rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.3); transition: color .18s; }
.footer-links a:hover { color: #fff; }
.dev-credit { font-size: .74rem; color: rgba(255,255,255,.3); }
.dev-credit a { color: rgba(255,255,255,.5); transition: color .18s; }
.dev-credit a:hover { color: #fff; }
.pay-row { display: flex; gap: 6px; }
.pay { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 3px 9px; border-radius: 5px; font-size: .64rem; font-weight: 700;
  color: rgba(255,255,255,.38); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--black); color: #fff; font-size: .84rem; font-weight: 500;
  padding: 12px 22px; border-radius: 100px; box-shadow: var(--shadow-lg);
  z-index: 9999; opacity: 0; transition: opacity .25s, transform .25s;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.toast .tick { color: #4CAF50; font-size: 1rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px; background: var(--black); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; box-shadow: 0 4px 20px rgba(0,0,0,.2);
  cursor: pointer; transition: transform .2s, background .18s; z-index: 99;
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); background: var(--gold); }

/* ── FORM STYLES ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--dark);
  margin-bottom: 7px; }
.form-label .req { color: var(--red); margin-left: 3px; }
.form-input {
  width: 100%; padding: 12px 16px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .88rem; color: var(--dark); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.form-input::placeholder { color: var(--muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── PAGE HERO BANNER (inner pages) ── */
.page-banner {
  background: var(--black); padding: 48px 0;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 80% 50%, rgba(184,115,42,.2) 0%, transparent 60%);
}
.page-banner-content { position: relative; z-index: 1; }
.page-banner h1 { font-size: 2.4rem; font-weight: 800; color: #fff;
  letter-spacing: -.04em; margin-bottom: 8px; }
.page-banner p { font-size: .9rem; color: rgba(255,255,255,.5); margin-top: 10px; }

/* ── SIDEBAR FILTER ── */
.filter-sidebar { width: 240px; flex-shrink: 0; }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: .8rem; font-weight: 700; color: var(--dark);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.filter-opt input[type="checkbox"] { accent-color: var(--black); width: 15px; height: 15px; cursor: pointer; }
.filter-opt label { font-size: .84rem; color: var(--mid); cursor: pointer; transition: color .18s; }
.filter-opt:hover label { color: var(--dark); }
.filter-count { font-size: .72rem; color: var(--muted); margin-left: auto; }

/* Price slider */
.price-range-row { display: flex; gap: 10px; margin-bottom: 12px; }
.price-input { flex: 1; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .8rem; text-align: center; outline: none; }
.price-input:focus { border-color: var(--black); }

/* Color swatches */
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: border-color .18s, transform .18s;
}
.color-swatch:hover, .color-swatch.active { border-color: var(--black); transform: scale(1.1); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 40px; justify-content: center; }
.pg-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .84rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--mid); transition: all .18s;
}
.pg-btn:hover { border-color: var(--black); color: var(--dark); }
.pg-btn.active { background: var(--black); border-color: var(--black); color: #fff; }
.pg-btn.nav-btn { width: auto; padding: 0 14px; border-radius: 100px; font-size: .8rem; }

/* ── SORT BAR ── */
.sort-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sort-bar .result-count { font-size: .85rem; color: var(--muted); }
.sort-select {
  margin-left: auto; padding: 8px 32px 8px 14px; border: 1.5px solid var(--border);
  border-radius: 100px; font-size: .83rem; font-weight: 500; background: var(--white);
  color: var(--dark); cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; appearance: none;
}

/* ── ACCORDION ── */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--dark);
  transition: color .18s;
}
.acc-head:hover { color: var(--gold); }
.acc-head .acc-icon { font-size: 1.1rem; transition: transform .25s; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body { font-size: .86rem; color: var(--mid); line-height: 1.75;
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), padding .25s; }
.acc-item.open .acc-body { max-height: 600px; padding-bottom: 16px; }

/* ── CART MINI ── */
.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  cursor: pointer; transition: border-color .18s, background .18s; background: var(--white);
}
.qty-btn:hover { border-color: var(--black); background: var(--black); color: #fff; }
.qty-val { min-width: 36px; text-align: center; font-size: .9rem; font-weight: 700; }

/* ── ORDER SUMMARY BOX ── */
.order-box {
  background: var(--white); border-radius: var(--r); padding: 24px;
  box-shadow: var(--shadow); position: sticky; top: 90px;
}
.order-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -.02em; }
.order-row { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.order-row:last-of-type { border-bottom: none; }
.order-row.total { font-size: 1.05rem; font-weight: 700; color: var(--black); }
.order-row .free { color: var(--green); font-weight: 600; }
.order-row .discount { color: var(--red); font-weight: 600; }
.promo-input-row { display: flex; gap: 0; border: 1.5px solid var(--border);
  border-radius: 100px; overflow: hidden; margin: 18px 0; }
.promo-input-row input { flex: 1; border: none; outline: none; padding: 10px 16px;
  font-size: .84rem; background: transparent; }
.promo-input-row button { background: var(--black); color: #fff; padding: 0 18px;
  font-size: .8rem; font-weight: 600; border-radius: 100px; margin: 3px;
  transition: background .18s; }
.promo-input-row button:hover { background: var(--gold); }

/* ── STEPS / PROGRESS ── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.step { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--white);
  transition: all .25s;
}
.step.active .step-num { border-color: var(--black); background: var(--black); color: #fff; }
.step.done .step-num { border-color: var(--green); background: var(--green); color: #fff; }
.step-label { font-size: .82rem; font-weight: 600; color: var(--muted); transition: color .25s; }
.step.active .step-label, .step.done .step-label { color: var(--dark); }
.step-line { flex: 1; height: 1.5px; background: var(--border); margin: 0 8px; }

/* ── PAYMENT CARDS ── */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .18s, background .18s;
}
.pay-method.selected { border-color: var(--black); background: rgba(20,20,20,.03); }
.pay-method input[type="radio"] { accent-color: var(--black); width: 16px; height: 16px; }
.pay-method-logo {
  width: 44px; height: 28px; border-radius: 5px; object-fit: contain;
  background: var(--pill-bg); display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: var(--mid); flex-shrink: 0;
}
.pay-method-info h4 { font-size: .88rem; font-weight: 600; }
.pay-method-info p  { font-size: .75rem; color: var(--muted); }

/* ── SUCCESS PAGE ── */
.success-wrap { text-align: center; padding: 80px 20px; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%; background: #EAF5EF;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 24px;
  animation: pop .5s var(--ease);
}
@keyframes pop { 0%{transform:scale(0)} 70%{transform:scale(1.1)} 100%{transform:scale(1)} }
.success-wrap h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px; }
.success-wrap p { font-size: .92rem; color: var(--muted); max-width: 420px; margin: 0 auto 36px; }
.order-summary-card {
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 28px; max-width: 480px; margin: 0 auto 32px; text-align: left;
}
.order-summary-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 16px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.order-detail-row { display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.order-detail-row:last-child { border-bottom: none; font-weight: 700; font-size: .95rem; }

/* ── PRODUCT GALLERY ── */
.gallery-wrap { display: flex; gap: 14px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: border-color .18s;
  flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--black); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main {
  flex: 1; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 1; background: var(--pill-bg); position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s; }
.gallery-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: .7rem; font-weight: 700; padding: 5px 12px; border-radius: 100px;
}

/* ── COLOR / SIZE SELECTORS ── */
.option-label { font-size: .82rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.option-label span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.size-pill {
  padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--mid); cursor: pointer;
  transition: all .18s;
}
.size-pill:hover { border-color: var(--dark); color: var(--dark); }
.size-pill.active { background: var(--black); border-color: var(--black); color: #fff; }
.size-pill.oos { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

/* ── REVIEW CARD ── */
.review-card { background: var(--white); border-radius: var(--r); padding: 20px 22px;
  box-shadow: var(--shadow); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pill-bg);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.reviewer-name { font-size: .88rem; font-weight: 700; }
.review-date { font-size: .72rem; color: var(--muted); }
.review-text { font-size: .85rem; color: var(--mid); line-height: 1.65; }
.verified { font-size: .7rem; color: var(--green); font-weight: 600;
  display: flex; align-items: center; gap: 4px; margin-top: 10px; }

/* Utility */
.text-muted { color: var(--muted); }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--red); }
.text-green { color: var(--green); }
.fw-700 { font-weight: 700; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
/* Vertical only — must NOT clobber .wrap's horizontal padding (longhand for max browser support).
   34 + 34 = 68px between sections (was 112px, which read as a dead gap). */
.section-pad { padding-top: 34px; padding-bottom: 34px; }
.section-pad-sm { padding-top: 22px; padding-bottom: 22px; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(3,1fr); }
  .newsletter-block { grid-template-columns: 1fr; gap: 40px; padding: 44px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --page-pad: 20px; }   /* one value keeps header, hero, sections & footer aligned */
  .nav-links { display: none; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-5 { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .newsletter-block { padding: 36px 24px; }
  .section-title { font-size: 1.6rem; }
  .steps { gap: 4px; }
  .step-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   BRANDS
   Logo if the brand has one, a clean wordmark if it does not —
   so a half-filled brand list never looks broken.
   ═══════════════════════════════════════════════════════════ */

/* ── the mark itself ── */
.brand-logo {
  max-width: 100%; max-height: 46px; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1); opacity: .62;
  transition: filter .25s var(--ease-out), opacity .25s var(--ease-out);
}
.brand-logo.lg { max-height: 72px; filter: none; opacity: 1; }
.brand-wordmark {
  font-size: .95rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--mid); text-align: center; line-height: 1.15;
  transition: color .25s var(--ease-out);
}
.brand-wordmark.lg { font-size: 1.7rem; color: var(--black); letter-spacing: -.04em; }

/* ── homepage logo row ── */
.brand-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.brand-tile {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  min-height: 104px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; text-align: center;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.brand-tile:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--black);
}
.brand-tile:hover .brand-logo { filter: grayscale(0); opacity: 1; }
.brand-tile:hover .brand-wordmark { color: var(--black); }
.brand-tile-count {
  font-size: .68rem; font-weight: 600; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}

/* ── all-brands index ── */
.brand-index-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.brand-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 20px; text-decoration: none; text-align: center;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .22s var(--ease-out);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--black); }
.brand-card:hover .brand-logo { filter: grayscale(0); opacity: 1; }
.brand-card-mark {
  height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.brand-card-name { font-size: .95rem; font-weight: 700; color: var(--black); letter-spacing: -.02em; }
.brand-card-meta { font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* ── single brand hero ── */
.brand-hero {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 40px; display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
}
.brand-hero-mark {
  min-width: 150px; min-height: 88px; padding: 18px 24px;
  background: var(--bg); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.brand-hero-body { flex: 1; min-width: 260px; }
.brand-hero-body h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--black); }
.brand-hero-desc { font-size: .95rem; color: var(--mid); margin-top: 8px; max-width: 60ch; line-height: 1.6; }
.brand-hero-meta {
  font-size: .76rem; font-weight: 600; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-top: 12px;
}

/* ── product page brand card ── */
.pdp-brand-card {
  display: flex; align-items: center; gap: 18px; margin-top: 22px;
  padding: 18px 20px; text-decoration: none;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.pdp-brand-card:hover { border-color: var(--black); box-shadow: var(--shadow); }
.pdp-brand-card:hover .brand-logo { filter: grayscale(0); opacity: 1; }
.pdp-brand-mark {
  width: 92px; min-height: 56px; flex-shrink: 0;
  background: var(--bg); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.pdp-brand-name { font-size: .92rem; font-weight: 700; color: var(--black); }
.pdp-brand-desc { font-size: .8rem; color: var(--mid); margin-top: 3px; line-height: 1.5; }
.pdp-brand-cta { font-size: .78rem; font-weight: 700; color: var(--gold); margin-top: 7px; }
a.pdp-brand-link { color: var(--muted); text-decoration: none; }
a.pdp-brand-link:hover { color: var(--gold); }

/* ── shop filters ── */
.brand-search {
  width: 100%; padding: 8px 12px; margin-bottom: 10px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .82rem; font-family: var(--font); background: var(--bg); color: var(--black);
}
.brand-search:focus { outline: none; border-color: var(--black); background: var(--white); }
.filter-scroll { max-height: 268px; overflow-y: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip {
  background: var(--pill-bg); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 13px; font-size: .78rem; font-weight: 600; color: var(--dark);
  cursor: pointer; font-family: var(--font);
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.filter-chip:hover { background: var(--white); border-color: var(--black); }
.filter-chip.clear { background: transparent; color: var(--muted); }
.filter-chip.clear:hover { color: var(--black); }
.shop-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.shop-empty strong { display: block; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-index-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-index-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-hero { padding: 26px; gap: 22px; }
  .brand-hero-body h1 { font-size: 1.5rem; }
  .brand-logo { max-height: 38px; }
}
@media (max-width: 460px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-brand-card { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION
   Below 768px the desktop links are hidden. Without this the
   phone has no way to reach Shop, Brands or the categories.
   ═══════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none;
  width: 40px; height: 40px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  border-radius: 50%; color: var(--dark);
  transition: background .18s var(--ease);
}
.nav-toggle:hover { background: var(--pill-bg); }
.nav-toggle svg { width: 21px; height: 21px; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10,9,8,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease);
}
.nav-scrim.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 999;
  width: min(310px, 86vw);
  background: var(--white);
  transform: translateX(100%);
  transition: transform .28s var(--ease-out);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -8px 0 40px rgba(20,16,10,.16);
}
.mobile-nav.open { transform: translateX(0); }

.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.mnav-head img { height: 32px; width: auto; }
.mnav-close {
  width: 34px; height: 34px; border: none; background: var(--pill-bg);
  border-radius: 50%; font-size: 1.1rem; color: var(--dark);
  cursor: pointer; line-height: 1;
}

.mnav-search { padding: 16px 20px 4px; }
.mnav-search input {
  width: 100%; padding: 11px 15px; font-size: .88rem; font-family: var(--font);
  border: 1.5px solid var(--border); border-radius: 100px;
  background: var(--bg); color: var(--dark);
}
.mnav-search input:focus { outline: none; border-color: var(--black); background: var(--white); }

.mnav-group { padding: 14px 20px 6px; }
.mnav-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.mnav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 2px; font-size: .95rem; font-weight: 500; color: var(--dark);
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.mnav-link:last-child { border-bottom: none; }
.mnav-link:active { color: var(--gold); }
.mnav-link.sale { color: var(--red); font-weight: 600; }
.mnav-link .n { font-size: .74rem; color: var(--muted); font-weight: 600; }

.mnav-foot {
  margin-top: auto; padding: 20px;
  border-top: 1px solid var(--border); background: var(--bg);
}
.mnav-foot a { display: block; font-size: .84rem; color: var(--mid); padding: 7px 0; text-decoration: none; }
.mnav-foot .call { font-weight: 700; color: var(--black); }

/* Stop the page scrolling behind the open drawer */
body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  /* the header search is redundant once the drawer has one */
  .header-inner > .search-bar { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 4px; margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT OVERFLOW FIXES
   Number inputs carry a browser default width of ~170px that
   ignores flex:1, which pushed the price boxes out of the
   sidebar. Long chip rows needed somewhere to go as well.
   ═══════════════════════════════════════════════════════════ */

/* nothing may ever push the page sideways */
html, body { max-width: 100%; overflow-x: hidden; }

/* price inputs: let flex actually shrink them */
.price-range-row { display: flex; gap: 8px; margin-bottom: 12px; width: 100%; }
.price-input { flex: 1 1 0; min-width: 0; width: 100%; }
/* hide the spinner arrows — they steal ~18px inside a narrow box */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input { -moz-appearance: textfield; appearance: textfield; }

/* the sidebar itself must be allowed to shrink */
.filter-sidebar { min-width: 0; box-sizing: border-box; }
.filter-sidebar * { max-width: 100%; box-sizing: border-box; }
.filter-opt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-opt label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-count { margin-left: auto; flex-shrink: 0; }

/* chip rows scroll sideways instead of spilling off the screen */
.cat-tabs, .cat-pills {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.cat-tabs::-webkit-scrollbar, .cat-pills::-webkit-scrollbar { display: none; }
.cat-tab, .cat-pill { flex: 0 0 auto; scroll-snap-align: start; }
/* on a roomy screen let them wrap normally again */
@media (min-width: 900px) {
  .cat-tabs, .cat-pills { flex-wrap: wrap; overflow-x: visible; }
}

/* grids must never blow out their column */
.grid-2, .grid-3, .grid-4, .grid-5,
.products-grid-wrap, .brand-grid, .brand-index-grid { min-width: 0; }
.grid-4 > *, .grid-5 > *, .products-grid-wrap > * { min-width: 0; }

/* long product names wrap instead of stretching the card */
.product-name, .brand-card-name { overflow-wrap: anywhere; }

@media (max-width: 768px) {
  .products-grid-wrap { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .filter-sidebar { width: 100% !important; }
  .sort-bar { flex-wrap: wrap; gap: 10px; }
  .page-banner h1, .page-title { font-size: 1.7rem; }
}
@media (max-width: 420px) {
  .products-grid-wrap, .grid-4, .grid-5, .grid-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER ON SMALL SCREENS
   Stacked in one column the footer ran for several screens.
   Each column becomes a tap-to-open accordion instead.
   The JS adds .footer-acc; without JS everything stays open,
   so the links are never unreachable.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 36px; padding-bottom: 24px;
  }

  /* brand block: tighter */
  .footer-main > div:first-child { margin-bottom: 22px; }
  .footer-brand-desc { font-size: .82rem; margin-bottom: 16px; }
  .socials { gap: 10px; }

  /* each link column collapses behind its heading */
  .footer-col { border-top: 1px solid rgba(255,255,255,.09); }
  .footer-col h5 {
    margin: 0; padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none;
  }
  .footer-acc .footer-col h5::after {
    content: '+'; font-size: 1.15rem; font-weight: 400;
    color: rgba(255,255,255,.4); line-height: 1;
    transition: transform .22s var(--ease-out);
  }
  .footer-acc .footer-col.open h5::after { content: '−'; }

  .footer-acc .footer-col ul {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .26s var(--ease-out);
  }
  .footer-acc .footer-col.open ul { grid-template-rows: 1fr; }
  .footer-acc .footer-col ul > li:first-child { margin-top: 0; }
  .footer-acc .footer-col ul li { min-height: 0; overflow: hidden; }
  .footer-acc .footer-col ul {
    gap: 0; overflow: hidden;
  }
  .footer-acc .footer-col.open ul { padding-bottom: 10px; }
  .footer-col ul li a { padding: 9px 0; font-size: .85rem; }

  /* bottom bar reads as three tidy rows, not one cramped line */
  .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 14px;
    text-align: left; padding-top: 20px; padding-bottom: 26px;
  }
  .footer-links { gap: 16px; }
  .pay-row { flex-wrap: wrap; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT PAGE
   Moved out of the old product.html <style> block so the
   server-rendered page can use it too.
   ═══════════════════════════════════════════════════════════ */

    .product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: flex-start; }
    .product-details { position: sticky; top: 90px; }
    .product-title { font-size: 1.7rem; font-weight: 800; color: var(--black); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 8px; }
    .product-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
    .in-stock { font-size: .78rem; font-weight: 700; color: var(--green); background: #EAF5EF; padding: 4px 12px; border-radius: 100px; }
    .low-stock { font-size: .78rem; font-weight: 700; color: #d97706; background: #FEF3C7; padding: 4px 12px; border-radius: 100px; }
    .product-price-main { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
    .price-big { font-size: 2rem; font-weight: 800; color: var(--black); letter-spacing: -.04em; }
    .price-orig { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
    .price-save { font-size: .82rem; font-weight: 700; color: var(--green); background: #EAF5EF; padding: 4px 12px; border-radius: 100px; }
    .divider { height: 1px; background: var(--border); margin: 22px 0; }
    .emi-note { font-size: .8rem; color: var(--muted); background: var(--pill-bg); padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 20px; }
    .emi-note strong { color: var(--dark); }
    .action-row { display: flex; gap: 12px; margin-top: 6px; }
    .qty-wrap { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 100px; overflow: hidden; background: var(--white); }
    .qty-wrap .qty-btn { width: 40px; height: 44px; border: none; border-radius: 0; background: transparent; }
    .qty-wrap .qty-val { min-width: 44px; text-align: center; font-size: .95rem; font-weight: 700; }
    .shipping-info { background: var(--white); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-top: 20px; }
    .ship-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .84rem; color: var(--mid); border-bottom: 1px solid var(--border); }
    .ship-row:last-child { border-bottom: none; }
    .ship-row .icon { font-size: 1.1rem; width: 28px; text-align: center; }
    .reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .rating-overview { background: var(--white); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); display: flex; gap: 32px; align-items: center; margin-bottom: 24px; }
    .big-rating { font-size: 4rem; font-weight: 800; color: var(--black); letter-spacing: -.05em; line-height: 1; }
    .rating-bars { flex: 1; }
    .rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .78rem; }
    .rating-bar-row span:first-child { width: 12px; text-align: right; color: var(--muted); }
    .bar-track { flex: 1; height: 6px; background: var(--pill-bg); border-radius: 100px; overflow: hidden; }
    .bar-fill { height: 100%; background: #F4C34C; border-radius: 100px; }
    .related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
    /* — Prev/Next product navigation — */
    .pdp-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
    .pdp-nav-btn { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1.5px solid var(--border); border-radius: 100px; padding: 8px 18px; font-size: .8rem; font-weight: 600; color: var(--dark); transition: all .18s var(--ease); max-width: 46%; }
    .pdp-nav-btn:hover { border-color: var(--black); background: var(--black); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
    .pdp-nav-btn .arr { font-size: 1.05rem; }
    .pdp-nav-info { display: flex; flex-direction: column; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .pdp-nav-info small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
    .pdp-nav-btn:hover .pdp-nav-info small { color: rgba(255,255,255,.6); }
    .pdp-nav-btn.right { text-align: right; }
    /* — Gallery arrows & dots — */
    .gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 12px rgba(0,0,0,.16); font-size: 1.5rem; line-height: 1; color: var(--black); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s, transform .15s, background .15s; z-index: 3; }
    .gal-arrow.left { left: 12px; } .gal-arrow.right { right: 12px; }
    .gallery-main:hover .gal-arrow { opacity: 1; }
    .gal-arrow:hover { background: var(--black); color: #fff; transform: translateY(-50%) scale(1.08); }
    .gal-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
    .gal-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .2s; }
    .gal-dot.on { background: #fff; width: 18px; border-radius: 100px; }
    @media(max-width:900px){ .product-layout{grid-template-columns:1fr;} .product-details{position:static;} .reviews-grid{grid-template-columns:1fr;} .related-grid{grid-template-columns:repeat(2,1fr);} .pdp-nav-info{display:none;} .gal-arrow{opacity:1;} }
  
/* two small classes the server-rendered pages rely on */
.pdp-brand-body { flex: 1; min-width: 0; }
.page-sub { font-size: .9rem; color: rgba(255,255,255,.55); margin-top: 6px; }

/* ── Product page on a phone ──
   The gallery thumbs sit in a column beside the main image on a
   desktop; on a narrow screen that column has nowhere to go, so
   they become a scrolling strip underneath instead. */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 24px; }

  /* .gallery-wrap is a FLEX row on desktop (thumbs beside the photo).
     On a phone it has to become a column, or the main image is squeezed
     to nothing — grid rules do not apply to it. */
  .gallery-wrap { flex-direction: column; gap: 10px; }
  .gallery-main { order: 1; width: 100%; flex: none; }
  .gallery-thumbs {
    order: 2;
    flex-direction: row; gap: 8px;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { flex: 0 0 64px; height: 64px; }

  /* just two small round arrows — the long names do not fit */
  .pdp-nav { gap: 8px; margin-bottom: 14px; }
  .pdp-nav-btn {
    width: 38px; height: 38px; padding: 0; max-width: none; flex: 0 0 auto;
    border-radius: 50%; justify-content: center;
  }
  .pdp-nav-btn .arr { font-size: 1rem; }
}
@media (max-width: 560px) {
  .product-title { font-size: 1.45rem; }
  .price-big { font-size: 1.6rem; }
  .action-row { flex-wrap: wrap; }
  .action-row .btn { width: 100%; }
  .product-meta-row { flex-wrap: wrap; gap: 8px; }
  /* the original design hides the names below 900px — keep it that way,
     the arrows alone are enough on a phone */
}

/* ── Category menu with sub-categories ──
   Hover on a desktop; on touch the parent link still goes straight
   to the category, so nothing is unreachable. */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop .caret { font-size: .7rem; opacity: .5; margin-left: 2px; }
.nav-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); box-shadow: var(--shadow-md);
  padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a {
  display: block; padding: 8px 12px; font-size: .83rem; color: var(--mid);
  border-radius: var(--r-sm); white-space: nowrap; text-decoration: none;
}
.nav-menu a:hover { background: var(--pill-bg); color: var(--black); }
.nav-menu a:first-child { font-weight: 600; color: var(--dark); }
@media (max-width: 768px) { .nav-drop { display: none; } }

/* sub-categories sit indented under their parent in the mobile drawer */
.mnav-sub {
  padding-left: 18px; font-size: .87rem; color: var(--mid);
  border-bottom-style: dashed;
}
.mnav-sub::before { content: '↳'; color: var(--muted); margin-right: 7px; font-size: .8rem; }

/* ═══════════════════════════════════════════════════════════
   SHOP LAYOUT
   All of it lives here rather than in a page's <style> block —
   a page-level rule loads later and silently wins, which is how
   the phone grid stayed at three columns.
   ═══════════════════════════════════════════════════════════ */

.shop-layout { display: flex; gap: 32px; align-items: flex-start; }
.products-area { flex: 1; min-width: 0; }
.products-grid-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.filter-sidebar {
  background: var(--white); border-radius: var(--r); padding: 20px 22px;
  box-shadow: var(--shadow); width: 236px; flex-shrink: 0;
}
.filter-sidebar h3 { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; }
.filter-reset { font-size: .76rem; color: var(--muted); cursor: pointer; }
.cat-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.cat-tab {
  padding: 8px 18px; border-radius: 100px; font-size: .83rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white); color: var(--mid);
  text-decoration: none;
}
.cat-tab.active { background: var(--black); border-color: var(--black); color: #fff; }

@media (max-width: 1100px) { .products-grid-wrap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .shop-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; }
  .products-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS ON A PHONE
   Two per row, with room for a two-line name and a button that
   never wraps. Everything below is deliberately last in the file
   so nothing else can override it.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .products-grid-wrap,
  .grid-4, .grid-5, .grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }

  .product-card { border-radius: var(--r-sm); }
  .product-info { padding: 11px 11px 13px; }

  .product-brand { font-size: .62rem; letter-spacing: .07em; margin-bottom: 3px; }

  /* two lines, then ellipsis — no more mid-word cuts */
  .product-name {
    font-size: .82rem; line-height: 1.32; min-height: 2.1em; margin-bottom: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; white-space: normal;
  }
  .product-name a { color: inherit; }

  .product-rating { margin-bottom: 5px; }
  .product-rating .stars { font-size: .72rem; }
  .rating-count { font-size: .68rem; }

  /* price, old price and discount on one tidy line */
  .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
  .price-now { font-size: .96rem; }
  .price-was { font-size: .72rem; }
  .price-pct { font-size: .66rem; padding: 1px 6px; }
  .price-unit { font-size: .68rem; }

  /* the button must stay on one line */
  .add-btn {
    width: 100%; padding: 9px 8px; font-size: .78rem; white-space: nowrap;
    border-radius: 100px;
  }

  .thumb-badge { font-size: .6rem; padding: 3px 8px; top: 8px; left: 8px; }
  .wish-btn { width: 30px; height: 30px; font-size: .9rem; top: 8px; right: 8px; }
  /* hover-only affordance is useless on touch */
  .quick-add { display: none; }

  .sort-bar { flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .result-count { font-size: .84rem; }
  .sort-select { font-size: .82rem; padding: 7px 12px; }
}

@media (max-width: 380px) {
  .products-grid-wrap, .grid-4, .grid-5, .grid-3 { gap: 9px; }
  .product-info { padding: 9px 9px 11px; }
  .product-name { font-size: .78rem; }
  .price-now { font-size: .9rem; }
  .add-btn { font-size: .74rem; padding: 8px 6px; }
}

/* A product whose photo is missing should not leave a broken icon */
.product-thumb img { background: var(--pill-bg); }

/* ═══════════════════════════════════════════════════════════
   SHOP FILTERS ON A PHONE
   Stacked, the sidebar pushed every product below a full screen
   of checkboxes. It now collapses behind a button.
   ═══════════════════════════════════════════════════════════ */

.filter-toggle { display: none; }

@media (max-width: 900px) {
  .shop-layout { flex-direction: column; gap: 14px; }

  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 16px; margin-bottom: 2px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 100px; font-family: var(--font);
    font-size: .86rem; font-weight: 700; color: var(--dark); cursor: pointer;
  }
  .filter-toggle .chev { transition: transform .22s var(--ease-out); font-size: .8rem; color: var(--muted); }
  .filter-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .filter-toggle .count {
    background: var(--black); color: #fff; font-size: .68rem;
    padding: 2px 8px; border-radius: 100px; margin-left: 8px;
  }

  .filter-sidebar { width: 100%; display: none; }
  .filter-sidebar.open { display: block; }

  /* products come first once the filters are closed */
  .products-area { order: 2; }
  .filter-toggle  { order: 1; }
  .filter-sidebar { order: 1; }

  /* two columns of checkboxes uses the width far better than one */
  .filter-options { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
  .filter-scroll  { max-height: 190px; }
  .filter-group   { padding: 14px 0; }
}

@media (max-width: 480px) {
  .filter-options { grid-template-columns: 1fr; }
}

/* ── Header on a phone ──
   Logo + three icons + the menu button do not fit at 390px.
   Account and wishlist live inside the drawer instead. */
@media (max-width: 768px) {
  .header-inner { gap: 8px; padding-left: 14px; padding-right: 10px; }
  .header-actions .icon-pill[title="Account"],
  .header-actions .icon-pill[title="Wishlist"] { display: none; }
  .header-actions .icon-pill { padding: 7px 11px; font-size: .78rem; }
  .logo img { height: 32px; }
  .announce { font-size: .68rem; padding: 6px 12px; line-height: 1.45; }
}
@media (max-width: 380px) {
  .header-actions .icon-pill { padding: 7px 9px; }
  .header-actions .icon-pill svg { width: 17px; height: 17px; }
}

/* Breadcrumb on a phone: one scrolling line rather than a wrapped block */
@media (max-width: 768px) {
  .breadcrumb {
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow-x: auto; scrollbar-width: none;
    font-size: .76rem; padding-bottom: 2px;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .breadcrumb a, .breadcrumb .current, .breadcrumb .sep { flex: 0 0 auto; }
  .breadcrumb .current { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
}
