/* Super Awesome Discounts — Kitchen Gadgets Design System */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #FBF7F2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3EBE1;
  --color-surface-dark: #1C1917;
  --color-border: #E7DDD0;
  --color-border-strong: #D6C7B5;
  --color-text-primary: #1C1917;
  --color-text-secondary: #44403C;
  --color-text-muted: #78716C;
  --color-accent: #C2410C;
  --color-accent-hover: #9A3412;
  --color-accent-soft: #FFEDD5;
  --color-accent-fg: #FFFFFF;
  --color-sage: #3F6212;
  --color-sage-soft: #ECFCCB;
  --color-success: #15803D;
  --color-warning: #B45309;
  --color-error: #B91C1C;
  --color-sale: #9F1239;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 25, 23, 0.12);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --container: 1180px;
  --header-h: 72px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.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;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-full);
  padding: 0.75rem 1.35rem; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary {
  background: var(--color-surface); color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-surface-alt); }
.btn-ghost {
  background: transparent; color: var(--color-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(28,25,23,0.05); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; border-radius: var(--radius-full);
  padding: 0.2rem 0.55rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  background: var(--color-surface-alt); color: var(--color-text-secondary);
}
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-new { background: var(--color-sage); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }

/* Announcement */
.announcement-bar {
  background: var(--color-surface-dark);
  color: #F5F5F4;
  font-size: 0.8rem;
  font-weight: 500;
}
.announcement-bar-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.75rem;
  padding: 0.55rem 0; text-align: center;
}
.announcement-dot { opacity: 0.45; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #EA580C, #C2410C);
  color: #fff; font-family: var(--font-heading); font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.logo-text { display: none; }
@media (min-width: 480px) { .logo-text { display: inline; } }

.nav-links {
  display: none; align-items: center; gap: 0.25rem; margin-left: auto;
}
.nav-links > a, .nav-dropdown-btn {
  padding: 0.55rem 0.8rem; border-radius: var(--radius-full);
  font-size: 0.92rem; font-weight: 500; color: var(--color-text-secondary);
  background: transparent; border: 0; cursor: pointer;
}
.nav-links > a:hover, .nav-dropdown-btn:hover,
.nav-links > a.is-active { color: var(--color-text-primary); background: var(--color-surface-alt); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.5rem;
  z-index: 20;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: grid; gap: 2px; }
.nav-dropdown-panel a {
  padding: 0.65rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--color-text-secondary);
}
.nav-dropdown-panel a:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }

.nav-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
  .hamburger { display: none !important; }
}

.icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: var(--radius-full);
  display: grid; place-items: center; background: transparent; cursor: pointer;
  color: var(--color-text-primary); position: relative;
}
.icon-btn:hover { background: var(--color-surface-alt); }
.cart-count, [data-cart-count] {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-full); background: var(--color-accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; display: grid; place-items: center;
}
.cart-drawer-header [data-cart-count], .badge[data-cart-count] {
  position: static; display: inline-flex; margin-left: 0.35rem;
}

.hamburger {
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--color-text-primary); border-radius: 2px;
}

.mobile-menu {
  display: grid; gap: 0.25rem; padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--color-border); background: var(--color-bg);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a {
  padding: 0.85rem 0.75rem; border-radius: var(--radius-md);
  font-weight: 500; color: var(--color-text-secondary);
}
.mobile-menu a:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }

.search-panel {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.85rem 0 1rem;
}
.search-panel[hidden] { display: none !important; }
.search-bar {
  display: flex; gap: 0.5rem; align-items: center;
}
.search-bar input {
  flex: 1; border: 1px solid var(--color-border-strong); border-radius: var(--radius-full);
  padding: 0.75rem 1rem; background: var(--color-bg);
}
.search-results { margin-top: 0.75rem; display: grid; gap: 0.35rem; }
.search-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 0.75rem; align-items: center;
  padding: 0.5rem; border-radius: var(--radius-md);
}
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.search-item strong { display: block; font-size: 0.9rem; }
.search-item span { color: var(--color-text-muted); font-size: 0.85rem; font-family: var(--font-mono); }

