/* ============================================================
   assets/css/style.css
   NexaMart — Luxury Editorial Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:            #160b04;
  --ink-2:          #3a2317;
  --parchment:      #faf5ee;
  --milk:           #fdfaf6;
  --mist:           #ede5d8;
  --mist-2:         #e0d4c4;
  --chocolate:      #5c2d0e;
  --choco-deep:     #2d1208;
  --choco-mid:      #7a3d1a;
  --bronze:         #b07934;
  --bronze-light:   #d4a55a;
  --stone:          #8a7b6e;
  --stone-2:        #b5a899;

  --text-1:         var(--ink);
  --text-2:         var(--ink-2);
  --text-3:         var(--stone);
  --text-inv:       #fdf8f2;

  --bg:             var(--parchment);
  --bg-surface:     var(--milk);
  --bg-card:        #fff;
  --bg-tinted:      #f5ede0;

  --border:         rgba(92,45,14,0.08);
  --border-2:       rgba(92,45,14,0.13);
  --border-3:       rgba(92,45,14,0.2);

  --green:   #2d7a4f;
  --red:     #b83232;
  --amber:   #c07b14;
  --blue:    #2a5fa8;

  --header-h:     68px;
  --container:    1320px;
  --sidebar-shop: 270px;

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   0px;
  --r-xl:   28px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(22,11,4,0.06), 0 2px 12px rgba(22,11,4,0.04);
  --shadow-md: 0 4px 20px rgba(22,11,4,0.08), 0 1px 4px rgba(22,11,4,0.05);
  --shadow-lg: 0 12px 48px rgba(22,11,4,0.12), 0 4px 16px rgba(22,11,4,0.06);
  --shadow-xl: 0 24px 80px rgba(22,11,4,0.16), 0 8px 24px rgba(22,11,4,0.08);

  --ease:        0.22s cubic-bezier(0.4,0,0.2,1);
  --ease-out:    0.3s cubic-bezier(0,0,0.2,1);
  --ease-spring: 0.45s cubic-bezier(0.34,1.4,0.64,1);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font:         'Manrope', 'Helvetica Neue', sans-serif;
  --mono:         'JetBrains Mono', 'Menlo', monospace;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color var(--ease); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: var(--font); }
button { cursor: pointer; }

/* Grain overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--mist-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-2); }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
  box-shadow: 0px 13px 30px -12px rgba(0, 0, 0, 0.15)
}
.site-header.scrolled {
  background: rgba(250,245,238,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.site-logo__mark {
  width: 38px;
  height: 38px;
  background: var(--chocolate);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #f5e6d0;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo__text {}
.site-logo__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.site-logo__tagline {
  font-size: 9px;
  color: var(--stone);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav__link {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.3px;
  border-radius: var(--r-full);
  transition: all var(--ease);
}
.header-nav__link:hover { color: var(--ink); background: rgba(92,45,14,0.06); }
.header-nav__link.active { color: var(--chocolate); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.header-search-toggle,
.header-action-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 16px;
  transition: all var(--ease);
  text-decoration: none;
}
.header-action-btn:hover,
.header-search-toggle:hover {
  background: rgba(92,45,14,0.06);
  border-color: var(--border);
  color: var(--ink);
}
.header-action-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  background: var(--chocolate);
  color: #f5e6d0;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: #763b1d;
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  color: wheat;
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--ease);
  cursor: pointer;
}
.header-user-btn:hover { background: rgba(92,45,14,0.05); border-color: var(--border-3); color: var(--ink); }
.header-user-btn .avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--chocolate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #f5e6d0;
}

/* Search bar dropdown */
.header-search-bar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(250,245,238,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
  padding: 16px 32px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 490;
  pointer-events: none;
}
.header-search-bar.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.header-search-bar form { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.header-search-bar input {
  flex: 1;
  padding: 11px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: all var(--ease);
}
.header-search-bar input:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,121,52,0.1); }

/* User dropdown */
.user-dropdown-wrap { position: relative; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 600;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: all 0.18s ease;
  transform-origin: top right;
}
.user-dropdown-wrap:hover .user-dropdown,
.user-dropdown.open { opacity: 1; transform: none; pointer-events: all; }
.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all var(--ease);
}
.user-dropdown__item:hover { background: var(--bg-tinted); color: var(--ink); }
.user-dropdown__divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown__item--danger:hover { color: var(--red); background: rgba(184,50,50,0.05); }

