/* ============================================
   BARGAIN CENTER THRIFT STORE
   Shoe Storage & Organization Store
   Design System: Warm, practical, trustworthy
   ============================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text-primary); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors — warm earthy palette for home organization niche */
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-alt: #f3efe9;
  --color-border: #e0d9cf;
  --color-text-primary: #2d2620;
  --color-text-secondary: #5c544b;
  --color-text-muted: #8a8278;
  --color-accent: #c4621e;
  --color-accent-hover: #a8521a;
  --color-accent-fg: #ffffff;
  --color-accent-light: #f4e8dc;
  --color-success: #4a7c3a;
  --color-warning: #c4941e;
  --color-error: #c4391e;
  --color-sale: #c4391e;
  --color-dark: #2d2620;
  --color-cream: #faf8f5;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45,38,32,0.08);
  --shadow-md: 0 4px 12px rgba(45,38,32,0.10);
  --shadow-lg: 0 12px 32px rgba(45,38,32,0.14);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
}

/* ===== CONTAINER ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
@media (min-width: 768px) { .container { padding: 0 var(--space-lg); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-xl); } }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar { background: var(--color-dark); color: #fff; text-align: center; padding: 10px var(--space-md); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.5px; }
.announcement-bar span { display: inline-block; margin: 0 var(--space-sm); }
.announcement-bar .ann-sep { color: var(--color-accent); }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-height);
  height: auto;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  letter-spacing: -0.3px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  background: var(--color-surface);
  padding-right: 4px;
}
.nav-logo .logo-main { font-size: 1.0625rem; font-weight: 700; }
.nav-logo .logo-main span { color: var(--color-accent); }
.nav-logo .logo-sub {
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .nav-logo .logo-main { font-size: 1.125rem; }
  .nav-logo .logo-sub { font-size: 0.625rem; }
}
.nav-links {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  justify-content: flex-start;
  overflow: hidden;
}
.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 6px 4px;
  position: relative;
  white-space: nowrap;
  line-height: 1.2;
  flex: 0 0 auto;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  width: auto;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); width: auto; }
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 0;
  z-index: 2;
  position: relative;
  background: var(--color-surface);
  min-width: 0;
}
.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.nav-icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* Search in nav */
.nav-search { display: none; position: relative; flex: 0 1 auto; min-width: 0; }
.nav-search input {
  width: 140px;
  max-width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
}
.nav-search input:focus {
  border-color: var(--color-accent);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.nav-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Mobile / tablet: hamburger + logo + actions */
@media (max-width: 1199.98px) {
  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
}
@media (min-width: 768px) {
  .nav-search { display: block; }
  .nav-search input { width: 170px; }
}
/* Full desktop nav: only when there is room for all labels */
@media (min-width: 1200px) {
  .nav-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  .nav-links {
    display: flex;
    gap: 0.1rem;
    padding: 0 2px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
  }
  .nav-links a {
    font-size: 0.72rem;
    padding: 8px 3px;
    letter-spacing: -0.01em;
  }
  .nav-search input { width: 132px; font-size: 0.75rem; }
  .nav-actions { gap: 6px; }
  .hamburger { display: none !important; }
  .mobile-menu,
  .mobile-menu[hidden],
  .mobile-menu.open { display: none !important; transform: none; }
  .menu-overlay { display: none !important; }
}
@media (min-width: 1360px) {
  .nav-inner { column-gap: 14px; }
  .nav-links { gap: 0.2rem; }
  .nav-links a { font-size: 0.78rem; padding: 8px 4px; }
  .nav-search input { width: 150px; font-size: 0.8125rem; }
}
@media (min-width: 1440px) {
  .nav-links { gap: 0.28rem; }
  .nav-links a { font-size: 0.82rem; padding: 8px 5px; }
  .nav-search input { width: 168px; }
}
@media (min-width: 1600px) {
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.9rem; padding: 8px 6px; }
  .nav-search input { width: 210px; }
  .nav-logo .logo-main { font-size: 1.1875rem; }
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: -1;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE MENU ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 38, 32, 0.45);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--color-surface);
  z-index: 99;
  transform: translateX(-105%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  padding: calc(var(--header-height) + 12px) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.mobile-menu[hidden] {
  display: block !important;
  transform: translateX(-105%);
  pointer-events: none;
}
.mobile-menu.open,
.mobile-menu[hidden].open {
  display: block !important;
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  white-space: normal;
}
.mobile-menu a:hover { color: var(--color-accent); }
.mobile-menu .mobile-search { margin-bottom: var(--space-md); position: relative; }
.mobile-menu .mobile-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 12px 24px; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius-md); transition: all var(--transition-fast); text-align: center; white-space: nowrap; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-accent-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface-alt); color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-border); color: var(--color-text-primary); }
.btn-ghost { background: transparent; color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full); }
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-new { background: var(--color-success); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }
.badge-count { background: var(--color-accent); color: #fff; min-width: 20px; height: 20px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; padding: 0 6px; }

/* ===== SECTIONS ===== */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-sm); letter-spacing: -0.5px; }
.section-subtitle { font-size: 1.0625rem; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-lg); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== HERO ===== */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: var(--color-dark); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,38,32,0.75) 0%, rgba(45,38,32,0.5) 100%); }
.hero-content { position: relative; z-index: 2; padding: var(--space-2xl) var(--space-md); max-width: 700px; }
.hero-eyebrow { display: inline-block; background: rgba(196,98,30,0.9); color: #fff; padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--space-md); }
.hero-title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: var(--space-md); letter-spacing: -1px; }
.hero-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.9); margin-bottom: var(--space-xl); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ===== PRODUCT CARD ===== */
.product-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-surface-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.product-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.product-card-vendor { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.product-card-title { font-size: 0.9375rem; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap { display: flex; align-items: baseline; gap: var(--space-sm); margin-top: auto; }
.product-card-price { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700; color: var(--color-text-primary); }
.product-card-compare { font-size: 0.875rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-atc { margin-top: var(--space-sm); }

/* ===== COLLECTION CARD ===== */
.collection-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.collection-card:hover img { transform: scale(1.08); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,38,32,0.8) 0%, rgba(45,38,32,0.2) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); }
.collection-card-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.collection-card-count { font-size: 0.875rem; color: rgba(255,255,255,0.85); }

/* ===== TRUST BADGES ===== */
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
@media (min-width: 768px) { .trust-badges { grid-template-columns: repeat(4, 1fr); } }
.trust-item { text-align: center; padding: var(--space-lg); }
.trust-item svg { width: 40px; height: 40px; color: var(--color-accent); margin-bottom: var(--space-sm); }
.trust-item h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 0.8125rem; color: var(--color-text-muted); }

