/* ═══════════════════════════════════════════════════════════════
   GCOM Global Store — global stylesheet
   "One World. Endless Choices."
   Modern premium: true black + warm gold + ivory. Inspired by
   Aesop, Apple, Tesla — geometric, confident, brand-forward.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand — true black (matches the GCOM wordmark) + warm gold
     accent (matches the gold square inside the logo's "G") */
  --brand:         #0A0A0A;        /* logo black */
  --brand-dark:    #000000;        /* hover/pressed — pure black */
  --brand-light:   #ECE9E2;        /* tinted ivory surfaces */
  --accent:        #B89456;        /* warm gold — matches logo's gold accent */
  --accent-dark:   #8A6B33;        /* hover state */
  --accent-soft:   #F2EBDC;        /* gold-tinted surface fill */

  /* Text */
  --text:          #1A1A1A;        /* primary copy on light surfaces */
  --text-secondary:#3F4855;        /* sub-headings, descriptions */
  --text-muted:    #707682;        /* meta info, footnotes */
  --text-on-brand: #FAF8F2;        /* body copy on black backgrounds */

  /* Surfaces — ivory cream, slightly warmer than navy-era theme */
  --bg:            #FAF8F2;        /* page background — soft ivory */
  --surface:       #FFFFFF;        /* cards, panels */
  --surface-alt:   #F2EEE5;        /* alt sections, banners */
  --border:        #E5DFD5;        /* warm-toned dividers */
  --border-strong: #C8C0B1;        /* hover/focus borders */

  /* Status */
  --success:       #0F5132;        /* deep forest — "Shipping included" check */
  --warning:       #B45309;        /* warm amber — never used for primary actions */
  --danger:        #991B1B;        /* deep crimson — only for destructive ops */

  /* Layout */
  --radius:        6px;            /* tighter — premium minimal feel */
  --radius-sm:     3px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow:        0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.10);
  --container:     1600px;
  --header-h:      64px;

  /* Type system:
       --font-wordmark = Archivo Black, ONLY for the GCOM wordmark.
                         Heavy geometric letterforms that match the logo.
       --font-display  = Outfit, for hero headlines, section titles,
                         banner h2s. Modern geometric premium sans.
       --font-body     = Inter, for everything else (UI, body copy).
     Cormorant Garamond was dropped — too magazine-y for the
     tech-forward GCOM positioning. */
  --font-wordmark: 'Archivo Black', 'Inter', -apple-system, sans-serif;
  --font-display:  'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.accent { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
/* Logo image — wordmark only now (tagline rendered as separate
   text alongside, see .brand-tagline-side). 52px tall gives a
   confident header presence without dominating. */
.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  display: block;
}
/* Tagline rendered as text next to the logo, two lines stacked.
   "ONE WORLD." in black, "ENDLESS CHOICES." in champagne gold —
   matches the typography inside the logo file itself. */
.brand-tagline-side {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.brand-tagline-black { color: var(--brand); }
.brand-tagline-gold { color: var(--accent-dark); }

.header-search {
  display: flex;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 999px;
  overflow: hidden;
}
.header-cat-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  background: #fafafa;
  border: none;
  border-right: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}