/* Hero */
.hero {
  position: relative; min-height: clamp(420px, 72vh, 640px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,25,23,0.15) 0%, rgba(28,25,23,0.72) 100%),
    linear-gradient(90deg, rgba(28,25,23,0.55) 0%, rgba(28,25,23,0.1) 70%);
}
.hero-content {
  position: relative; z-index: 1; padding: var(--space-2xl) 0;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FDBA74; margin-bottom: 0.85rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 0.85rem;
}
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 34ch; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Sections */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-dark {
  background: var(--color-surface-dark); color: #E7E5E4;
}
.section-dark h2, .section-dark h3 { color: #FAFAF9; }
.section-header {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: var(--space-xl);
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-subtitle { color: var(--color-text-muted); max-width: 46ch; margin-top: 0.4rem; }
.section-dark .section-subtitle { color: #A8A29E; }

.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-auto { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@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(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Product card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card-media {
  position: relative; aspect-ratio: 1; background: var(--color-surface-alt); overflow: hidden;
}
.product-card-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-badges {
  position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem; z-index: 1;
}
.product-card-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-vendor {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent);
}
.product-card-title { font-size: 1rem; font-family: var(--font-body); font-weight: 600; line-height: 1.3; }
.product-card-title a:hover { color: var(--color-accent); }
.product-price-wrap { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.15rem; }
.product-price { font-family: var(--font-mono); font-weight: 500; font-size: 1rem; }
.product-compare-price {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted);
  text-decoration: line-through;
}
.product-card-actions {
  display: flex; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem;
}
.product-card-actions .btn { flex: 1; }

/* Collection card */
.collection-card { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.collection-card-media {
  position: relative; aspect-ratio: 4/3; background: var(--color-surface-dark);
}
.collection-card-media img { width: 100%; height: 100%; object-fit: cover; }
.collection-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(28,25,23,0.78) 100%);
}
.collection-card-label {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; color: #fff;
}
.collection-card-label h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.2rem; }
.collection-card-label span { font-size: 0.85rem; opacity: 0.85; }
.collection-card:hover img { transform: scale(1.03); transition: transform 0.4s ease; }

/* Trust */
.trust-badges {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .trust-badges { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust-badges { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.15rem;
}
.trust-item h3 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 0.35rem; }
.trust-item p { color: var(--color-text-muted); font-size: 0.9rem; }
.trust-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent); margin-bottom: 0.75rem;
  font-weight: 700;
}

/* Benefits / story */
.benefit-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .benefit-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.benefit-panel {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.benefit-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.benefit-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start;
  color: var(--color-text-secondary);
}
.benefit-list .tick {
  width: 28px; height: 28px; border-radius: 50%; background: var(--color-sage-soft);
  color: var(--color-sage); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.25rem;
}
.stat {
  background: var(--color-surface-alt); border-radius: var(--radius-md); padding: 0.9rem;
  text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-accent);
}
.stat span { font-size: 0.78rem; color: var(--color-text-muted); }

/* Blog cards */
.blog-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
}
.blog-card-media { aspect-ratio: 16/10; background: var(--color-surface-alt); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.1rem; display: grid; gap: 0.4rem; }
.blog-meta { font-size: 0.8rem; color: var(--color-text-muted); }
.blog-card h3 { font-size: 1.15rem; }
.blog-card p { color: var(--color-text-secondary); font-size: 0.92rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { opacity: 0.5; }

/* Collection page */
.collection-hero {
  position: relative; min-height: 240px; display: grid; align-items: end;
  color: #fff; overflow: hidden; margin-bottom: var(--space-xl);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.collection-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.collection-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0.2), rgba(28,25,23,0.75));
}
.collection-hero-content { position: relative; z-index: 1; padding: 2rem 0; }
.collection-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.collection-hero p { color: rgba(255,255,255,0.88); max-width: 50ch; margin-top: 0.5rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.toolbar select, .form-control {
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-full);
  padding: 0.65rem 1rem; background: var(--color-surface); min-width: 0;
}
.pagination {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 2rem;
}
.pagination-btn {
  min-width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); background: var(--color-surface);
  display: grid; place-items: center; font-weight: 600; cursor: pointer;
}
.pagination-btn.active, .pagination-btn:hover {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}