/* Mobile */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 17px;
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--parchment);
  z-index: 700;
  padding: 28px 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav__close {
  align-self: flex-end;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist);
  border: none;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 18px;
  margin-bottom: 18px;
}
.mobile-nav__link {
  display: block;
  padding: 14px 12px;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: all var(--ease);
}
.mobile-nav__link:hover { color: var(--chocolate); background: var(--bg-tinted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--chocolate);
  color: #f5e6d0;
  border-color: var(--chocolate);
}
.btn-primary:hover {
  background: var(--choco-deep);
  border-color: var(--choco-deep);
  color: #f5e6d0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-3);
}
.btn-outline:hover { background: var(--bg-tinted); border-color: var(--mist-2); color: var(--ink); }
.btn-ghost {
  background: var(--mist);
  color: var(--ink-2);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--mist-2); color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: var(--text-inv);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--text-inv); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-danger { background: rgba(184,50,50,0.08); color: var(--red); border-color: rgba(184,50,50,0.2); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-success { background: rgba(45,122,79,0.08); color: var(--green); border-color: rgba(45,122,79,0.2); }
.btn-success:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--r-xs); }
.btn-lg { padding: 14px 30px; font-size: 14.5px; border-radius: var(--r-md); }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-icon-only { padding: 0; width: 40px; height: 40px; justify-content: center; }

/* ============================================================
   HERO — editorial split
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--parchment);
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 700;
  color: rgba(92,45,14,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
  line-height: 1;
}

.hero__body {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  min-height: calc(100svh - var(--header-h) - 100px);
}

.hero__left {
  padding: 64px 48px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 28px;
}
.hero__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--bronze);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 108px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero__title em {
  font-style: italic;
  color: var(--choco-mid);
}

.hero__desc {
  font-size: 15.5px;
  color: var(--stone);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__scroll-hint {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--stone-2);
}
.hero__scroll-hint::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--mist-2);
}

.hero__right {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero__img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: linear-gradient(160deg, var(--mist) 0%, var(--bg-tinted) 60%, #d4b896 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
}

.hero__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--parchment) 0%, transparent 8%);
  pointer-events: none;
}

.hero__card-float {
  position: absolute;
  bottom: 40px;
  right: 28px;
  background: rgba(250,245,238,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
}
.hero__card-float-label { font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stone); }
.hero__card-float-val { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; }
.hero__card-float-sub { font-size: 11.5px; color: var(--bronze); font-weight: 500; }

/* Hero stats bar */
.hero__stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-2);
}
.hero__stat {
  padding: 24px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__stat:last-child { border-right: none; }
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
}
.hero__stat-label { font-size: 12px; color: var(--stone); font-weight: 500; letter-spacing: 0.3px; }

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-section {
  background: var(--chocolate);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245,230,208,0.85);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245,230,208,0.4);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--xs { padding: 40px 0; }
.section--dark { background: var(--ink); }
.section--tinted { background: var(--bg-tinted); }
.section--surface { background: var(--milk); }

.section-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--bronze); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--choco-mid); }

.section-sub {
  font-size: 15px;
  color: var(--stone);
  max-width: 480px;
  margin-top: 12px;
  line-height: 1.75;
}

.section-header { margin-bottom: 52px; }
.section-header--centered { text-align: center; }
.section-header--centered .section-eyebrow { justify-content: center; }
.section-header--centered .section-eyebrow::before { display: none; }
.section-header--centered .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   VALUE PROPS STRIP
   ============================================================ */
.value-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Ensure each auto row has reasonable height */
  grid-auto-rows: minmax(72px, auto);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--milk);
}
.value-prop {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.value-prop:last-child { border-right: none; }
.value-prop__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tinted);
  border-radius: var(--r-sm);
  font-size: 18px;
  color: var(--choco-mid);
}
.value-prop__title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.value-prop__sub { font-size: 12px; color: var(--stone); line-height: 1.5; }

/* ============================================================
   CATEGORIES — asymmetric bento grid
   ============================================================ */
.categories-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 14px;
}
.categories-bento .cat-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.categories-bento .cat-item:nth-child(4) { grid-column: span 2; }

.cat-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--milk);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.cat-item:hover { transform: scale(0.99); box-shadow: var(--shadow-md); }
.cat-item:hover .cat-item__bg { transform: scale(1.06); }

.cat-item__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.cat-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,11,4,0.65) 0%, rgba(22,11,4,0.15) 55%, transparent 100%);
}
.cat-item__icon-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--mist), var(--bg-tinted));
  color: var(--stone);
}
.cat-item__icon-placeholder.large { font-size: 80px; }
.cat-item__content { position: relative; z-index: 2; }
.cat-item__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.cat-item--light .cat-item__name { color: var(--ink); text-shadow: none; }
.cat-item__count {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 4px;
}
.cat-item--light .cat-item__count { color: var(--stone); }
.cat-item__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--ease);
}
.cat-item--light .cat-item__arrow { background: rgba(92,45,14,0.1); color: var(--chocolate); }
.cat-item:hover .cat-item__arrow { opacity: 1; transform: none; }