.header-cat-btn:hover { background: #f0f1f4; }
.header-search input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
}
.header-search-btn {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 0 22px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.header-search-btn:hover { background: var(--brand); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover { background: #f3f4f7; color: var(--text); }
.nav-link.active { color: var(--brand); }

/* Subtle vertical separator between nav sections — standard e-commerce pattern */
.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
}

.cart-link { position: relative; }
.cart-badge {
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

/* ── Auth nav (login / register / account) ──
   The slot is an inline-flex container so its two children — Sign in
   link and Create account button — sit side by side. Without this they
   stacked vertically because each .nav-link is itself display:inline-flex. */
.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-signin { font-weight: 600; color: var(--text); }
.nav-signin:hover { color: var(--brand); }
.nav-register-btn {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.15s, transform 0.05s;
}
.nav-register-btn:hover {
  background: var(--brand-dark);
  color: #fff !important;
}
.nav-register-btn:active { transform: translateY(1px); }
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  padding: 6px 12px 6px 6px !important;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-dark);
  border: 0;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.nav-account:hover { background: var(--accent); color: var(--brand-dark); }
.nav-account-chev { opacity: 0.6; transition: transform 0.15s; }
.nav-account[aria-expanded="true"] .nav-account-chev { transform: rotate(180deg); }

/* Wishlist link in the header — heart icon with label, treated like
   the Track link visually. Hidden on phone breakpoint where the
   drawer covers wishlist navigation. */
.nav-wishlist svg { color: var(--text-secondary); }
.nav-wishlist:hover svg { color: #d6336c; }

/* Account dropdown panel — appears under the "Hi, Name" pill when
   clicked. Positioned absolute via JS (top/right). */
.account-dropdown {
  position: fixed;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 240px;
  padding: 6px 0;
  font-size: 14px;
}
.account-dropdown[hidden] { display: none; }
.account-dropdown-head {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.account-dropdown-greeting {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.account-dropdown-email {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-dropdown-link {
  display: block;
  width: 100%;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.account-dropdown-link:hover { background: var(--surface-alt); color: var(--brand); }
.account-dropdown-divider { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.account-dropdown-signout { color: var(--danger); font-weight: 600; }
.account-dropdown-signout:hover { background: #fceeee; color: var(--danger); }
.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Developer-only API status indicator — kept in DOM for app.js but
   hidden from customers. Uncomment the display rule to show it again. */
.status-pill { display: none !important; }

.cat-dropdown {
  position: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 100;
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
}
.cat-dropdown[hidden] { display: none !important; }
.cat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.cat-dropdown-item:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ═══════════════════════════════════════════════════════════════
   Main layout
   ═══════════════════════════════════════════════════════════════ */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 260px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.page-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--text-on-brand); letter-spacing: 0.02em; }
.btn-primary:hover { background: var(--brand-dark); color: var(--text-on-brand); }
.btn-primary:disabled { background: var(--border-strong); color: var(--text-muted); cursor: not-allowed; }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-link {
  background: none; border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   Home layout — CJ-style left sidebar + main content
   ═══════════════════════════════════════════════════════════════ */
.home-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  position: relative;
  align-items: start;
}

.home-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.home-sidebar::-webkit-scrollbar { width: 6px; }
.home-sidebar::-webkit-scrollbar-thumb { background: #dfe3e8; border-radius: 3px; }

.sidebar-cat {
  display: grid;
  grid-template-columns: 32px 1fr 12px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sidebar-cat:hover,
.sidebar-cat.active {
  background: var(--accent-soft);
  color: var(--brand-dark);
}
.sidebar-cat.active .sidebar-cat-chev { color: var(--brand); }
.sidebar-cat-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #f4f6f9;
  border-radius: 50%;
  font-size: 16px;
}
.sidebar-cat:hover .sidebar-cat-icon,
.sidebar-cat.active .sidebar-cat-icon {
  background: var(--brand-light);
}
.sidebar-cat-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-cat-chev {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

/* Flyout — absolutely positioned inside .home-layout, overlays the main area.
   The [hidden] selector is critical: without it, our `display: grid` would
   override the HTML `hidden` attribute and the empty white panel would
   show on page load, before the user has hovered any category. */
.sidebar-flyout {
  position: absolute;
  width: 720px;
  max-width: calc(100% - 248px);
  max-height: 540px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 32px;
  align-content: start;
}
.sidebar-flyout[hidden] { display: none !important; }

/* Invisible "hover bridge" extending 28px to the left of the flyout —
   covers the .home-layout grid-gap so a cursor moving from a sidebar
   item into the flyout never enters a no-hover dead zone. Without
   this, slow mouse moves used to trigger hideSidebarFlyout()
   mid-traversal. */
.sidebar-flyout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -28px;
  width: 28px;
  background: transparent;
  pointer-events: auto;
}
.flyout-group { min-width: 0; }
.flyout-group-head {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 8px;
  text-decoration: none;
}
.flyout-group-head:hover { color: var(--brand); }
.flyout-group-items { display: flex; flex-direction: column; gap: 2px; }
.flyout-group-items a {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 2px 0;
  line-height: 1.4;
  text-decoration: none;
}
.flyout-group-items a:hover { color: var(--brand); }
.flyout-more { color: var(--text-muted) !important; font-size: 12px !important; font-style: italic; }
.flyout-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, #fff8f1 0%, #ffecd4 100%);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}
/* Subtle background accents — not distracting product imagery, just polish */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.10), transparent 70%);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -140px; right: -80px;
}
.hero::after {
  width: 320px; height: 320px;
  bottom: -120px; left: -60px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.4px;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 30px 0;
  max-width: 560px;
}
.hero-search {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
  width: 100%;
  max-width: 620px;
}
.hero-search input {
  flex: 1; border: none;
  padding: 14px 22px;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.hero-search button {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, transform 0.05s;
}
.hero-search button:hover { background: var(--brand); }
.hero-search button:active { transform: translateY(1px); }
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════════════ */
.section { margin: 40px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.section-link { font-size: 14px; font-weight: 600; color: var(--brand); }
.section-title-plain { font-size: 20px; margin: 0 0 16px 0; font-weight: 700; }

/* ───────── Mega-menu category browser (home page) ───────── */
.mega-cats {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 520px;
  overflow: hidden;
}
.mega-cats-left {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  overflow-y: auto;
  max-height: 560px;
}
.mega-cats-left::-webkit-scrollbar { width: 6px; }
.mega-cats-left::-webkit-scrollbar-thumb { background: #dfe3e8; border-radius: 4px; }

.mega-cat-item {
  display: grid;
  grid-template-columns: 40px 1fr 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.mega-cat-item:hover,
.mega-cat-item.active {
  background: var(--accent-soft);
  color: var(--brand);
}
.mega-cat-item.active .mega-cat-name { color: var(--brand); font-weight: 600; }
.mega-cat-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: #f4f6f9;
  border-radius: 50%;
  font-size: 20px;
}
.mega-cat-item.active .mega-cat-icon,
.mega-cat-item:hover .mega-cat-icon {
  background: var(--brand-light);
}
.mega-cat-name { font-size: 14px; color: var(--text); }
.mega-cat-chev { color: var(--text-muted); font-size: 16px; }

/* Right pane */
.mega-cats-right {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  align-content: start;
}
.mega-cats-right::-webkit-scrollbar { width: 6px; }
.mega-cats-right::-webkit-scrollbar-thumb { background: #dfe3e8; border-radius: 4px; }

.mega-group { min-width: 0; }
.mega-group-head {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 10px;
}
.mega-group-head:hover { color: var(--brand); }
.mega-group-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-group-items a {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 3px 0;
  line-height: 1.4;
}
.mega-group-items a:hover { color: var(--brand); }
.mega-more { color: var(--text-muted) !important; font-size: 12.5px !important; font-style: italic; }

.mega-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.categories-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  cursor: pointer;
}
.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--brand);
}
.category-icon { font-size: 36px; margin-bottom: 6px; }
.category-name { font-size: 14px; font-weight: 600; color: var(--text); }
.category-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.cat-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.cat-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.cat-block-icon {
  font-size: 26px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* When catIcon() returns a product photo (top-level categories), fill the
   parent circle and clip. The container's gray hover background still
   fires on the 1-2px ring around the rounded corners. */
.sidebar-cat-icon img.cat-img,
.drawer-cat-icon img.cat-img,
.mega-cat-icon img.cat-img,
.cat-block-icon img.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cat-dropdown-item img.cat-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.cat-block-subs { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cat-block-subs a { color: var(--text-secondary); padding: 2px 0; }
.cat-block-subs a:hover { color: var(--brand); }

/* All-Categories page: nested second/third-level groups under each top
   category. Mirrors CJ's own dashboard (Outerwear & Jackets > Blazers, ...)
   so customers see the full catalog tree without slicing. */
.cat-block-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 18px;
}
.cat-block-group { font-size: 13px; }
.cat-block-group-head {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.cat-block-group-head:hover { color: var(--brand); }
.cat-block-group-items { display: flex; flex-direction: column; gap: 3px; }
.cat-block-group-items a {
  color: var(--text-secondary);
  padding: 1px 0;
  font-size: 12.5px;
}
.cat-block-group-items a:hover { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   Product grid + card
   ═══════════════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.product-card-body { min-height: 96px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.product-card-img-wrap {
  aspect-ratio: 1;
  background: var(--surface-alt);
  overflow: hidden;
  position: relative;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.product-card:hover .product-card-img { transform: scale(1.03); }
.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.product-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card-title {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-card-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price-now { font-size: 17px; font-weight: 800; color: var(--text); }
.product-price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-price-mrp {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.product-price-save {
  font-size: 12px;
  color: #137333;
  font-weight: 700;
}
/* Heart-shaped wishlist toggle, top-right corner. Outlined when off,
   fills brand-red when on. Sits above the discount badge if both
   are present — discount badge moves left in that case via CSS. */
.product-card-wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, color 0.12s, background 0.12s, border-color 0.12s;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.product-card-wish:hover {
  color: #d6336c;
  border-color: #d6336c;
  transform: scale(1.06);
}
.product-card-wish.on {
  background: #fff;
  color: #d6336c;
  border-color: #d6336c;
}
.product-card-wish.on svg { fill: #d6336c; }
.product-card-wish:active { transform: scale(0.94); }

/* When the heart button is present, push the discount badge to the
   left so the two don't collide. */
.product-card-img-wrap:has(.product-card-wish) .product-card-discount {
  right: 50px;
}

/* Discount badge in top-right corner of card image — champagne gold,
   reads "exclusive offer" rather than "marketplace clearance" */
.product-card-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(15,23,42,0.18);
}
.product-card-sku { font-size: 11px; color: var(--text-muted); }
.product-card-ship {
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-card-ship::before { content: '🚚'; font-size: 11px; }
.product-card-pending {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-muted);
  animation: pulse 1.2s ease-in-out infinite;
}
.product-price-loading {
  display: inline-block;
  height: 22px;
  width: 90px;
}
.price-skeleton {
  display: block;
  height: 18px;
  width: 100%;
  background: #e9ebef;
  border-radius: 4px;
  animation: pulse 1.2s ease-in-out infinite;
}

/* Banners */
.banner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.banner {
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}
.banner-a { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.banner-b { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.banner h3 { margin: 0 0 6px 0; font-size: 26px; letter-spacing: -0.6px; }
.banner p { margin: 0 0 12px 0; color: var(--text-secondary); }
.banner-cta { font-weight: 600; color: var(--text); border-bottom: 2px solid var(--text); padding-bottom: 2px; }

/* ═══════════════════════════════════════════════════════════════
   Product detail page
   ═══════════════════════════════════════════════════════════════ */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
}
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
.pd-main-wrap {
  aspect-ratio: 1;
  background: var(--surface-alt);
  border-radius: var(--radius);
  overflow: hidden;
}
.pd-main-img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.pd-thumb {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.pd-thumb:hover { border-color: var(--text); }
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.pd-sku { font-size: 12px; color: var(--text-muted); }
.pd-price-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.pd-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.8px;
}
.pd-price-mrp {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.pd-price-save {
  font-size: 14px;
  color: #137333;
  font-weight: 700;
}
.pd-price-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Variant picker — CJ-style Color / Size rows */
.pd-variants { display: flex; flex-direction: column; gap: 14px; }
.pd-attr-row { display: flex; flex-direction: column; gap: 8px; }
.pd-attr-label {
  font-size: 14px;
  color: var(--text);
}
.pd-attr-name { font-weight: 600; }
.pd-attr-value { color: var(--text-secondary); margin-left: 4px; }

.pd-attr-choices { display: flex; flex-wrap: wrap; gap: 10px; }

/* Color swatches — small thumbnails with active-state ring */
.pd-swatch {
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.05s;
}
.pd-swatch:hover { border-color: var(--text); }
.pd-swatch.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}
.pd-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-swatch-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--brand);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.pd-swatch.active .pd-swatch-check { display: flex; }

/* Size buttons — compact pills */
.pd-size-btn {
  min-width: 54px;
  height: 40px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pd-size-btn:hover {
  border-color: var(--text);
}
.pd-size-btn.active {
  border-color: var(--brand);
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.pd-qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pd-qty-row label { font-weight: 600; font-size: 13px; }
.pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pd-qty button {
  background: #fff;
  border: none;
  width: 34px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.pd-qty button:hover { background: var(--surface-alt); }
.pd-qty input {
  width: 50px;
  border: none;
  text-align: center;
  height: 36px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-stock { font-size: 13px; font-weight: 500; }
.pd-stock.in { color: var(--success); }
.pd-stock.low { color: var(--warning); }
.pd-stock.out { color: var(--danger); }
.pd-stock.loading { color: var(--text-muted); }

.pd-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
/* Detail-page wishlist button — outlined heart with a label, sits to
   the right of Add to Cart / Buy Now. On smaller screens the label
   hides and only the heart shows (see breakpoint below). */
.btn-wish-pd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  min-height: 44px;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.btn-wish-pd:hover { color: #d6336c; border-color: #d6336c; }
.btn-wish-pd.on { color: #d6336c; border-color: #d6336c; background: #fef0f5; }
.btn-wish-pd.on svg { fill: #d6336c; }

.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.pd-description {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  overflow-wrap: break-word;
}
.pd-description img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ═══════════════════════════════════════════════════════════════
   Search page
   ═══════════════════════════════════════════════════════════════ */
.search-header { margin-bottom: 16px; }

/* Smooth fade-out for product cards that the shipping backfill discovers
   are unshippable. Keeps the grid from feeling like products are popping
   out one by one — they melt away gently instead. */
.product-card.fading-out {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
}

/* Subcategory chips on category pages — let users drill down from a broad
   parent like "Women's Clothing" into "Tops / Dresses / Accessories" etc. */
.subcategory-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.subcat-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f7;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.subcat-chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 32px;
}
.page-btn {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.page-btn:hover { background: var(--surface-alt); }
.page-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════
   Cart page
   ═══════════════════════════════════════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 20px;
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr 140px 100px 30px;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.cart-item-img-wrap {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  overflow: hidden;
}
.cart-item-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { min-width: 0; }
.cart-item-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-variant { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cart-item-price { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: fit-content;
  overflow: hidden;
}
.cart-qty-btn { background: #fff; border: none; width: 32px; height: 32px; font-size: 16px; }
.cart-qty-btn:hover { background: var(--surface-alt); }
.cart-item-qty input {
  width: 48px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  height: 32px;
  font-weight: 600;
  font-size: 14px;
}
.cart-item-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-item-line { font-weight: 800; font-size: 16px; text-align: right; }
.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-summary h3 { margin: 0 0 6px 0; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-total { font-size: 18px; font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════
   Checkout
   ═══════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: 20px;
}
.checkout-main { display: flex; flex-direction: column; gap: 18px; }
.checkout-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.checkout-step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin: 0 0 14px 0;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.checkout-form { display: flex; flex-direction: column; gap: 12px; }
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.checkout-form input,
.checkout-form select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.checkout-form input:focus,
.checkout-form select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.shipping-methods { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ship-method {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ship-method:hover { border-color: var(--text); }
.ship-method:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.ship-method-name { font-weight: 600; font-size: 14px; }
.ship-method-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ship-method-price { font-weight: 800; font-size: 15px; }

.payment-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 14px;
}
.payment-note strong { display: block; margin-bottom: 4px; }

.checkout-items { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.checkout-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.checkout-item img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-alt); }
.checkout-item-title { font-weight: 500; }
.checkout-item-qty { color: var(--text-muted); font-size: 11.5px; }
.checkout-item-price { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   Order detail / success
   ═══════════════════════════════════════════════════════════════ */
.order-success-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.order-success-banner h2 { margin: 0 0 4px 0; font-size: 22px; }
.order-success-icon {
  font-size: 36px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.order-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
}
.order-detail-main { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin: 0 0 10px 0; font-size: 16px; }

.order-status-row { display: flex; gap: 12px; align-items: center; margin: 6px 0; }
.status-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
}
.status-chip.status-cj_created { background: #dbeafe; color: #1e40af; }
.status-chip.status-pending { background: #fef3c7; color: #92400e; }
.status-chip.status-shipped { background: #d1fae5; color: #065f46; }
.status-chip.status-delivered { background: #d1fae5; color: #065f46; }
.status-chip.status-cancelled { background: #fee2e2; color: #991b1b; }

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.order-item:last-child { border-bottom: none; }
.order-item-title { font-weight: 500; }
.order-item-price { font-weight: 700; }
.order-total-row { display: flex; justify-content: space-between; font-size: 18px; }

.tracking-timeline { display: flex; flex-direction: column; gap: 12px; position: relative; }
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.tracking-event {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  font-size: 13.5px;
}
.tracking-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 4px;
  z-index: 1;
}
.tracking-event.first .tracking-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12); }

/* ═══════════════════════════════════════════════════════════════
   Track page
   ═══════════════════════════════════════════════════════════════ */
.track-box {
  max-width: 520px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.track-form { display: flex; gap: 8px; margin-top: 16px; }
.track-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; color: var(--text-muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.faq a { color: var(--brand); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   Admin
   ═══════════════════════════════════════════════════════════════ */
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.stat-value { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat-profit { background: linear-gradient(135deg, var(--accent-soft), #EDE3CF); border-color: var(--accent); }
.stat-profit .stat-value { color: var(--brand-dark); }

.admin-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.admin-grid > :last-child { grid-column: 2 / 3; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}
.admin-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table code { font-size: 12px; background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; }

/* Card-head row for the Customers panel: lets the section title and a
   live-counter sit on the same line. */
.card-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card-head-row h2 { margin: 0; }

/* Customers admin table: live-status dot column, mailto links etc. */
.admin-users-table th:first-child,
.admin-users-table td:first-child { width: 28px; padding-right: 0; }
.user-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  vertical-align: middle;
}
.user-dot-live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15,81,50,0.15);
}

.admin-pricing-row { margin-bottom: 10px; }
.admin-pricing-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.markup-row { display: flex; align-items: center; gap: 6px; }
.markup-row input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.login-box {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.login-box h1 { margin: 0 0 8px 0; font-size: 24px; }
.login-box form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.login-box input {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

/* ── Customer auth pages (login / register) ── */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  letter-spacing: -0.4px;
}
.auth-card p { margin: 0 0 18px 0; }
.auth-card a { color: var(--brand); font-weight: 500; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-form input {
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}
.auth-form input:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}
.auth-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  text-align: center;
  margin-top: 4px;
}

/* ── Account / dashboard ── */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  margin-top: 16px;
}
.account-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}
.account-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #f48c42);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}
.account-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.account-email { word-break: break-all; margin-bottom: 16px; }
.account-side .btn { margin-top: 8px; }
.account-main { display: flex; flex-direction: column; gap: 16px; }
.account-main .card h2 {
  margin: 0 0 14px 0;
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   Skeleton + spinner
   ═══════════════════════════════════════════════════════════════ */
.skeleton { background: #f3f4f7; animation: pulse 1.4s ease-in-out infinite; }
.skeleton-img { aspect-ratio: 1; background: #e9ebef; }
.skeleton-text { height: 12px; background: #e9ebef; border-radius: 4px; margin: 10px 12px; }
.skeleton-text.short { width: 40%; }
.skeleton-price { height: 18px; background: #e9ebef; border-radius: 4px; margin: 10px 12px; width: 60%; }
@keyframes pulse { 50% { opacity: 0.6; } }

.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px;
  color: var(--text-muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════
   Empty states
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.empty-icon { font-size: 64px; margin-bottom: 14px; }
.empty-state h3 { margin: 0 0 6px 0; font-size: 20px; }
.empty-state p { color: var(--text-muted); margin: 0 0 16px 0; }

/* ═══════════════════════════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: #111418;
  color: #cbd5e1;
  margin-top: 60px;
  padding: 40px 0 20px;
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-col h4 {
  margin: 0 0 10px 0;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: #cbd5e1;
}
.footer-col a:hover { color: #fff; }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.footer-brand-name {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.footer-brand-tag {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.footer-brand-tag .accent { color: var(--accent); font-weight: 600; }
.footer-about { font-size: 13.5px; line-height: 1.6; color: #94a3b8; }

/* Befach International footer column — registered office, GSTIN, IEC, CIN */
.footer-company .footer-line {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 10px;
}
.footer-company .footer-line strong {
  color: #cbd5e1;
  font-weight: 600;
}
.footer-company a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-company a:hover { color: #fff; }

/* Hero byline — small line under the trust strip mentioning the
   parent company. Helps establish legitimacy at first glance. */
.hero-byline {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}
.hero-byline strong { color: var(--text); font-weight: 600; }

/* Legal & Compliance page */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.legal-section { margin: 28px 0; }
.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.legal-section p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f3;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fafafa;
}
.legal-table td { color: var(--text); }
.legal-footer-note {
  text-align: center;
  font-size: 12px;
  margin-top: 28px;
}

/* Checkout KYC field (Aadhaar / PAN) — required for India shipments */
.form-kyc {
  background: #fff7ee;
  border: 1px solid #fde6cf;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 4px;
}
.form-kyc label { display: block; }
.form-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

/* Phone input with a fixed "+91" country-code chip baked in. The chip
   sits inside the same border so the whole control reads as one field;
   updating the country dropdown rewrites the chip's text. */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.phone-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.phone-cc {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fafafa;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  user-select: none;
}
.phone-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  background: transparent;
  font-family: inherit;
}

/* Cash-on-Delivery payment card — selected by default since it's the
   only method while Razorpay is pending. */
.payment-method-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
}
.payment-method-card.selected {
  border-color: var(--brand);
  background: #fff7ee;
}
.pm-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.pm-body { min-width: 0; }
.pm-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.pm-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pm-tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 0;
  border-top: 1px solid #1f242a;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════
   Page-specific header tweaks
   ═══════════════════════════════════════════════════════════════ */
/* Hide the header search bar on the home page — the hero already has
   a big centered search box, so two on the same screen is redundant.
   Uses html[data-page="home"] (set by inline script in <head>) so the
   rule applies before first paint, avoiding any FOUC of an empty box. */
html[data-page="home"] .header-search,
body.page-home .header-search { display: none !important; }
html[data-page="home"] .header-inner,
body.page-home .header-inner {
  grid-template-columns: auto 1fr auto;   /* brand | spacer | nav */
}
/* Without the search bar in the middle the nav can sit right next to
   the brand — give it more breathing room from the right edge. */
html[data-page="home"] .header-nav,
body.page-home .header-nav { margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   Mobile drawer (hamburger menu) — hidden by default; shows on mobile
   ═══════════════════════════════════════════════════════════════ */
.header-hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  margin-right: -4px;
}
.header-hamburger:hover { color: var(--brand); }

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.2s;
}
.drawer-backdrop.show { display: block; opacity: 1; }

.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-brand-link { display: flex; align-items: center; gap: 12px; }
.drawer-brand-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  display: block;
}
.drawer-brand-tagline {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
.drawer-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}
.drawer-close:hover { background: var(--surface-alt); color: var(--text); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Logged-in user card at the top of the drawer — gives the menu
   identity & a clear "you are signed in" affordance, replaces the
   confusing "Hi, Sattwik" + "Sign in" duplicate the user reported. */
.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}
.drawer-user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--text-on-brand);
  font-family: var(--font-wordmark);
  font-size: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.drawer-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.drawer-user-greeting {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.drawer-user-email {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sectioned navigation — premium magazine-style grouping. Each
   section has a small uppercase label + clean link rows separated
   by a hairline divider. No emoji, no icons — typography carries it. */
.drawer-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.drawer-section:last-child { border-bottom: none; }
.drawer-section-label {
  padding: 4px 20px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.drawer-link:hover,
.drawer-link:active { background: var(--surface-alt); color: var(--brand); }
.drawer-link-cta { color: var(--accent-dark); font-weight: 700; }
.drawer-link-signout { color: var(--danger); font-weight: 600; }
.drawer-link-signout:hover { color: var(--danger); background: #fceeee; }

/* Categories accordion: a single-row toggle with chevron, expands
   into the full subcategory tree below. Visually subordinate to
   the main navigation labels. */
.drawer-toggle .drawer-chev {
  color: var(--text-muted);
  font-size: 16px;
  transition: transform 0.18s;
}
.drawer-toggle.open .drawer-chev { transform: rotate(90deg); }

/* (Drawer accordion styles consolidated above into .drawer-toggle /
   .drawer-chev — keeping this as a marker so the next person doesn't
   re-add duplicates.) */
.drawer-cats {
  background: #fafafa;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-height: 60vh;
  overflow-y: auto;
}
.drawer-cats[hidden] { display: none; }
.drawer-cats-loading {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}

/* Nested category accordion inside the mobile drawer.
   - .drawer-cat-row     = one top-level CJ category
   - .drawer-cat-top     = tappable header (toggles children)
   - .drawer-cat-shop    = "Shop all X →" link straight to the listing
   - .drawer-cat-groups  = container for second-level groups (hidden until tap)
   - .drawer-cat-second  = second-level group header (also a link)
   - .drawer-cat-thirds  = container for third-level subcategories
   - .drawer-cat-third   = leaf subcategory link */
.drawer-cat-row { border-bottom: 1px solid var(--border); }
.drawer-cat-row:last-child { border-bottom: none; }
.drawer-cat-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-align: left;
}
.drawer-cat-top.open { background: #f0f2f5; }
.drawer-cat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.drawer-cat-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}
.drawer-cat-chev {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.drawer-cat-top.open .drawer-cat-chev { transform: rotate(180deg); }
.drawer-cat-shop {
  display: block;
  padding: 6px 14px 10px 56px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 500;
}
.drawer-cat-groups[hidden] { display: none; }
.drawer-cat-groups {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 6px 0;
}
.drawer-cat-group { padding: 6px 14px 6px 56px; }
.drawer-cat-second {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
}
.drawer-cat-second:hover { color: var(--brand); }
.drawer-cat-thirds {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 8px;
  border-left: 2px solid var(--border);
  margin-left: 2px;
}
.drawer-cat-third {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 3px 0 3px 8px;
}
.drawer-cat-third:hover { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   Sticky bottom CTA bar (product detail, cart) — mobile-only
   ═══════════════════════════════════════════════════════════════ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 14px env(safe-area-inset-bottom, 10px);
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  align-items: center;
  gap: 10px;
}
.mobile-cta-price {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--text-muted);
}
.mobile-cta-price strong {
  font-size: 18px;
  color: var(--brand-dark);
  font-weight: 800;
}
.mobile-cta-btn {
  flex: 1;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  min-height: 48px;
}
.mobile-cta-btn:hover { background: var(--brand-dark); }
.mobile-cta-btn:disabled { background: #e3d0c0; }

/* ═══════════════════════════════════════════════════════════════
   Responsive breakpoints
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid-full { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid > :last-child { grid-column: auto; }
  .sidebar-flyout { width: 560px; grid-template-columns: repeat(2, 1fr); }
}

/* Intermediate tablet breakpoint — 3 cols between 4-col desktop and 2-col phone.
   Without this the layout jumps 4→2 at 860px, leaving cards huge on tablets. */
@media (max-width: 980px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ─── Tablet / small screen ─── */
@media (max-width: 860px) {
  /* Header: hamburger appears, search bar takes full row, nav simplified */
  .header-hamburger { display: inline-flex; align-items: center; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }
  /* Brand on tablet — keep logo + side tagline */
  .brand-logo-img { height: 44px; max-width: 170px; }
  .brand-tagline-side { font-size: 10px; padding-left: 10px; }
  .brand { gap: 10px; }
  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }
  .header-cat-btn { display: none; }   /* "All" dropdown hidden — use drawer */
  .header-search input { padding: 11px 14px; font-size: 15px; }
  .header-nav { gap: 4px; }
  /* Hide low-priority nav items on mobile — they live in the drawer */
  .nav-track,
  .nav-wishlist,
  .nav-signin,
  .nav-register-btn,
  .nav-divider { display: none; }
  /* Account dropdown should never appear on mobile — hamburger drawer
     handles all account links */
  .account-dropdown { display: none !important; }
  /* Cart icon and account avatar stay visible in header */
  .nav-link .nav-label { display: none; }   /* icon-only on mobile */
  .nav-link { padding: 8px 10px; }
  .nav-account { padding: 4px 10px 4px 4px !important; }
  .nav-account .nav-label { display: inline; }   /* keep "Hi, X" visible */

  /* Home page: hide the left categories sidebar — categories are in the drawer */
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { display: none; }
  .sidebar-flyout { display: none; }

  /* Hero — tighter */
  .hero { padding: 40px 18px; margin-bottom: 24px; }
  .hero-title { font-size: 30px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-search input { padding: 12px 16px; font-size: 16px; }
  .hero-search button { padding: 10px 18px; font-size: 14px; }
  .hero-trust { gap: 12px; font-size: 12px; }

  /* Product detail — single column, tighter */
  .product-detail { grid-template-columns: 1fr; padding: 14px; gap: 20px; }
  .pd-title { font-size: 19px; line-height: 1.3; }
  .pd-price { font-size: 26px; }
  .pd-thumbs { grid-template-columns: repeat(5, 1fr); }
  .pd-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* On mobile we use a sticky bottom bar instead — hide the inline buttons */
  .pd-actions { display: none; }
  .product-detail + .section { padding-bottom: 80px; }   /* room for sticky bar */
  /* Show the sticky CTA bar on product page */
  body.page-product .mobile-cta-bar { display: flex; }
  /* Variant chips bigger for fingers */
  .pd-variant-chip,
  .pd-size-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .pd-swatch { width: 60px; height: 60px; }   /* easier to tap */
  .pd-qty button { width: 44px; height: 44px; font-size: 20px; }
  .pd-qty input { width: 56px; height: 44px; font-size: 16px; }

  /* Cart / checkout / orders — single column, mobile spacing */
  .cart-layout, .checkout-layout, .order-detail { grid-template-columns: 1fr; gap: 16px; }
  .cart-summary { position: static; padding: 18px; }
  .cart-item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px 12px;
    padding: 12px;
  }
  .cart-item-img-wrap { grid-row: 1 / 4; width: 70px; height: 70px; }
  .cart-item-info { grid-column: 2 / 3; min-width: 0; }
  .cart-item-qty { grid-column: 2 / 3; grid-row: 2 / 3; }
  .cart-item-line { grid-column: 2 / 3; grid-row: 3 / 4; text-align: left; font-size: 15px; }
  .cart-item-remove {
    grid-column: 2 / 3; grid-row: 1 / 2;
    justify-self: end; align-self: start;
    padding: 4px 8px;
  }
  /* Sticky checkout button on cart page */
  body.page-cart .mobile-cta-bar { display: flex; }
  body.page-cart .cart-summary { padding-bottom: 18px; }
  body.page-cart main { padding-bottom: 80px; }

  /* Account — single column */
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; padding: 20px; }

  /* Forms — single column, larger inputs (iOS won't auto-zoom on 16px+) */
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 10px; }
  .checkout-form input,
  .checkout-form select,
  .auth-form input,
  .login-box input,
  .track-form input { font-size: 16px; padding: 12px 14px; min-height: 44px; }
  /* Buttons: larger touch targets */
  .btn { min-height: 44px; padding: 12px 18px; }
  .btn-sm { min-height: 36px; padding: 8px 14px; }

  /* Grids */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .categories-grid-full { grid-template-columns: 1fr; gap: 12px; }
  .banner-row { grid-template-columns: 1fr; gap: 12px; }
  .banner { padding: 28px 20px; min-height: 140px; }
  .banner h3 { font-size: 22px; }

  /* Mega-menu (used on /category page only) */
  .mega-cats { grid-template-columns: 1fr; min-height: auto; }
  .mega-cats-left { border-right: none; border-bottom: 1px solid var(--border); max-height: 260px; }
  .mega-cats-right { grid-template-columns: repeat(2, 1fr); padding: 18px; max-height: none; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Section spacing */
  .section { margin: 28px 0; }
  .section-head h2 { font-size: 19px; }
  .page-title { font-size: 22px; }

  /* Order detail */
  .order-success-banner { padding: 16px; gap: 14px; }
  .order-success-banner h2 { font-size: 18px; }
  .order-success-icon { width: 50px; height: 50px; font-size: 28px; }
}

/* ─── Phone (narrower) ─── */
@media (max-width: 500px) {
  main { padding: 12px; }
  .header-inner { padding: 8px 12px; gap: 8px; }
  /* Phone: hide the side tagline to give the search bar room.
     Logo alone keeps brand identity. */
  .brand-logo-img { height: 38px; max-width: 130px; }
  .brand-tagline-side { display: none; }
  .page-title { font-size: 20px; }
  .hero { padding: 32px 16px; border-radius: 12px; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-trust { gap: 10px; font-size: 11.5px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card-title { font-size: 13px; }
  .product-price-now { font-size: 15px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  /* Smaller variant swatches on tiny screens */
  .pd-swatch { width: 52px; height: 52px; }
}

/* ─── Tap-target & touch polish ─── */
@media (pointer: coarse) {
  /* Remove the iOS tap-highlight gray flash */
  a, button { -webkit-tap-highlight-color: rgba(15, 23, 42, 0.12); }
  /* Smoother momentum scrolling */
  .home-sidebar, .mega-cats-right, .drawer-body { -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE V2 — premium full-width layout
   Hero → trust badges → category strip → promo blocks →
   featured products → men's fashion → tech → women's fashion →
   smart picks → home & lifestyle
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  margin: 0 0 24px;
  padding: 56px 20px;
  background: linear-gradient(135deg, #FAF7F2 0%, #F5EFE0 50%, #EDE3CF 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Compact hero variant — used inside .home-layout (with the persistent
   left sidebar) so the hero doesn't dominate the page. The original
   hero is kept available for any future full-width landing page. */
.home-hero-compact { padding: 28px 24px; margin-bottom: 18px; }
.home-hero-compact .home-hero-inner { gap: 24px; }
.home-hero-compact .home-hero-title { font-size: 30px; }
.home-hero-compact .home-hero-sub { font-size: 14.5px; margin-bottom: 18px; }
.home-hero-compact .home-hero-eyebrow { margin-bottom: 12px; padding: 4px 10px; font-size: 11px; }
.home-hero-compact .home-hero-search { margin-bottom: 16px; }
.home-hero-compact .home-hero-search input { padding: 12px 16px; font-size: 14px; }
.home-hero-compact .home-hero-search button { padding: 0 18px; font-size: 14px; }
.home-hero-compact .home-hero-stats { gap: 24px; margin-bottom: 0; }
.home-hero-compact .home-hero-stats strong { font-size: 18px; }
.home-hero-compact .home-hero-stats span { font-size: 11px; }
.home-hero-compact .home-hero-art { max-width: 200px; }
.home-hero-compact .home-hero-globe { font-size: 110px; }
.home-hero-compact .home-hero-orbit { width: 44px; height: 44px; font-size: 22px; }
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(232,93,4,0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(201, 169, 97, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.home-hero-copy { max-width: 580px; }
.home-hero-eyebrow {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0;            /* premium: hard edges, not pill-shaped */
  margin-bottom: 22px;
}
.home-hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--brand);
}
.home-hero-title .accent {
  color: var(--accent-dark);
  font-weight: 700;
}
.home-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 520px;
}
.home-hero-search {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.25);
  overflow: hidden;
  max-width: 540px;
  margin-bottom: 22px;
}
.home-hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: 0;
  font-size: 15px;
  outline: none;
  background: transparent;
}
.home-hero-search button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 0 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.home-hero-search button:hover { background: var(--brand-dark); }
.home-hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 18px;
}
.home-hero-stats > div {
  display: flex;
  flex-direction: column;
}
.home-hero-stats strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.home-hero-stats span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-hero-byline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}
.home-hero-byline strong { color: var(--text-secondary); }

/* Hero artwork: animated globe with orbiting icons */
.home-hero-art {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.home-hero-globe {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 200px;
  filter: drop-shadow(0 12px 32px rgba(15, 23, 42, 0.18));
  animation: heroSpin 60s linear infinite;
}
.home-hero-orbit {
  position: absolute;
  font-size: 36px;
  background: #fff;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(15,23,42,0.12);
  animation: heroFloat 4s ease-in-out infinite;
}
.home-hero-orbit-1 { top: 8%;  left: 6%;  animation-delay: 0s; }
.home-hero-orbit-2 { top: 14%; right: 4%; animation-delay: 1s; }
.home-hero-orbit-3 { bottom: 12%; left: 4%; animation-delay: 2s; }
.home-hero-orbit-4 { bottom: 6%;  right: 8%; animation-delay: 3s; }

@keyframes heroSpin { to { transform: rotate(360deg); } }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── TRUST BADGES ─────────────────────────────────────────────── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 20px;
  color: var(--accent-dark);
  font-weight: 600;
  flex-shrink: 0;
}
.trust-text { display: flex; flex-direction: column; min-width: 0; }
.trust-text strong { font-size: 14px; color: var(--text); font-weight: 700; }
.trust-text span { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── CIRCULAR CATEGORY STRIP ──────────────────────────────────── */
.cat-strip { position: relative; margin: 0 0 32px; }
.cat-strip .section-head { margin-bottom: 16px; }

/* Hover-flyout that drops down from the strip with the full subcategory
   tree (second-level groups + every third-level subcategory under each).
   Sits in a host element so it can use position:absolute relative to the
   strip itself. */
.cat-strip-flyout-host {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
}
.cat-strip-flyout-host .cat-strip-flyout { pointer-events: auto; }
.cat-strip-flyout {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(15,23,42,0.18);
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.cat-strip-flyout[hidden] { display: none; }
.cat-strip-flyout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-strip-flyout-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.cat-strip-flyout-allbtn {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.cat-strip-flyout-allbtn:hover { color: var(--brand-dark); }
.cat-strip-flyout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px 24px;
}
.cat-strip-flyout-group { font-size: 13px; }
.cat-strip-flyout-group-head {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.cat-strip-flyout-group-head:hover { color: var(--brand); }
.cat-strip-flyout-group-items { display: flex; flex-direction: column; gap: 3px; }
.cat-strip-flyout-group-items a {
  color: var(--text-secondary);
  padding: 1px 0;
  font-size: 12.5px;
}
.cat-strip-flyout-group-items a:hover { color: var(--brand); }
.cat-strip-flyout-empty {
  text-align: center;
  padding: 20px 12px;
}
.cat-strip-flyout-empty p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

/* On phones the hover flyout is awkward — touchscreens have no hover.
   Hide the flyout host on small screens so the icon-only strip just
   navigates to the listing on tap (mobile drawer accordion already
   exposes the full tree). */
@media (max-width: 860px) {
  .cat-strip-flyout-host { display: none; }
}

.cat-strip-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}
.cat-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cat-strip-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.cat-strip-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FAF7F2, #F5EFE0);
  border-radius: 50%;
  font-size: 30px;
  overflow: hidden;
}
.cat-strip-icon img.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cat-strip-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.cat-strip-skel {
  height: 110px;
  border-radius: var(--radius);
  background: #eef0f4;
}

/* ── PROMO BANNERS (1 big + 2 stacked small) ──────────────────── */
.promo-blocks {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin: 0 0 36px;
}
.promo-big,
.promo-small {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-big:hover,
.promo-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.promo-big { min-height: 320px; background: #2a3340; }
.promo-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.promo-small { min-height: 150px; background: #2a3340; }
.promo-big-bg,
.promo-small-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.promo-big::after,
.promo-small::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,25,35,0.85) 0%, rgba(20,25,35,0.55) 50%, rgba(20,25,35,0.15) 100%);
  z-index: 1;
}
.promo-big-copy,
.promo-small-copy {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.promo-small-copy { padding: 22px; }
.promo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.promo-big-copy h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #fff;
}
.promo-small-copy h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: #fff;
}
.promo-big-copy p,
.promo-small-copy p {
  font-size: 14px;
  color: #e6e8ec;
  margin: 0 0 14px;
  max-width: 360px;
}
.promo-cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}
.promo-big:hover .promo-cta,
.promo-small:hover .promo-cta { background: var(--brand-dark); }

/* ── SECTION HEADERS (consistent across home) ─────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
  letter-spacing: -0.015em;
}
.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.section-link:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ── FASHION SECTION (banner + product grid) ──────────────────── */
.fashion-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin: 0 0 36px;
}
.fashion-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background: #2a3340;
  isolation: isolate;
}
.fashion-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}
.fashion-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,25,35,0.4) 0%, rgba(20,25,35,0.85) 80%);
  z-index: 1;
}
.fashion-banner-men { background: #1f2937; }
.fashion-banner-women { background: #2a1a2e; }
.fashion-banner-copy {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.fashion-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.fashion-banner-copy h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  line-height: 1.05;
  color: #fff;
}
.fashion-banner-copy p {
  font-size: 14px;
  color: #d8dce3;
  margin: 0 0 16px;
  max-width: 240px;
}
.fashion-cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.15s;
}
.fashion-cta:hover { background: var(--brand-dark); }
.fashion-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ── RESPONSIVE: ≤ 1100px ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-hero-title { font-size: 38px; }
  .home-hero-art { max-width: 280px; }
  .home-hero-globe { font-size: 150px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .fashion-grid { grid-template-columns: repeat(3, 1fr); }
  .fashion-section { grid-template-columns: 280px 1fr; }
}

/* ── RESPONSIVE: ≤ 860px (tablet) ─────────────────────────────── */
@media (max-width: 860px) {
  .home-hero { padding: 36px 18px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .home-hero-art { max-width: 220px; order: -1; }
  .home-hero-globe { font-size: 120px; }
  .home-hero-orbit { width: 48px; height: 48px; font-size: 26px; }
  .home-hero-title { font-size: 30px; }
  .home-hero-sub { font-size: 15px; }
  .home-hero-stats { gap: 24px; }
  .home-hero-stats strong { font-size: 20px; }

  .trust-row { padding: 14px; gap: 10px; }
  .trust-item { gap: 10px; }
  .trust-icon { width: 40px; height: 40px; font-size: 18px; }
  .trust-text strong { font-size: 13px; }
  .trust-text span { font-size: 11px; }

  .promo-blocks { grid-template-columns: 1fr; }
  .promo-big { min-height: 220px; }
  .promo-big-copy h2 { font-size: 26px; }

  .fashion-section { grid-template-columns: 1fr; }
  .fashion-banner { min-height: 200px; }
  .fashion-banner-copy { padding: 22px; }
  .fashion-banner-copy h2 { font-size: 24px; }
  .fashion-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE: ≤ 560px (phone) ──────────────────────────────── */
@media (max-width: 560px) {
  .home-hero { padding: 28px 16px; border-radius: var(--radius); }
  .home-hero-eyebrow { font-size: 11px; padding: 5px 10px; }
  .home-hero-title { font-size: 26px; }
  .home-hero-sub { font-size: 14px; }
  .home-hero-search input { padding: 14px 16px; font-size: 14px; }
  .home-hero-search button { padding: 0 16px; }
  .home-hero-search button span { display: none; }
  .home-hero-stats { gap: 18px; }
  .home-hero-stats strong { font-size: 18px; }
  .home-hero-stats span { font-size: 10.5px; }

  .trust-row { grid-template-columns: 1fr 1fr; }

  .cat-strip-row { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
  .cat-strip-icon { width: 52px; height: 52px; font-size: 24px; }
  .cat-strip-name { font-size: 11.5px; }

  .promo-stack { grid-template-rows: auto auto; }
  .promo-big-copy { padding: 22px; }
  .promo-big-copy h2 { font-size: 22px; }

  .section-title { font-size: 18px; }
}