/* Product page */
.product-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.product-main-col {
  display: grid;
  gap: 0;
  min-width: 0;
}

/* Images stay in normal document flow — never fixed/floating/overlapping */
.product-gallery {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  transform: none;
}
.product-gallery-spacer {
  display: none !important;
}
.gallery-main-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  max-width: 100%;
  cursor: zoom-in;
}
.gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.gallery-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--color-surface-alt);
  padding: 0;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--color-accent); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: simple stacked product page — image first, then details */
@media (max-width: 899.98px) {
  .product-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .product-gallery {
    position: relative !important;
    order: 0;
  }
  .product-main-col {
    order: 1;
    position: relative;
    z-index: auto;
    background: transparent;
    padding-top: 0;
    padding-bottom: 5.5rem; /* space for sticky ATC bar only */
  }
  .gallery-main-wrap {
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
  }
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  }
}

/* Desktop: two columns; gallery stays in its column (not fixed/floating) */
@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
  .product-gallery {
    position: relative;
  }
}

.product-info { display: grid; gap: 1rem; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.rating-stars { color: #D97706; letter-spacing: 1px; }
.product-price-lg { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; }
.option-group { display: grid; gap: 0.5rem; }
.option-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-secondary); }
.option-btns { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.option-btn {
  min-width: 44px; padding: 0.55rem 0.85rem; border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong); background: var(--color-surface);
  cursor: pointer; font-size: 0.9rem; font-weight: 500;
}
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-accent-hover); }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; }

.qty-control {
  display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full); overflow: hidden; background: var(--color-surface);
}
.qty-btn {
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem;
}
.qty-input {
  width: 48px; border: 0; text-align: center; background: transparent; font-family: var(--font-mono);
}
.purchase-row { display: grid; gap: 0.75rem; }
@media (min-width: 480px) {
  .purchase-row { grid-template-columns: auto 1fr 1fr; align-items: center; }
}
.availability-msg { font-size: 0.9rem; color: var(--color-success); font-weight: 600; }
.availability-msg.out { color: var(--color-error); }

.product-accordions { display: grid; gap: 0.5rem; }
.accordion {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface);
  overflow: hidden;
}
.accordion summary {
  list-style: none; cursor: pointer; padding: 0.95rem 1rem; font-weight: 600;
  display: flex; justify-content: space-between; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--color-text-muted); }
.accordion[open] summary::after { content: "–"; }
.accordion-body { padding: 0 1rem 1rem; color: var(--color-text-secondary); font-size: 0.95rem; }
.accordion-body p + p { margin-top: 0.65rem; }
.accordion-body ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.5rem; }

.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,0.96); border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(28,25,23,0.08);
  transform: translateY(110%); transition: transform var(--transition-base);
  padding: 0.75rem 0;
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-inner {
  display: flex; align-items: center; gap: 0.85rem; justify-content: space-between;
}
.sticky-atc-product { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.sticky-atc-product img {
  width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-surface-alt);
}
.sticky-atc-product strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.sticky-atc-product span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-muted); }

/* Reviews */
.reviews-section { margin-top: var(--space-2xl); }
.reviews-summary {
  display: grid; gap: 1.25rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .reviews-summary { grid-template-columns: 180px 1fr; } }