/* ===== FOOTER ===== */
.footer { background: var(--color-dark); color: rgba(255,255,255,0.8); padding: var(--space-2xl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: #fff; margin-bottom: var(--space-sm); line-height: 1.3; }
.footer-logo .logo-main { font-size: 1.25rem; font-weight: 700; }
.footer-logo .logo-main span { color: var(--color-accent); }
.footer-logo .logo-sub { display: block; font-size: 0.6875rem; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }
.footer-col h4 { color: #fff; font-size: 0.9375rem; font-weight: 600; margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-contact p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-bottom: var(--space-sm); }
.social-links { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-links a { width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all var(--transition-fast); }
.social-links a:hover { background: var(--color-accent); }
.social-links svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.footer-payments { display: flex; gap: var(--space-xs); align-items: center; }
.footer-payments span { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); padding: var(--space-md) 0; font-size: 0.8125rem; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-muted); }
.breadcrumb-item { color: var(--color-text-secondary); font-weight: 500; }

/* ===== PRODUCT PAGE ===== */
.product-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-lg) 0; }
@media (min-width: 768px) { .product-layout { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.2fr 1fr; gap: var(--space-2xl); } }

.product-gallery { position: sticky; top: calc(var(--header-height) + var(--space-md)); align-self: start; }
.gallery-main-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); aspect-ratio: 1; margin-bottom: var(--space-md); }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: var(--space-xs); }
.gallery-thumb { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition-fast); }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: var(--space-md); }
.product-vendor { font-size: 0.8125rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.product-title { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.product-rating { display: flex; align-items: center; gap: var(--space-sm); }
.rating-stars { display: inline-flex; gap: 2px; color: #e0a020; }
.rating-stars svg { width: 16px; height: 16px; }
.rating-text { font-size: 0.8125rem; color: var(--color-text-muted); }
.product-price-wrap { display: flex; align-items: baseline; gap: var(--space-md); }
.product-price { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 700; color: var(--color-text-primary); }
.product-compare-price { font-family: var(--font-mono); font-size: 1.25rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-save-badge { background: var(--color-sale); color: #fff; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }

.availability-msg { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.875rem; font-weight: 500; }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }
.availability-msg .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.product-short-desc { font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.7; }

/* Option selectors */
.option-group { margin-bottom: var(--space-md); }
.option-label { font-size: 0.875rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-sm); display: block; }
.option-label span { color: var(--color-accent); font-weight: 500; }
.option-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.option-btn { padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); background: var(--color-surface); transition: all var(--transition-fast); min-width: 48px; text-align: center; }
.option-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* Quantity control */
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; position: relative; z-index: 2; }
.qty-btn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--color-text-secondary); transition: background var(--transition-fast); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.qty-btn:hover { background: var(--color-surface-alt); color: var(--color-accent); }
.qty-input { width: 56px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); font-size: 1rem; font-weight: 600; color: var(--color-text-primary); background: var(--color-surface); }
.qty-input:focus { outline: none; }

