/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --bg:          #F8FAFC; /* Slate 50 */
  --surface:     #FFFFFF;
  --surface-2:   #F1F5F9; /* Slate 100 */
  --border:      #E2E8F0; /* Slate 200 */
  --border-2:    #CBD5E1; /* Slate 300 */
  
  --text:        #0F172A; /* Slate 900 */
  --text-2:      #475569; /* Slate 600 */
  --text-3:      #94A3B8; /* Slate 400 */
  
  --brand:       #c7a346; /* Gold */
  --brand-h:     #ab8b38; /* Dark Gold */
  --brand-faint: #fdfaf3; /* Gold 50 */
  
  --red:         #E11D48; /* Rose 600 */
  --red-faint:   #FFF1F2; /* Rose 50 */
  
  --green:       #16A34A; /* Green 600 */
  --green-faint: #F0FDF4; /* Green 50 */
  
  --orange:      #EA580C; /* Orange 600 */
  --orange-faint:#FFF7ED; /* Orange 50 */
  
  --star:        #F59E0B; /* Amber 500 */
  
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill:999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 35px -5px rgba(199, 163, 70, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.03);
  
  --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-md: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
.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;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.page-shell { width: min(1200px, calc(100% - 32px)); margin-inline: auto; padding-bottom: 64px; }
.backend-notice {
  padding: 14px 0;
  color: var(--text-3);
  font-size: 0.88rem;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-md);
}
/* Mobile: logo + nav on row 1, search full-width on row 2 */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 0 12px;
}
.brand        { grid-column: 1; grid-row: 1; }
.header-nav   { grid-column: 2; grid-row: 1; }
.search-form  { grid-column: 1 / -1; grid-row: 2; max-width: 100%; }
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
  color: #ffffff;
  display: flex; align-items: center; gap: 8px;
}
.brand-accent { color: var(--brand); }
.brand-icon { 
  color: var(--brand); 
  filter: drop-shadow(0 2px 4px rgba(199, 163, 70, 0.3));
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-top: -4px;
  margin-bottom: -4px;
}

.search-form {
  position: relative; max-width: 540px; width: 100%;
  justify-self: center;
}
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
  transition: color var(--t);
}
.search-input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.search-input:focus {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(199, 163, 70, 0.15);
}
.search-input:focus + .search-icon { color: var(--brand); }
.search-input::placeholder { color: var(--text-3); }

.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a { 
  font-size: 0.88rem; font-weight: 500; 
  color: #cbd5e1; 
  transition: color var(--t); 
}
.header-nav a:hover { color: var(--brand); }

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 90;
}
.filter-bar-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; white-space: normal; flex-wrap: wrap;
}

/* Shared pill control style */
.f-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
  -webkit-appearance: none; appearance: none; outline: none;
  box-shadow: var(--shadow-xs);
}
.f-pill:hover { 
  border-color: var(--text-3); 
  color: var(--text); 
  transform: translateY(-1px);
}
.f-pill.active, .f-pill:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-faint);
  box-shadow: 0 0 0 3px rgba(199, 163, 70, 0.1);
}
.f-pill svg { flex-shrink: 0; }

/* Filter toggle button */
.filter-toggle { display: flex; font-weight: 600; }
.f-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; margin: 0 4px; }
.sort-wrap { margin-left: auto; flex-shrink: 0; }
.active-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  overflow: hidden;
}
.active-filter-chip,
.active-filter-empty {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  min-height: 34px;
  padding: 7px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
}
.active-filter-chip {
  color: var(--text);
  background: var(--brand-faint);
  border: 1px solid rgba(199, 163, 70, 0.3);
}
.active-filter-empty {
  color: var(--text-3);
  background: transparent;
  border: 1px dashed var(--border-2);
}
.top-reset-btn[hidden] {
  display: none;
}