.reviews-avg { text-align: center; }
.reviews-score {
  font-family: var(--font-heading); font-size: 3rem; line-height: 1; color: var(--color-accent);
}
.reviews-bars { display: grid; gap: 0.45rem; }
.rating-bar {
  display: grid; grid-template-columns: 42px 1fr 36px; gap: 0.5rem; align-items: center;
  font-size: 0.85rem; color: var(--color-text-muted);
}
.rating-bar-track {
  height: 8px; border-radius: var(--radius-full); background: var(--color-surface-alt); overflow: hidden;
}
.rating-bar-fill { height: 100%; background: #D97706; border-radius: var(--radius-full); }
.review-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.1rem;
}
.review-header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.review-author { font-weight: 700; }
.review-title { font-weight: 600; margin: 0.25rem 0; }
.review-body { color: var(--color-text-secondary); font-size: 0.95rem; }
.review-verified {
  display: inline-flex; margin-top: 0.65rem; font-size: 0.78rem; font-weight: 700;
  color: var(--color-sage); background: var(--color-sage-soft);
  padding: 0.2rem 0.55rem; border-radius: var(--radius-full);
}

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(28,25,23,0.45); z-index: 60;
}
.cart-overlay[hidden] { display: none !important; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 100%); height: 100%;
  background: var(--color-surface); z-index: 70; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--transition-base);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--color-border);
}
.cart-lines { flex: 1; overflow: auto; padding: 1rem; display: grid; gap: 0.85rem; align-content: start; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.75rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.65rem;
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.cart-item-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.cart-item-meta { color: var(--color-text-muted); font-size: 0.82rem; margin: 0.2rem 0; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }
.cart-footer { border-top: 1px solid var(--color-border); padding: 1rem; display: grid; gap: 0.65rem; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1rem; }
.cart-tax-note { font-size: 0.82rem; color: var(--color-text-muted); }
.cart-empty { text-align: center; color: var(--color-text-muted); padding: 2rem 1rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 20px);
  background: var(--color-surface-dark); color: #fff; padding: 0.85rem 1.15rem;
  border-radius: var(--radius-full); box-shadow: var(--shadow-lg); z-index: 100;
  opacity: 0; transition: opacity var(--transition-base), transform var(--transition-base);
  font-size: 0.92rem; font-weight: 500; max-width: min(92vw, 420px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--color-error); }
.toast-success { background: #14532D; }

/* Cart page / checkout */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at top right, rgba(194,65,12,0.08), transparent 40%),
    var(--color-bg);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.35rem; }
.page-hero p { color: var(--color-text-muted); max-width: 50ch; }

.cart-page-layout, .checkout-layout {
  display: grid; gap: 1.5rem; padding: var(--space-xl) 0 var(--space-2xl);
}
@media (min-width: 900px) {
  .cart-page-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
  .checkout-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.panel {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.cart-table { display: grid; gap: 1rem; }
.cart-line-full {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--color-border);
}
.cart-line-full:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line-full img {
  width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-alt);
}
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0;
  color: var(--color-text-secondary);
}
.summary-row.total {
  border-top: 1px solid var(--color-border); margin-top: 0.5rem; padding-top: 0.85rem;
  font-size: 1.1rem; font-weight: 700; color: var(--color-text-primary);
}
.summary-row.total span:last-child { font-family: var(--font-mono); color: var(--color-accent); }

/* Forms */
.form-grid { display: grid; gap: 0.85rem; }
.form-grid.two { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-secondary); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--color-border-strong); border-radius: 12px;
  padding: 0.8rem 0.95rem; background: var(--color-bg); transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194,65,12,0.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--color-text-muted); }