/* ATC area */
.product-atc-area { display: flex; flex-direction: column; gap: var(--space-md); }
.product-atc-row { display: flex; gap: var(--space-md); align-items: stretch; }
.product-atc-row .btn { flex: 1; }

/* Sticky ATC */
.sticky-atc { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 12px rgba(0,0,0,0.08); padding: var(--space-sm) var(--space-md); z-index: 90; transform: translateY(100%); transition: transform var(--transition-base); display: flex; align-items: center; gap: var(--space-md); }
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: var(--space-sm); flex: 1; min-width: 0; }
.sticky-atc-product img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-atc-product .sap-title { font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-atc-product .sap-price { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--color-accent); }
@media (max-width: 640px) { .sticky-atc-product .sap-title { display: none; } }

/* Accordions */
.product-accordions { margin-top: var(--space-lg); }
.accordion { border-bottom: 1px solid var(--color-border); }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) 0; cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--color-text-primary); }
.accordion-header:hover { color: var(--color-accent); }
.accordion-icon { width: 20px; height: 20px; transition: transform var(--transition-base); }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.accordion.open .accordion-body { max-height: 2000px; }
.accordion-body-inner { padding: 0 0 var(--space-md); font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.7; }
.accordion-body-inner ul { padding-left: var(--space-lg); list-style: disc; margin: var(--space-sm) 0; }
.accordion-body-inner li { margin-bottom: 4px; }

/* ===== REVIEWS ===== */
.reviews-section { margin-top: var(--space-2xl); }
.reviews-placeholder { text-align: center; padding: var(--space-2xl) var(--space-lg); background: var(--color-surface-alt); border-radius: var(--radius-lg); }
.reviews-placeholder svg { width: 48px; height: 48px; color: var(--color-text-muted); margin: 0 auto var(--space-md); opacity: 0.4; }
.reviews-placeholder h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-sm); }
.reviews-placeholder p { font-size: 0.9375rem; color: var(--color-text-secondary); max-width: 400px; margin: 0 auto; }