/* Legacy inline controls stay hidden; filters live in the drawer. */
.f-inline { display: none; align-items: center; gap: 10px; }
.f-inline select {
  padding: 8px 34px 8px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.category-cascade {
  display: grid;
  gap: 10px;
}
.category-cascade-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.category-cascade-inline .category-select {
  max-width: 220px;
  min-width: 154px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f-price { display: flex; align-items: center; gap: 6px; }
.f-price input {
  width: 78px; padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  outline: none;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.f-price input:focus { 
  border-color: var(--brand); color: var(--text); 
  box-shadow: 0 0 0 3px rgba(199, 163, 70, 0.1);
}
.f-price span { color: var(--text-3); font-size: 0.85rem; }
.f-coupon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  cursor: pointer; user-select: none;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.f-coupon:hover { border-color: var(--text-3); color: var(--text); transform: translateY(-1px); }
.f-coupon input[type=checkbox] { display: none; }
.f-coupon.checked { 
  border-color: var(--green); color: var(--green); background: var(--green-faint); 
}

.sort-select {
  padding: 8px 34px 8px 16px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  -webkit-appearance: none; appearance: none; outline: none; cursor: pointer;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.sort-select:hover { border-color: var(--text-3); color: var(--text); transform: translateY(-1px); }
.sort-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(199, 163, 70, 0.1); }

/* Reset button */
.reset-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  background: transparent; border: none;
  font-size: 0.85rem; font-weight: 600; color: var(--text-3);
  border-radius: var(--r-pill);
  transition: all var(--t);
}
.reset-btn:hover { color: var(--red); background: var(--red-faint); }

/* ── Mobile filter panel ──────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.6);
  display: none; align-items: flex-start; justify-content: flex-start;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--t-md);
}
.overlay[aria-hidden="false"] { display: flex; opacity: 1; }
.filter-panel {
  position: relative; height: 100%; width: min(420px, calc(100vw - 24px));
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--t-md) cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-top-right-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
}
.overlay[aria-hidden="false"] .filter-panel { transform: translateX(0); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-head h2 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.panel-close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-2); background: var(--surface-2);
  transition: background var(--t), color var(--t);
}
.panel-close:hover { background: var(--border); color: var(--text); }
.panel-body { padding: 24px; flex: 1; overflow-y: auto; }
.f-group { margin-bottom: 24px; }
.f-group > label {
  display: block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px;
}
.f-group select,
.f-group input[type=number] {
  width: 100%; padding: 12px 16px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-size: 0.95rem; color: var(--text);
  outline: none; transition: all var(--t);
}
.f-group select:focus,
.f-group input:focus { border-color: var(--brand); background: var(--surface); }
.f-group .f-price-row { display: flex; align-items: center; gap: 12px; }
.f-group .f-price-row input { flex: 1; }
.f-group .f-price-row span { color: var(--text-3); font-size: 0.9rem; }
.f-toggle-label {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t);
}
.f-toggle-label:hover { background: var(--border); }
.f-toggle-label input[type=checkbox] { display: none; }
.f-toggle-label .toggle-track {
  width: 40px; height: 24px; border-radius: var(--r-pill);
  background: var(--border-2);
  position: relative; flex-shrink: 0;
  transition: background var(--t);
}
.f-toggle-label .toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) cubic-bezier(0.34, 1.56, 0.64, 1);
}
.f-toggle-label.checked .toggle-track { background: var(--green); }
.f-toggle-label.checked .toggle-thumb { transform: translateX(16px); }
.f-toggle-label span { font-size: 0.95rem; font-weight: 500; }
.panel-foot {
  display: flex; gap: 12px; padding: 24px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.panel-reset-btn {
  flex: 1; padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 600; color: var(--text-2);
  transition: all var(--t);
}
.panel-reset-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-faint); }
.panel-apply-btn {
  flex: 2; padding: 12px;
  background: var(--brand);
  color: white;
  border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 700;
  transition: background var(--t), transform var(--t);
  box-shadow: 0 4px 12px rgba(199, 163, 70, 0.25);
}
.panel-apply-btn:hover { background: var(--brand-h); transform: translateY(-1px); }

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.home-page {
  padding-top: 28px;
}
.home-intro,
.listing-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 10px;
}
.home-intro > div:first-child,
.listing-hero > div:first-child {
  max-width: 760px;
}
.home-eyebrow,
.listing-eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.home-intro h1,
.listing-hero h1 {
  margin-top: 5px;
  color: var(--text);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.04;
}
.home-intro p,
.listing-hero p {
  margin-top: 12px;
  max-width: 680px;
  color: var(--text-2);
  font-size: 1rem;
}
.home-intro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.listing-page {
  padding-top: 20px;
}
.promo-slider {
  margin: 28px 0 12px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(199, 163, 70, 0.22), rgba(15, 23, 42, 0) 42%),
    linear-gradient(160deg, #111827 0%, #0f172a 58%, #1f2937 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}
.promo-slider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 0;
}
.promo-eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.promo-slider-head h1,
.promo-slider-head h2 {
  margin-top: 4px;
  color: white;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}
.promo-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.promo-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: background var(--t), color var(--t), transform var(--t);
}
.promo-control:hover {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  align-items: center;
  gap: 28px;
  min-height: 330px;
  padding: 18px 28px 30px;
  scroll-snap-align: start;
}
.promo-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}
.promo-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.promo-kickers span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 800;
}
.promo-kickers span:first-child {
  background: var(--red);
  border-color: rgba(255, 255, 255, 0.16);
}
.promo-meta {
  max-width: 100%;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-copy h2,
.promo-copy h3 {
  width: min(650px, 100%);
  margin-top: 8px;
  color: white;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.17;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #e2e8f0;
  flex-wrap: wrap;
}
.promo-rating strong { color: white; }
.promo-rating span {
  color: #cbd5e1;
  font-size: 0.86rem;
}
.promo-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.promo-price-row strong {
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}
.promo-price-row s {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 700;
}
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  width: 100%;
}
.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  color: #111827;
  background: var(--brand);
  border-radius: var(--r-pill);
  font-weight: 800;
  transition: background var(--t), transform var(--t);
}
.promo-cta:hover {
  background: #d7b85d;
  transform: translateY(-1px);
}
.promo-cta svg { flex-shrink: 0; }
.promo-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: all var(--t);
}
.promo-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.promo-cta-secondary svg { flex-shrink: 0; opacity: 0.8; }
.promo-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  aspect-ratio: 1.18;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
}
.promo-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}
.popular-categories {
  padding: 24px 0 8px;
}
.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.category-tile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.category-tile:hover {
  border-color: rgba(199, 163, 70, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.category-tile-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.category-tile-media img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}
.category-tile-icon {
  display: none;
  color: var(--brand);
}
.category-tile-media.has-fallback .category-tile-icon {
  display: inline-flex;
}
.category-tile-copy {
  min-width: 0;
}
.category-tile-copy strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-tile-copy span {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 700;
}
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 30px 0 8px;
}
.home-section,
.similar-section {
  display: block;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px;
}
.section-head h2 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text);
}
.section-head p {
  margin-top: 3px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.section-head a {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
}
.section-head a:hover { color: var(--brand-h); }
.section-grid {
  padding-top: 4px;
}

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 24px 0 8px; flex-wrap: wrap;
}
.result-count { font-size: 0.9rem; font-weight: 500; color: var(--text-2); }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 16px 0;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--t-md);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(199, 163, 70, 0.2);
}

/* Card main link wraps image + content */
.card-main {
  display: flex; flex-direction: column; flex: 1;
  text-decoration: none; color: inherit;
}

/* Image area */
.card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-2);
  overflow: hidden;
  padding: 24px;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--t-md) cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-img { transform: scale(1.08); }