/* Fallback grid for listing categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 14px;
  text-align: center;
  transition: all var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.category-card:hover { border-color: var(--bronze-light); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.category-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-tinted);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.category-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.category-card__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.category-card__count { font-size: 11px; color: var(--stone); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--ease);
  position: relative;
}
.product-card:hover {
  border-color: var(--border-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-tinted);
}
.product-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.06); }
.product-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  color: var(--stone-2);
}

.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.product-card__badge--sale { background: var(--red); color: #fff; }
.product-card__badge--new { background: var(--green); color: #fff; }
.product-card__badge--featured { background: var(--bronze); color: #fff; }

.product-card__wishlist {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(250,245,238,0.85);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--stone);
  opacity: 0;
  transition: all var(--ease);
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { color: var(--red); background: rgba(255,255,255,0.95); }

.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card__category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bronze);
}
.product-card__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--bronze); }

.product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.product-card__price-sale { font-size: 17px; font-weight: 700; color: var(--ink); }
.product-card__price-original { font-size: 13px; color: var(--stone-2); text-decoration: line-through; }
.product-card__price-off {
  font-size: 10.5px; font-weight: 700;
  color: var(--green);
  background: rgba(45,122,79,0.1);
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.product-card__stock-badge { font-size: 11px; color: var(--stone); margin-top: auto; }
.product-card__stock-badge.low { color: var(--amber); }
.product-card__stock-badge.out { color: var(--red); }

.product-card__footer {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}
.product-card__add-btn { flex: 1; }
.product-card__quick-view {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--stone);
  font-size: 15px;
  transition: all var(--ease);
}
.product-card__quick-view:hover { background: var(--bg-tinted); color: var(--chocolate); border-color: var(--border-2); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-label .req { color: var(--red); }
.form-control {
  width: 100%;
  padding: 11px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: all var(--ease);
  appearance: none;
}
.form-control::placeholder { color: var(--stone-2); }
.form-control:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,121,52,0.1); }
.form-control.error { border-color: var(--red); }
.form-hint  { font-size: 12px; color: var(--stone); }
.form-error { font-size: 12px; color: var(--red); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-left: 44px; }
.input-wrap .input-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--stone-2); font-size: 16px; pointer-events: none;
}

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 17px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  animation: flashIn 0.3s ease;
}
@keyframes flashIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
.flash__icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.flash--success { background: #edf7f1; border-color: #a7d7b8; color: #1d6b3e; }
.flash--error   { background: #fdf0f0; border-color: #f0b4b4; color: #922020; }
.flash--warning { background: #fef8ec; border-color: #f0d290; color: #8f5d0d; }
.flash--info    { background: #eef3fc; border-color: #aec4ef; color: #1e4b8f; }
.flash-stack    { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--stone);
  padding: 18px 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--bronze); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--ink-2); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
  padding: 48px 0 80px;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.product-gallery__main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  cursor: zoom-in;
  margin-bottom: 12px;
}
.product-gallery__main img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.product-gallery__main:hover img { transform: scale(1.05); }
.product-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-gallery__thumb {
  width: 70px; height: 70px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--border-2);
  cursor: pointer;
  transition: border-color var(--ease);
}
.product-gallery__thumb:hover,
.product-gallery__thumb.active { border-color: var(--bronze); }
.product-gallery__thumb img { width:100%; height:100%; object-fit:cover; }
.product-info { display:flex; flex-direction:column; gap:22px; }
.product-info__category { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--bronze); }
.product-info__title { font-family:var(--font-display); font-size:clamp(24px,3vw,36px); font-weight:600; letter-spacing:-0.5px; color:var(--ink); line-height:1.2; }
.product-info__sku { display: none; }
.product-info__price { display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap; }
.product-info__price-sale { font-family:var(--font-display); font-size:40px; font-weight:700; color:var(--ink); letter-spacing:-1px; line-height:1; }
.product-info__price-original { font-size:20px; color:var(--stone-2); text-decoration:line-through; font-weight:400; }
.product-info__price-badge { font-size:12px; font-weight:700; color:#fff; background:var(--red); padding:4px 12px; border-radius:var(--r-full); }
.product-info__short-desc { font-size:15px; color:var(--stone); line-height:1.8; border-top:1px solid var(--border); padding-top:22px; }
.product-info__qty-wrap { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.qty-control {
  display:flex; align-items:center;
  background:var(--bg-card);
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  overflow:hidden;
}
.qty-control__btn {
  width:40px; height:44px;
  display:flex; align-items:center; justify-content:center;
  background:transparent; border:none;
  color:var(--stone); font-size:18px; cursor:pointer;
  transition:all var(--ease);
}
.qty-control__btn:hover { background:var(--bg-tinted); color:var(--ink); }
.qty-control__input {
  width:52px;
  border:none;
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
  background:transparent;
  color:var(--ink);
  font-size:15px; font-weight:600;
  text-align:center;
  height:44px;
  outline:none;
  padding:0;
}
.product-info__actions { display:flex; gap:12px; flex-wrap:wrap; }
.product-info__add-btn { flex:1; min-width:160px; }
.product-info__meta {
  display:flex; flex-direction:column; gap:10px;
  padding:18px;
  background:var(--milk);
  border:1px solid var(--border);
  border-radius:var(--r-md);
}
.product-info__meta-row { display:flex; align-items:center; justify-content:space-between; font-size:13.5px; }
.product-info__meta-label { color:var(--stone); }
.product-info__meta-value { color:var(--ink); font-weight:600; }

/* Tabs */
.product-tabs { margin-top:64px; }
.tabs-nav { display:flex; gap:0; border-bottom:1px solid var(--border-2); margin-bottom:32px; }
.tabs-nav__btn {
  padding:11px 22px;
  font-size:13.5px; font-weight:600;
  color:var(--stone); background:transparent; border:none;
  border-bottom:2px solid transparent; margin-bottom:-1px;
  cursor:pointer; transition:all var(--ease);
}
.tabs-nav__btn:hover { color:var(--ink-2); }
.tabs-nav__btn.active { color:var(--bronze); border-bottom-color:var(--bronze); }
.tab-pane { display:none; }
.tab-pane.active { display:block; }
.tab-pane p { color:var(--stone); line-height:1.85; font-size:15px; }