/* ===== CART DRAWER ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(45,38,32,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--color-surface); z-index: 201; transform: translateX(100%); transition: transform var(--transition-base); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
.cart-drawer-header .close-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: 1.25rem; color: var(--color-text-muted); }
.cart-drawer-header .close-btn:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md); }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-md); color: var(--color-text-muted); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto var(--space-md); opacity: 0.3; }
.cart-empty p { margin-bottom: var(--space-md); }
.cart-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; border: 1px solid var(--color-border); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-variant { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.cart-item-price { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--color-text-primary); }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); }
.cart-item-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--color-text-secondary); }
.cart-item-qty button:hover { background: var(--color-surface-alt); }
.cart-item-qty span { width: 32px; text-align: center; font-size: 0.8125rem; font-weight: 600; }
.cart-item-remove { font-size: 0.75rem; color: var(--color-text-muted); }
.cart-item-remove:hover { color: var(--color-error); }
.cart-footer { border-top: 1px solid var(--color-border); padding: var(--space-lg); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.cart-subtotal span { font-size: 0.9375rem; color: var(--color-text-secondary); }
.cart-subtotal strong { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; }
.cart-tax-note { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; margin-bottom: var(--space-md); }
.cart-footer .btn { margin-bottom: var(--space-sm); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: var(--space-xl); left: 50%; transform: translateX(-50%) translateY(100px); background: var(--color-text-primary); color: #fff; padding: 12px 24px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; z-index: 300; opacity: 0; transition: all var(--transition-base); box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-error); }

/* ===== COLLECTION PAGE ===== */
.collection-hero { position: relative; min-height: 280px; display: flex; align-items: center; overflow: hidden; background: var(--color-dark); }
.collection-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; position: absolute; inset: 0; }
.collection-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,38,32,0.7), rgba(45,38,32,0.4)); }
.collection-hero-content { position: relative; z-index: 2; padding: var(--space-xl) var(--space-md); text-align: center; width: 100%; }
.collection-hero-content h1 { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: var(--space-sm); }
.collection-hero-content p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.sort-bar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-lg); flex-wrap: wrap; gap: var(--space-sm); }
.sort-bar .result-count { font-size: 0.875rem; color: var(--color-text-muted); }
.sort-bar select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.875rem; background: var(--color-surface); color: var(--color-text-primary); cursor: pointer; }
.sort-bar select:focus { outline: none; border-color: var(--color-accent); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: var(--space-xs); margin-top: var(--space-xl); }
.pagination-btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); background: var(--color-surface); transition: all var(--transition-fast); padding: 0 12px; }
.pagination-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination-btn.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== SEARCH ===== */
.search-page { padding: var(--space-2xl) 0; }
.search-bar-large { display: flex; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.search-bar-large input { flex: 1; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 1rem; }
.search-bar-large input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.search-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
@media (min-width: 768px) { .search-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .search-results-grid { grid-template-columns: repeat(4, 1fr); } }
.search-empty { text-align: center; padding: var(--space-3xl) 0; }
.search-empty h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--space-sm); }
.search-empty p { color: var(--color-text-muted); margin-bottom: var(--space-lg); }

/* Live search dropdown */
.live-search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; z-index: 150; display: none; margin-top: 4px; }
.live-search-results.show { display: block; }
.search-item { display: flex; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-border); align-items: center; }
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-title { font-size: 0.875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-price { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; color: var(--color-accent); }

/* ===== BLOG ===== */
.blog-section { padding: var(--space-2xl) 0; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.blog-card-meta { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.blog-card-title a { color: var(--color-text-primary); }
.blog-card-title a:hover { color: var(--color-accent); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-read { margin-top: auto; font-size: 0.8125rem; font-weight: 600; color: var(--color-accent); }

.blog-hero { position: relative; min-height: 320px; display: flex; align-items: center; overflow: hidden; background: var(--color-dark); }
.blog-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; position: absolute; inset: 0; }
.blog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,38,32,0.75), rgba(45,38,32,0.45)); }
.blog-hero-content { position: relative; z-index: 2; padding: var(--space-xl); text-align: center; width: 100%; }
.blog-hero-content h1 { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: var(--space-sm); }