/* Badge overlays */
.badge-disc {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--red); color: white;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--r-pill);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}
.badge-deal {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--r-pill);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.4;
}

/* Card content body */
.card-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.card-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip-coupon { background: var(--green-faint); color: var(--green); border: 1px solid rgba(22, 163, 74, 0.1); }
.chip-low    { background: var(--orange-faint); color: var(--orange); border: 1px solid rgba(234, 88, 12, 0.1); }
.chip-best   { background: var(--red-faint);    color: var(--red); border: 1px solid rgba(225, 29, 72, 0.1); }
.chip-deal   { background: var(--brand-faint);  color: var(--brand); border: 1px solid rgba(199, 163, 70, 0.1); }

.card-name {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 600; line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t);
}
.card-main:hover .card-name { color: var(--brand); }

.card-sub {
  font-size: 0.85rem; color: var(--text-3); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-pricing {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.card-price {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 800; color: var(--brand);
  line-height: 1;
}
.card-was {
  font-size: 0.85rem; color: var(--text-3); text-decoration: line-through; font-weight: 500;
}

.card-rating {
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 6px;
}
.star-row { display: inline-flex; gap: 2px; flex-shrink: 0; }
.card-score { font-size: 0.85rem; font-weight: 700; color: var(--text-2); }
.card-votes { font-size: 0.8rem; color: var(--text-3); }

/* CTA footer */
.card-foot { padding: 0 16px 16px; flex-shrink: 0; }
.card-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--brand);
  border-radius: var(--r-lg);
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  transition: all var(--t);
}
.card:hover .card-btn {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(199, 163, 70, 0.25);
}
.card-btn:active { transform: scale(0.97); }
.card-btn svg { flex-shrink: 0; opacity: 0.8; transition: transform var(--t); }
.card:hover .card-btn svg { transform: translateX(2px); }