.form-error { color: var(--color-error); font-size: 0.82rem; display: none; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea {
  border-color: var(--color-error);
}
.form-field.invalid .form-error { display: block; }

.card-payment {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1rem; background:
    linear-gradient(145deg, rgba(255,237,213,0.55), rgba(255,255,255,0.9));
}
.card-visual {
  border-radius: 16px; padding: 1.1rem 1.2rem; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(135deg, #1C1917 0%, #44403C 45%, #C2410C 160%);
  min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.card-visual .chip {
  width: 36px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #FBBF24, #D97706);
}
.card-visual .card-number {
  font-family: var(--font-mono); letter-spacing: 0.12em; font-size: 1.05rem;
}
.card-visual .card-meta {
  display: flex; justify-content: space-between; font-size: 0.78rem; opacity: 0.9;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pay-icons { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.pay-icons span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--color-border); border-radius: 6px; padding: 0.25rem 0.45rem;
  background: var(--color-surface); color: var(--color-text-muted);
}

/* Thank you */
.thankyou {
  text-align: center; padding: var(--space-3xl) 0;
}
.thankyou-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.25rem;
  display: grid; place-items: center; font-size: 2rem;
  background: var(--color-sage-soft); color: var(--color-sage);
  box-shadow: var(--shadow-md);
}
.order-box {
  max-width: 520px; margin: 1.5rem auto 0; text-align: left;
}

/* Content pages */
.prose {
  max-width: 760px; color: var(--color-text-secondary);
}
.prose h1, .prose h2, .prose h3 { color: var(--color-text-primary); margin: 1.4rem 0 0.6rem; }
.prose p, .prose li { margin-bottom: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius-md); margin: 1rem 0; }
.policy-layout {
  display: grid; gap: 1.5rem; padding-bottom: var(--space-2xl);
}
@media (min-width: 900px) {
  .policy-layout { grid-template-columns: 240px 1fr; align-items: start; }
}
.policy-nav {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 0.75rem; display: grid; gap: 0.25rem;
}
.policy-nav a {
  padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.92rem;
  color: var(--color-text-secondary);
}
.policy-nav a:hover, .policy-nav a.active {
  background: var(--color-accent-soft); color: var(--color-accent-hover);
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; max-width: 760px; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 0;
}
.faq-item summary { padding: 1rem 1.1rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 1.1rem 1.1rem; color: var(--color-text-secondary); }

/* 404 */
.error-page {
  text-align: center; padding: var(--space-3xl) 0;
}
.error-page .code {
  font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 7rem);
  color: var(--color-accent); line-height: 1;
}

/* Footer */
.footer {
  background: var(--color-surface-dark); color: #D6D3D1; margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: var(--space-xl);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: #FAFAF9; font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.75rem;
}
.footer-brand p { color: #A8A29E; margin-bottom: 0.85rem; max-width: 32ch; }
.footer-contact { font-size: 0.92rem; line-height: 1.7; }
.footer-contact a:hover { color: #FDBA74; }
.footer-col h4 {
  color: #FAFAF9; font-family: var(--font-body); font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.85rem;
}
.footer-col ul { display: grid; gap: 0.45rem; }
.footer-col a { color: #A8A29E; font-size: 0.92rem; }
.footer-col a:hover { color: #FDBA74; }
.social-links { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-links a {
  border: 1px solid #44403C; border-radius: var(--radius-full); padding: 0.4rem 0.8rem;
  font-size: 0.82rem; color: #E7E5E4;
}
.social-links a:hover { border-color: #FDBA74; color: #FDBA74; }
.footer-bottom {
  border-top: 1px solid #292524; padding: 1rem 0 1.25rem;
}
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #78716C;
}
.trust-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust-inline span {
  border: 1px solid #292524; border-radius: var(--radius-full); padding: 0.25rem 0.65rem;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #E7DDD0 25%, #F5EFE7 50%, #E7DDD0 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm);
}
@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(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-banner {
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(253,186,116,0.25), transparent 40%),
    linear-gradient(135deg, #1C1917, #292524 50%, #7C2D12);
  color: #fff; padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1rem; align-items: center;
}
@media (min-width: 768px) { .cta-banner { grid-template-columns: 1.4fr auto; } }
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 42ch; }

.zoom-modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(28,25,23,0.88);
  display: grid; place-items: center; padding: 1rem;
}
.zoom-modal[hidden] { display: none !important; }
.zoom-modal img { max-width: min(960px, 100%); max-height: 90vh; border-radius: var(--radius-md); }
.zoom-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 1.2rem;
}

body.cart-open { overflow: hidden; }

@media (min-width: 1280px) {
  .container { padding-left: 0; padding-right: 0; }
}