.blog-article-layout { max-width: 800px; margin: 0 auto; padding: var(--space-xl) 0; }
.blog-article-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; }
.blog-article-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.blog-article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(45,38,32,0.85) 0%, rgba(45,38,32,0.3) 60%, transparent 100%); }
.blog-article-hero-content { position: relative; z-index: 2; padding: var(--space-xl); width: 100%; }
.blog-article-hero-content h1 { font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; color: #fff; margin-bottom: var(--space-sm); }
.blog-article-meta { display: flex; gap: var(--space-md); font-size: 0.8125rem; color: rgba(255,255,255,0.8); }
.blog-article-body { padding: var(--space-lg) 0; }
.blog-article-body h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); }
.blog-article-body h3 { font-size: 1.125rem; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
.blog-article-body p { margin-bottom: var(--space-md); color: var(--color-text-secondary); line-height: 1.8; font-size: 1rem; }
.blog-article-body ul { padding-left: var(--space-lg); list-style: disc; margin-bottom: var(--space-md); }
.blog-article-body ul li { margin-bottom: var(--space-sm); color: var(--color-text-secondary); }
.blog-article-body strong { color: var(--color-text-primary); }
.blog-article-share { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-lg) 0; border-top: 1px solid var(--color-border); margin-top: var(--space-xl); }
.blog-article-share span { font-size: 0.875rem; font-weight: 600; }
.blog-article-share a { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-surface-alt); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.blog-article-share a:hover { background: var(--color-accent); color: #fff; }
.blog-article-share svg { width: 18px; height: 18px; }
.blog-related { padding: var(--space-xl) 0; }

/* ===== SKELETON ===== */
.skeleton { background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.4s ease; }
.slide-up { animation: slideUp 0.4s ease; }

/* ===== 404 PAGE ===== */
.error-page { text-align: center; padding: var(--space-3xl) 0; }
.error-page .error-code { font-family: var(--font-heading); font-size: clamp(4rem, 15vw, 8rem); font-weight: 700; color: var(--color-accent); line-height: 1; }
.error-page h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--space-sm); }
.error-page p { color: var(--color-text-muted); margin-bottom: var(--space-lg); }

/* ===== POLICY / PAGE LAYOUT ===== */
.page-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-xl) 0; }
@media (min-width: 768px) { .page-layout { grid-template-columns: 240px 1fr; } }
.page-sidebar { }
.page-sidebar h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-md); }
.page-sidebar ul li { margin-bottom: var(--space-sm); }
.page-sidebar ul li a { font-size: 0.875rem; color: var(--color-text-secondary); }
.page-sidebar ul li a:hover, .page-sidebar ul li a.active { color: var(--color-accent); font-weight: 600; }
.page-content { max-width: 800px; }
.page-content h1 { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: var(--space-lg); }
.page-content h2 { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); }
.page-content h3 { font-size: 1.125rem; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
.page-content p { margin-bottom: var(--space-md); color: var(--color-text-secondary); line-height: 1.7; }
.page-content ul { padding-left: var(--space-lg); list-style: disc; margin-bottom: var(--space-md); }
.page-content ul li { margin-bottom: var(--space-xs); color: var(--color-text-secondary); }
.page-content strong { color: var(--color-text-primary); }

/* Contact form */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: var(--space-xs); color: var(--color-text-primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.9375rem; background: var(--color-surface); color: var(--color-text-primary); transition: border-color var(--transition-fast); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== CART PAGE ===== */
.cart-page { padding: var(--space-xl) 0; }
.cart-page-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 1024px) { .cart-page-layout { grid-template-columns: 1fr 380px; } }
.cart-items-list { }
.cart-page-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); align-items: start; }
.cart-page-item-img { width: 100px; height: 100px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; border: 1px solid var(--color-border); }
.cart-page-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-item-info { flex: 1; }
.cart-page-item-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cart-page-item-title a { color: var(--color-text-primary); }
.cart-page-item-title a:hover { color: var(--color-accent); }
.cart-page-item-variant { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.cart-page-item-price { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; }
.cart-page-item-actions { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-sm); }
.cart-page-item-remove { font-size: 0.8125rem; color: var(--color-text-muted); }
.cart-page-item-remove:hover { color: var(--color-error); }
.cart-summary { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: var(--space-lg); position: sticky; top: calc(var(--header-height) + var(--space-md)); }
.cart-summary h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-md); }
.cart-summary-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; font-size: 0.9375rem; }
.cart-summary-row.total { border-top: 1px solid var(--color-border); margin-top: var(--space-sm); padding-top: var(--space-md); }
.cart-summary-row.total span, .cart-summary-row.total strong { font-size: 1.125rem; font-weight: 700; }
.cart-summary-row.total strong { font-family: var(--font-mono); color: var(--color-accent); }
.cart-summary .btn { margin-top: var(--space-md); }
.cart-summary .free-ship-progress { background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-md); text-align: center; }
.cart-summary .free-ship-progress p { font-size: 0.8125rem; color: var(--color-text-secondary); margin-bottom: var(--space-sm); }
.cart-summary .progress-bar { height: 6px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.cart-summary .progress-fill { height: 100%; background: var(--color-success); border-radius: var(--radius-full); transition: width 0.5s ease; }

/* ===== CHECKOUT PAGE ===== */
.checkout-page { padding: var(--space-xl) 0; background: var(--color-surface-alt); min-height: 60vh; }
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1fr 400px; } }
.checkout-form-section { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-md); }
.checkout-form-section h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.checkout-form-section h3 .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-row-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .form-row-3 { grid-template-columns: 2fr 1fr 1fr; } }