/* ============================================================
   CART
   ============================================================ */
.cart-layout { display:grid; grid-template-columns:1fr 360px; gap:28px; align-items:start; padding:40px 0 80px; }
.cart-table { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; }
.cart-table__header { padding:14px 24px; border-bottom:1px solid var(--border); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--stone); display:grid; grid-template-columns:1fr auto auto auto; gap:16px; }
.cart-item { display:grid; grid-template-columns:1fr auto auto auto; gap:16px; align-items:center; padding:20px 24px; border-bottom:1px solid var(--border); transition:background var(--ease); }
.cart-item:last-child { border-bottom:none; }
.cart-item:hover { background:var(--milk); }
.cart-item__product { display:flex; align-items:center; gap:14px; }
.cart-item__img { width:64px; height:64px; border-radius:var(--r-md); object-fit:cover; border:1px solid var(--border); flex-shrink:0; background:var(--bg-tinted); }
.cart-item__name { font-weight:600; color:var(--ink); font-size:14px; }
.cart-item__name a { color:inherit; }
.cart-item__name a:hover { color:var(--bronze); }
.cart-item__meta { font-size:12px; color:var(--stone); margin-top:3px; }
.cart-item__remove { font-size:12px; color:var(--red); cursor:pointer; margin-top:5px; background:none; border:none; padding:0; font-family:var(--font); }
.cart-item__remove:hover { text-decoration:underline; }
.cart-item__price { font-weight:600; color:var(--ink); text-align:right; white-space:nowrap; }
.cart-item__total { font-weight:700; color:var(--ink); text-align:right; white-space:nowrap; min-width:90px; }