/* ── Skeleton ─────────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface-2) 25%, #E2E8F0 50%, var(--surface-2) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skel-img  { width: 100%; aspect-ratio: 1; border-radius: 0; }
.skel-line { height: 14px; margin-bottom: 4px; }
.skel-sm   { height: 12px; }
.skel-price { height: 24px; border-radius: var(--r-sm); }
.skel-btn  { height: 44px; border-radius: var(--r-lg); margin: 8px 16px 16px; }

/* ── States ───────────────────────────────────────────────────────────────── */
.state-card {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 24px; gap: 20px; text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-xl);
}
.state-icon { color: var(--text-3); opacity: 0.6; margin-bottom: 8px; }
.state-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.state-sub { font-size: 0.95rem; color: var(--text-2); max-width: 400px; }
.state-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.btn-ghost {
  padding: 10px 24px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 600; color: var(--text-2);
  transition: all var(--t); cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-solid {
  padding: 10px 24px;
  background: var(--brand); color: white;
  border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 4px 12px rgba(199, 163, 70, 0.25);
}
.btn-solid:hover { background: var(--brand-h); transform: translateY(-1px); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 0 48px;
}
.load-more-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 40px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.load-more-btn:hover:not(:disabled) { 
  border-color: var(--brand); color: var(--brand); 
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(199, 163, 70, 0.15);
}
.load-more-btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.page-info { font-size: 0.85rem; font-weight: 500; color: var(--text-3); }

/* ── Product Detail ───────────────────────────────────────────────────────── */
.detail-page { padding: 32px 0 64px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-2); margin-bottom: 32px;
  transition: all var(--t);
}
.back-link:hover { color: var(--brand); transform: translateX(-4px); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.detail-media {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 500px;
  box-shadow: var(--shadow-sm);
}
.detail-media img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 40px;
  transition: transform var(--t-md);
}
.detail-media:hover img { transform: scale(1.05); }
.thumb-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.thumb-img {
  width: 72px; height: 72px; object-fit: contain; padding: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer;
  transition: all var(--t);
}
.thumb-img:hover, .thumb-img.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(199, 163, 70, 0.2); }
.detail-info { display: flex; flex-direction: column; gap: 20px; }
.detail-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; font-weight: 500; color: var(--text-3);
}
.detail-crumbs a { color: var(--text-2); transition: color var(--t); }
.detail-crumbs a:hover { color: var(--brand); }
.detail-crumbs svg { flex-shrink: 0; color: var(--border-2); }
.detail-brand { font-size: 0.85rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; }
.detail-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; line-height: 1.3; color: var(--text); }
.detail-price-row {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.detail-price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.detail-was { font-size: 1.1rem; font-weight: 500; color: var(--text-3); text-decoration: line-through; }
.detail-disc-badge {
  background: var(--red); color: white;
  font-size: 0.9rem; font-weight: 800;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.detail-rating { display: flex; align-items: center; gap: 10px; }
.detail-rating .card-score { font-size: 1.1rem; }
.detail-rating .card-votes { font-size: 0.95rem; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-chips .chip { font-size: 0.85rem; padding: 6px 14px; }
.detail-description {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.detail-description h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.detail-description p {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.75;
}
.detail-description p + p { margin-top: 10px; }
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-specs div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  min-width: 0;
}
.detail-specs dt {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-specs dd {
  margin-top: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.detail-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px;
  background: var(--brand); color: white;
  border-radius: var(--r-xl);
  font-size: 1.1rem; font-weight: 700;
  transition: all var(--t);
  box-shadow: 0 8px 20px rgba(199, 163, 70, 0.3);
}
.detail-cta:hover { background: var(--brand-h); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(199, 163, 70, 0.4); }
.detail-cta svg { opacity: 0.9; transition: transform var(--t); }
.detail-cta:hover svg { transform: translateX(4px); }
.detail-note { font-size: 0.85rem; color: var(--text-3); font-weight: 500; text-align: center; }
.similar-section { padding-top: 42px; }

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-page { padding: 48px 0 80px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.legal-page h2 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
.legal-page p  { font-size: 1rem; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 24px; text-align: center; gap: 24px; min-height: 60vh;
}
.not-found-code {
  font-family: var(--font-heading);
  font-size: 8rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand), #ab8b38);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 15px rgba(199, 163, 70, 0.2));
}
.not-found h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--text); }
.not-found p  { color: var(--text-2); font-size: 1.1rem; max-width: 400px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
  color: #cbd5e1;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  padding: 36px 0 42px;
}
.footer-copy {
  max-width: 660px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px 20px;
  flex-wrap: wrap;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
}
.footer-links a {
  transition: color var(--t);
  white-space: nowrap;
}
.footer-links a:hover { color: var(--brand); }

/* ── Media queries ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .home-intro,
  .listing-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .home-intro h1,
  .listing-hero h1 {
    font-size: 2.15rem;
  }
  .home-intro-actions {
    justify-content: flex-start;
  }
  .promo-slider-head {
    padding: 20px 20px 0;
  }
  .promo-slide {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 18px 20px 24px;
  }
  .promo-copy h2,
  .promo-copy h3 {
    font-size: 1.55rem;
  }
  .promo-media {
    order: -1;
    min-height: 200px;
    aspect-ratio: 1.4;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .promo-slider {
    margin-top: 20px;
    border-radius: var(--r-lg);
  }
  .promo-slider-head {
    align-items: flex-start;
    padding: 16px 14px 0;
  }
  .promo-slider-head h1,
  .promo-slider-head h2 {
    font-size: 1.08rem;
  }
  .promo-controls {
    gap: 6px;
  }
  .promo-control {
    width: 34px;
    height: 34px;
  }
  .promo-slide {
    gap: 14px;
    padding: 12px 14px 18px;
  }
  .promo-kickers {
    gap: 6px;
    margin-bottom: 8px;
  }
  .promo-kickers span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  .promo-copy h2,
  .promo-copy h3 {
    font-size: 1.16rem;
    -webkit-line-clamp: 3;
  }
  .promo-rating {
    margin-top: 10px;
  }
  .promo-price-row {
    margin-top: 12px;
  }
  .promo-price-row strong {
    font-size: 1.45rem;
  }
  .promo-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 14px;
    gap: 8px;
  }
  .promo-cta,
  .promo-cta-secondary {
    width: 100%;
    margin-top: 0;
    padding: 11px 16px;
  }
  .promo-media {
    order: -1;
    min-height: 160px;
    aspect-ratio: 1.4;
  }
  .category-tile-grid {
    grid-template-columns: 1fr;
  }
  .category-cascade-inline {
    flex-wrap: wrap;
  }
  .section-head { align-items: flex-start; flex-direction: column; }
  .detail-specs { grid-template-columns: 1fr; }
  .footer-inner {
    padding: 30px 0 34px;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
  .detail-grid  { grid-template-columns: minmax(320px, 480px) 1fr; gap: 48px; }
  /* Header: back to single row — logo | search | nav */
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    gap: 32px;
    padding: 16px 0;
  }
  .brand       { grid-column: 1; grid-row: 1; }
  .search-form { grid-column: 2; grid-row: 1; max-width: 480px; justify-self: center; width: 100%; }
  .header-nav  { grid-column: 3; grid-row: 1; }
  .brand-logo  { height: 56px; margin-top: -8px; margin-bottom: -8px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
  .card-name    { font-size: 1.1rem; }
  .detail-title { font-size: 2.2rem; }
}