/* Card payment form */
.card-form { }
.card-preview { background: linear-gradient(135deg, var(--color-dark), #4a3f35); border-radius: var(--radius-md); padding: var(--space-lg); color: #fff; margin-bottom: var(--space-lg); min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.card-preview::before { content: ''; position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: rgba(196,98,30,0.15); border-radius: 50%; }
.card-preview .card-chip { width: 40px; height: 30px; background: linear-gradient(135deg, #d4a843, #b8902f); border-radius: var(--radius-sm); margin-bottom: var(--space-md); }
.card-preview .card-number { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: 2px; margin-bottom: var(--space-md); position: relative; z-index: 1; }
.card-preview .card-bottom { display: flex; justify-content: space-between; align-items: end; position: relative; z-index: 1; }
.card-preview .card-name { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.card-preview .card-exp { font-family: var(--font-mono); font-size: 0.875rem; }
.card-preview .card-brand { font-size: 1.25rem; font-weight: 700; font-style: italic; }

.card-input-group { position: relative; margin-bottom: var(--space-md); }
.card-input-group label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: var(--space-xs); }
.card-input-group input { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 0.9375rem; font-family: var(--font-mono); letter-spacing: 1px; transition: all var(--transition-fast); }
.card-input-group input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.card-input-group .input-icon { position: absolute; right: 12px; top: 36px; color: var(--color-text-muted); }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.security-badges { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); background: var(--color-surface-alt); border-radius: var(--radius-md); margin-top: var(--space-md); }
.security-badges svg { width: 20px; height: 20px; color: var(--color-success); }
.security-badges span { font-size: 0.8125rem; color: var(--color-text-secondary); }

.order-summary { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-lg); position: sticky; top: calc(var(--header-height) + var(--space-md)); }
.order-summary h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-md); }
.order-summary-item { display: flex; gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
.order-summary-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.order-summary-item-info { flex: 1; min-width: 0; }
.order-summary-item-title { font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-summary-item-qty { font-size: 0.75rem; color: var(--color-text-muted); }
.order-summary-item-price { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; }

/* ===== THANK YOU PAGE ===== */
.thank-you-page { padding: var(--space-3xl) 0; text-align: center; }
.thank-you-icon { width: 80px; height: 80px; margin: 0 auto var(--space-lg); background: var(--color-success); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.thank-you-icon svg { width: 40px; height: 40px; color: #fff; }
.thank-you-page h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: var(--space-sm); }
.thank-you-page .order-num { font-family: var(--font-mono); font-size: 1rem; color: var(--color-accent); margin-bottom: var(--space-lg); }
.thank-you-page .subtext { font-size: 1.0625rem; color: var(--color-text-secondary); max-width: 500px; margin: 0 auto var(--space-xl); }
.order-details-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); max-width: 700px; margin: 0 auto var(--space-xl); text-align: left; }
.order-details-card h3 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-md); }
.order-detail-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-row strong { font-family: var(--font-mono); }
.thank-you-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }

/* ===== FAQ SECTION ===== */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) 0; cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.faq-question:hover { color: var(--color-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-answer.open { max-height: 500px; }
.faq-answer p { padding: 0 0 var(--space-md); font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.7; }

/* ===== BRAND STORY ===== */
.brand-story { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
@media (min-width: 768px) { .brand-story { grid-template-columns: 1fr 1fr; } }
.brand-story-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.brand-story-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-text h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: var(--space-md); }
.brand-story-text p { color: var(--color-text-secondary); margin-bottom: var(--space-md); line-height: 1.7; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