/* Order summary */
.order-summary { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; position:sticky; top:calc(var(--header-h) + 16px); }
.order-summary__header { padding:17px 22px; border-bottom:1px solid var(--border); font-size:15px; font-weight:700; color:var(--ink); }
.order-summary__body { padding:22px; display:flex; flex-direction:column; gap:14px; }
.order-summary__row { display:flex; justify-content:space-between; align-items:center; font-size:14px; }
.order-summary__row-label { color:var(--stone); }
.order-summary__row-value { color:var(--ink); font-weight:600; }
.order-summary__divider { height:1px; background:var(--border); }
.order-summary__total-row { display:flex; justify-content:space-between; align-items:center; }
.order-summary__total-label { font-size:15px; font-weight:700; color:var(--ink); }
.order-summary__total-value { font-family:var(--font-display); font-size:26px; font-weight:700; color:var(--ink); }
.order-summary__cta { margin-top:8px; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout { display:grid; grid-template-columns:1fr 380px; gap:28px; align-items:start; padding:40px 0 80px; }
.checkout-section { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; margin-bottom:20px; }
.checkout-section__header { padding:17px 24px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; }
.checkout-section__num { width:28px; height:28px; border-radius:50%; background:var(--chocolate); color:#f5e6d0; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.checkout-section__title { font-size:15px; font-weight:700; color:var(--ink); }
.checkout-section__body { padding:24px; }
.payment-option { display:flex; align-items:center; gap:14px; padding:15px 18px; background:var(--milk); border:2px solid var(--border-2); border-radius:var(--r-md); cursor:pointer; transition:all var(--ease); }
.payment-option.selected { border-color:var(--bronze); background:rgba(176,121,52,0.05); }
.payment-option input[type=radio] { display:none; }
.payment-option__radio { width:19px; height:19px; border-radius:50%; border:2px solid var(--border-3); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all var(--ease); }
.payment-option.selected .payment-option__radio { border-color:var(--bronze); }
.payment-option.selected .payment-option__radio::after { content:''; width:9px; height:9px; border-radius:50%; background:var(--bronze); }
.payment-option__icon { font-size:24px; flex-shrink:0; }
.payment-option__name { font-weight:600; color:var(--ink); font-size:14px; }
.payment-option__desc { font-size:12px; color:var(--stone); }

/* ============================================================
   ACCOUNT
   ============================================================ */
.account-layout { display:grid; grid-template-columns:240px 1fr; gap:28px; align-items:start; padding:40px 0 80px; }
.account-sidebar { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; position:sticky; top:calc(var(--header-h) + 16px); }
.account-sidebar__user { padding:24px; border-bottom:1px solid var(--border); text-align:center; }
.account-sidebar__avatar { width:60px; height:60px; border-radius:50%; background:var(--chocolate); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:26px; font-weight:600; color:#f5e6d0; margin:0 auto 12px; }
.account-sidebar__name { font-weight:700; color:var(--ink); font-size:15px; }
.account-sidebar__email { font-size:12px; color:var(--stone); margin-top:3px; }
.account-sidebar__nav { padding:10px 0; }
.account-sidebar__link { display:flex; align-items:center; gap:10px; padding:11px 20px; font-size:13.5px; font-weight:500; color:var(--stone); transition:all var(--ease); border-left:3px solid transparent; }
.account-sidebar__link:hover { background:var(--milk); color:var(--ink); }
.account-sidebar__link.active { background:rgba(176,121,52,0.06); color:var(--bronze); border-left-color:var(--bronze); }
.account-content-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; }
.account-content-card__header { padding:19px 24px; border-bottom:1px solid var(--border); font-size:16px; font-weight:700; color:var(--ink); }
.account-content-card__body { padding:28px; }
.orders-table { width:100%; border-collapse:collapse; }
.orders-table th { padding:10px 14px; text-align:left; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--stone); background:var(--milk); border-bottom:1px solid var(--border); }
.orders-table td { padding:14px; border-bottom:1px solid var(--border); font-size:13.5px; color:var(--stone); vertical-align:middle; }
.orders-table tr:last-child td { border-bottom:none; }
.orders-table tr:hover td { background:var(--milk); }

/* Status badges */
.status-badge { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; padding:3px 10px; border-radius:var(--r-full); text-transform:uppercase; letter-spacing:0.5px; }
.status-badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.status-pending         { background:rgba(192,123,20,0.1);   color:var(--amber); }
.status-payment_pending { background:rgba(139,92,246,0.1);   color:#6d28d9; }
.status-confirmed       { background:rgba(42,95,168,0.1);    color:var(--blue); }
.status-processing      { background:rgba(92,45,14,0.08);    color:var(--choco-mid); }
.status-shipped         { background:rgba(6,182,212,0.1);    color:#0e9ab5; }
.status-delivered       { background:rgba(45,122,79,0.1);    color:var(--green); }
.status-cancelled       { background:rgba(184,50,50,0.1);    color:var(--red); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-page {
  min-height:calc(100vh - var(--header-h));
  display:flex; align-items:center; justify-content:center;
  padding:60px 24px;
  background:var(--bg);
}
.auth-box { width:min(460px,100%); }
.auth-box__logo { text-align:center; margin-bottom:36px; }
.auth-card { background:var(--bg-card); border:1px solid var(--border-2); border-radius:var(--r-xl); padding:40px; box-shadow:var(--shadow-lg); }
.auth-card__title { font-family:var(--font-display); font-size:28px; font-weight:700; color:var(--ink); margin-bottom:6px; letter-spacing:-0.5px; }
.auth-card__subtitle { font-size:14px; color:var(--stone); margin-bottom:32px; }
.auth-card .form-group + .form-group { margin-top:16px; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0; font-size:12px; color:var(--stone-2); }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-footer-text { text-align:center; margin-top:22px; font-size:13.5px; color:var(--stone); }
.auth-footer-text a { color:var(--bronze); font-weight:600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--text-inv);
}
.footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 52px;
  grid-template-areas: 'about account info contact';
}
.footer-brand { grid-area: about; }
.footer-account-col { grid-area: account; }
.footer-info-col { grid-area: info; }
.footer-contact-col { grid-area: contact; }
.footer-brand {}
.footer-brand__logo { margin-bottom: 16px; }
.footer-brand__logo .site-logo__name { color: #f5e6d0; }
.footer-brand__logo .site-logo__tagline { color: rgba(245,230,208,0.5); }
.footer-brand__logo .site-logo__mark { background: rgba(245,230,208,0.1); color: #f5e6d0; }
.footer-brand__desc { font-size: 13.5px; color: rgba(245,230,208,0.55); line-height: 1.8; margin-bottom: 24px; max-width: 280px; }
.footer-brand__contact { display:flex; flex-direction:column; gap:8px; }
.footer-brand__contact-item { display:flex; align-items:center; gap:9px; font-size:13px; color:rgba(245,230,208,0.5); }
.footer-col__title { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:rgba(245,230,208,0.4); margin-bottom:20px; }
.footer-col__links { display:flex; flex-direction:column; gap:12px; }
.footer-col__link { font-size:13.5px; color:rgba(245,230,208,0.6); transition:color var(--ease); }
.footer-col__link:hover { color:#f5e6d0; }
.footer-bottom {
  padding: 24px 0;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-bottom__copy { font-size:12.5px; color:rgba(245,230,208,0.3); }
.footer-bottom__links { display:flex; gap:20px; }
.footer-bottom__links a { font-size:12.5px; color:rgba(245,230,208,0.35); }
.footer-bottom__links a:hover { color:rgba(245,230,208,0.7); }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-layout { display:grid; grid-template-columns:var(--sidebar-shop) 1fr; gap:28px; padding:80px 0 80px; align-items:start; }
.shop-sidebar { position:sticky; top:calc(var(--header-h) + 16px); display:flex; flex-direction:column; gap:14px; }
.filter-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }
.filter-card__header { padding:13px 17px; border-bottom:1px solid var(--border); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--ink-2); display:flex; justify-content:space-between; align-items:center; }
.filter-card__header a { font-size:11px; color:var(--bronze); font-weight:600; letter-spacing:0; text-transform:none; }
.filter-card__body { padding:15px 17px; display:flex; flex-direction:column; gap:9px; }
.filter-check { display:flex; align-items:center; gap:10px; cursor:pointer; font-size:13.5px; color:var(--stone); transition:color var(--ease); }
.filter-check:hover { color:var(--ink); }
.filter-check input[type=checkbox] { width:15px; height:15px; accent-color:var(--bronze); cursor:pointer; }
.filter-check__count { margin-left:auto; font-size:11px; color:var(--stone-2); }
.price-range-inputs { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.shop-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.shop-toolbar__count { font-size:13.5px; color:var(--stone); }
.shop-toolbar__count strong { color:var(--ink); }
.shop-toolbar__sort select { padding:8px 13px; background:var(--bg-card); border:1px solid var(--border-2); border-radius:var(--r-sm); color:var(--ink); font-size:13.5px; font-family:var(--font); outline:none; cursor:pointer; }

/* Pagination */
.pagination { display:flex; align-items:center; justify-content:center; gap:6px; padding:36px 0 0; flex-wrap:wrap; }
.pagination__btn { min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:var(--r-sm); border:1px solid var(--border-2); background:var(--bg-card); color:var(--stone); font-size:13.5px; font-weight:500; transition:all var(--ease); padding:0 10px; text-decoration:none; }
.pagination__btn:hover { border-color:var(--bronze); color:var(--bronze); }
.pagination__btn--active { background:var(--chocolate); border-color:var(--chocolate); color:#f5e6d0; }
.pagination__btn--active:hover { color:#f5e6d0; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state { text-align:center; padding:80px 24px; }
.empty-state__icon { font-size:52px; margin-bottom:16px; opacity:0.3; }
.empty-state__title { font-family:var(--font-display); font-size:22px; font-weight:600; color:var(--ink); margin-bottom:8px; }
.empty-state__text  { font-size:14px; color:var(--stone); margin-bottom:24px; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast { display:flex; align-items:center; gap:12px; padding:13px 17px; background:var(--bg-card); border:1px solid var(--border-2); border-radius:var(--r-md); box-shadow:var(--shadow-lg); font-size:13.5px; font-weight:500; color:var(--ink); pointer-events:all; animation:toastIn 0.35s var(--ease-spring); min-width:270px; max-width:370px; }
@keyframes toastIn { from { opacity:0; transform:translateX(60px); } to { opacity:1; transform:none; } }
.toast.hiding { animation:toastOut 0.28s ease forwards; }
@keyframes toastOut { to { opacity:0; transform:translateX(60px); } }
.toast--success { border-left:3px solid var(--green); }
.toast--error   { border-left:3px solid var(--red); }
.toast--info    { border-left:3px solid var(--bronze); }

/* ============================================================
   SKELETON
   ============================================================ */
@keyframes shimmer { 0% { background-position:-600px 0; } 100% { background-position:600px 0; } }
.skeleton { background:linear-gradient(90deg, var(--mist) 25%, var(--bg-tinted) 50%, var(--mist) 75%); background-size:1200px 100%; animation:shimmer 1.6s infinite; border-radius:var(--r-xs); }

/* ============================================================
   UTILITIES
   ============================================================ */
.tag { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 10px; border-radius:var(--r-full); border:1px solid var(--border-2); color:var(--stone); background:var(--bg-card); }
.divider { height:1px; background:var(--border); margin:24px 0; }
.text-center { text-align:center; }
.text-right  { text-align:right; }
.text-muted  { color:var(--stone); }
.text-sm     { font-size:13px; }
.fw-600      { font-weight:600; }
.fw-700      { font-weight:700; }
.fw-800      { font-weight:800; }
.mono        { font-family:var(--mono); }
.d-flex      { display:flex; }
.align-center { align-items:center; }
.gap-8  { gap:8px; }
.gap-12 { gap:12px; }
.gap-16 { gap:16px; }
.mt-8   { margin-top:8px; }
.mt-16  { margin-top:16px; }
.mt-24  { margin-top:24px; }
.mt-32  { margin-top:32px; }
.mb-16  { margin-bottom:16px; }
.mb-24  { margin-bottom:24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    grid-template-areas:
      'about about'
      'account info'
      'contact contact';
  }
  .hero__body { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .hero__left { padding: 64px 0; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .categories-bento { grid-template-rows: auto; }
  .categories-bento .cat-item:nth-child(1) { grid-column: span 2; grid-row: span 1; min-height: 180px; }
  .categories-bento .cat-item:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .header-nav, .header-search-bar { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .mobile-menu-btn { display: flex; }
  .value-props { grid-template-columns: 1fr 1fr; }
  .value-prop:nth-child(2) { border-right: none; }
  .value-prop:nth-child(3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding-top: var(--header-h); }
  .hero__title { font-size: clamp(42px, 12vw, 64px); letter-spacing: -1.5px; }
  .hero__stats-bar { grid-template-columns: 1fr 1fr 1fr; }
  .hero__stat { padding: 18px 16px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'about about'
      'account info'
      'contact contact';
  }
  .auth-card { padding: 26px 20px; }
  .cart-table__header { display: none; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item__price { display: none; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .categories-bento { grid-template-columns: 1fr 1fr; }
  .categories-bento .cat-item:nth-child(1) { grid-column: span 2; }
  .categories-bento .cat-item:nth-child(4) { grid-column: span 2; }
  .value-props { grid-template-columns: 1fr 1fr; }
  .value-prop { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .value-prop:nth-child(2n) { border-right: none; }
  .value-prop:nth-child(1), .value-prop:nth-child(2) { border-top: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ============================================================
   HAMBURGER — animated morph to ✕
   ============================================================ */
.mobile-menu-btn {
  border-color: transparent;
  position: relative;
  overflow: visible;
}
.hamburger-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.hamburger-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.40s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.22s ease,
    width     0.36s cubic-bezier(0.23, 1, 0.32, 1);
}
.hamburger-icon span:nth-child(2) {
  width: 62%;
  margin-left: auto;
}
/* Morphed state */
.mobile-menu-btn.is-open .hamburger-icon span:nth-child(1) {
  transform: translateY(6.25px) rotate(45deg);
}
.mobile-menu-btn.is-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-menu-btn.is-open .hamburger-icon span:nth-child(3) {
  transform: translateY(-6.25px) rotate(-45deg);
}

/* ============================================================
   MOBILE NAV — slide-in drawer from right
   ============================================================ */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 11, 4, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 695;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Override the old display:none/flex toggle */
.mobile-nav {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(300px, 88vw);
  padding: 0;
  flex-direction: column;
  background: var(--parchment);
  box-shadow: var(--shadow-xl);
  z-index: 700;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.44s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s 0.44s;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.44s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s 0s;
}

/* Drawer internals */
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  border: none;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--ease);
  align-self: auto;
  margin-bottom: 0;
}
.mobile-nav__close:hover { background: var(--mist-2); color: var(--ink); }

.mobile-nav__body {
  flex: 1;
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-md);
  letter-spacing: 0.1px;
  transition: all var(--ease);
}
.mobile-nav__link:hover { color: var(--chocolate); background: var(--bg-tinted); }
.mobile-nav__link-arrow {
  font-size: 11px;
  color: var(--stone-2);
  transition: transform var(--ease);
}
.mobile-nav__link:hover .mobile-nav__link-arrow { transform: translateX(3px); color: var(--bronze); }

.mobile-nav__divider { height: 1px; background: var(--border); margin: 6px 4px; }

.mobile-nav__footer {
  padding: 14px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav__footer .btn { justify-content: center; }

/* Staggered link reveal when nav opens */
.mobile-nav.open .mobile-nav__link {
  animation: navLinkIn 0.35s var(--ease-out) both;
}
.mobile-nav.open .mobile-nav__link:nth-child(1)  { animation-delay: 0.06s; }
.mobile-nav.open .mobile-nav__link:nth-child(2)  { animation-delay: 0.10s; }
.mobile-nav.open .mobile-nav__link:nth-child(3)  { animation-delay: 0.14s; }
.mobile-nav.open .mobile-nav__link:nth-child(4)  { animation-delay: 0.17s; }
.mobile-nav.open .mobile-nav__link:nth-child(5)  { animation-delay: 0.20s; }
.mobile-nav.open .mobile-nav__link:nth-child(6)  { animation-delay: 0.23s; }
.mobile-nav.open .mobile-nav__link:nth-child(n+7){ animation-delay: 0.26s; }
@keyframes navLinkIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE HEADER — logo + hamburger only
   ============================================================ */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav   { display: none; }
  .header-actions > *:not(.mobile-menu-btn) { display: none !important; }
  .mobile-menu-btn { display: flex; }
}

.mobile-hide { display: block; }
@media (max-width: 900px) {  .mobile-hide { display: none; } }

.hero__body {
  align-items: stretch; /* add this */
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-choose { padding: 80px 0; }
.why-choose__header { text-align: center; margin-bottom: 56px; }
.why-choose__lead {
  font-size: 15px;
  color: rgba(245,230,208,0.55);
  line-height: 1.8;
  max-width: 520px;
  margin: 16px auto 0;
}
.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1px;
}
.why-card {
  background: rgba(255,255,255,0.03);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease;
}
.why-card:hover { background: rgba(255,255,255,0.06); }
.why-card__icon { font-size: 28px; line-height: 1; }
.why-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #f5e6d0;
  letter-spacing: -0.2px;
}
.why-card__desc {
  font-size: 13px;
  color: rgba(245,230,208,0.5);
  line-height: 1.7;
}
.why-choose__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  margin-bottom: 48px;
}
.why-stat {
  background: rgba(255,255,255,0.02);
  padding: 28px 24px;
  text-align: center;
}
.why-stat__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--bronze-light);
  line-height: 1;
  margin-bottom: 6px;
}
.why-stat__label {
  font-size: 13px;
  font-weight: 700;
  color: #f5e6d0;
  margin-bottom: 4px;
}
.why-stat__desc {
  font-size: 11.5px;
  color: rgba(245,230,208,0.4);
  line-height: 1.5;
}
.why-choose__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .why-choose__grid { grid-template-columns: repeat(2, 1fr); }
  .why-choose__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .why-choose__grid { grid-template-columns: 1fr; }
  .why-choose__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SECURE PAYMENT STRIP
   ============================================================ */
.payment-strip {
  background: var(--mist);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.payment-strip__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.payment-strip__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.payment-strip__icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pay-badge {
  display: flex;
  align-items: center;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pay-badge:hover { opacity: 1; transform: translateY(-1px); }
.payment-strip__ssl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ============================================================
   BUSINESS TRANSPARENCY STRIP
   ============================================================ */
.transparency-strip {
  background: #fdf8f2;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.transparency-strip__inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.transparency-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
}
.transparency-item__icon { font-size: 20px; flex-shrink: 0; }
.transparency-item__label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-3);
}
.transparency-item__val {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.4;
}
.transparency-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .transparency-divider { display: none; }
  .transparency-item { padding: 8px 16px; }
  .transparency-strip__inner { justify-content: flex-start; }
}

/* ============================================================
   CUSTOMER SUPPORT SECTION
   ============================================================ */
.support-section { text-align: center; }
.support-section__header { margin-bottom: 48px; }
.support-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.support-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.support-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.support-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.support-card__desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
  flex: 1;
}
.support-card__link {
  margin-top: 4px;
  font-size: 12.5px;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .support-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .support-cards { grid-template-columns: 1fr; }
}