/* ── 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:  6px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --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 15px 25px -5px rgba(199, 163, 70, 0.1), 0 10px 10px -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%; }
.ui-icon {
  width: 1.25em; height: 1.25em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.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% - 24px)); margin-inline: auto; }
.page-shell { width: min(1200px, calc(100% - 24px)); margin-inline: auto; padding-bottom: 52px; }
.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: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.nav-drawer-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  color: #fff; background: transparent; cursor: pointer; border: none;
  transition: background var(--t);
  flex-shrink: 0; margin-left: -6px;
}
.nav-drawer-toggle:hover { background: rgba(255,255,255,0.1); }

/* Mobile Drawer Styles */
.nav-drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; opacity: 0; transition: opacity var(--t-md);
}
.nav-drawer-overlay[aria-hidden="false"] { display: block; opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 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);
}
.nav-drawer-overlay[aria-hidden="false"] .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  color: var(--text); flex-shrink: 0;
}
.nav-drawer-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; }
.nav-drawer-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  color: var(--text-2); background: var(--surface-2); transition: all var(--t);
}
.nav-drawer-close:hover { background: var(--border); color: var(--text); }
.nav-drawer-body {
  padding: 24px; display: flex; flex-direction: column; gap: 24px; flex: 1; overflow-y: auto;
}
.nav-drawer-body .search-form { width: 100%; max-width: none; }
.nav-drawer-body .search-input { background: var(--surface); border: 1px solid var(--border-2); }
.nav-drawer-body .search-input:focus { border-color: var(--brand); }
.nav-drawer-body .header-nav { 
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; overflow-x: visible;
}
.nav-drawer-body .header-nav a {
  color: var(--text); font-size: 1.05rem; font-weight: 700; padding: 4px 0;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 800; letter-spacing: 0; white-space: nowrap;
  color: #ffffff;
  display: flex; align-items: center; gap: 6px;
}
.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: 24px;
  width: 24px;
  object-fit: contain;
  border-radius: 50%;
}

.search-form {
  position: relative; max-width: 540px; width: 100%;
  justify-self: center;
}
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
  transition: color var(--t);
}
.search-input {
  width: 100%;
  padding: 6px 12px 6px 32px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  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: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.header-nav a { 
  font-size: 0.8rem; font-weight: 700; 
  color: #f1f5f9; 
  transition: color var(--t); 
  white-space: nowrap;
  padding: 4px 2px;
}
.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: 8px 0; white-space: normal; flex-wrap: wrap;
}

/* Shared pill control style */
.f-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 600;
  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; }

.brand-combobox { position: relative; }
.brand-combobox > select.sr-only { width: 1px; padding: 0; }
.brand-combobox-trigger {
  width: 100%; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-size: 0.95rem; color: var(--text); text-align: left;
  outline: none; transition: all var(--t);
}
.brand-combobox-trigger:hover { background: var(--border); }
.brand-combobox-trigger:focus-visible,
.brand-combobox-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  background: var(--surface);
}
.brand-combobox-trigger svg { flex-shrink: 0; transition: transform var(--t); }
.brand-combobox-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.brand-combobox-dropdown {
  margin-top: 8px; padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.brand-combobox-dropdown[hidden] { display: none; }
.brand-combobox-search { position: relative; }
.brand-combobox-search input {
  width: 100%; padding: 11px 42px 11px 14px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.92rem; color: var(--text);
  outline: none; transition: all var(--t);
}
.brand-combobox-search input:focus { border-color: var(--brand); background: var(--surface); }
.brand-combobox-search svg {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.brand-combobox-options {
  max-height: 260px; overflow-y: auto;
  margin-top: 8px; padding: 2px;
  overscroll-behavior: contain;
}
.brand-combobox-option {
  width: 100%; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--r-sm);
  color: var(--text); text-align: left;
  transition: background var(--t), color var(--t);
}
.brand-combobox-option:hover,
.brand-combobox-option:focus-visible { background: var(--surface-2); outline: none; }
.brand-combobox-option[aria-selected="true"] { background: var(--brand-faint); color: var(--brand); font-weight: 700; }
.brand-combobox-option small { color: var(--text-3); font-size: 0.75rem; }
.brand-combobox-empty { padding: 18px 12px; color: var(--text-3); text-align: center; }
.brand-search-status {
  display: block; min-height: 1em; padding: 4px 4px 0;
  color: var(--text-3);
  font-size: 0.75rem;
}

/* 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);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t);
}
.active-filter-chip:hover { border-color: rgba(199,163,70,.65); background: #fff8df; color: var(--brand-h); transform: translateY(-1px); }
.active-filter-chip:focus-visible { outline: 3px solid rgba(199,163,70,.2); outline-offset: 2px; }
.active-filter-chip span { overflow: hidden; text-overflow: ellipsis; }
.active-filter-chip svg { width: 13px; height: 13px; flex: 0 0 auto; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.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; justify-content: space-between;
  flex-direction: row-reverse;
  padding: 14px 16px !important;
  background: var(--surface) !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--border-2);
  width: 100%;
  cursor: pointer;
  transition: background var(--t);
}
.f-toggle-label:hover { background: var(--surface-2) !important; }
.f-toggle-label input[type=checkbox] { display: none; }
.f-toggle-label .toggle-track {
  display: block;
  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 {
  display: block;
  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:not(.toggle-track):not(.toggle-thumb) { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.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: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
}
.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: 1.6rem;
  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;
}

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

.category-rail {
  padding: 12px 0 4px;
}
.home-category-picker {
  display: grid;
  gap: 16px;
  margin: 14px 0;
  padding: clamp(18px, 2vw, 24px);
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.home-category-picker-head { display: flex; align-items: center; gap: 12px; }
.home-category-picker-head > span:last-child { display: grid; gap: 2px; }
.home-category-picker-head strong { color: var(--text); font-size: .95rem; }
.home-category-picker-head small { color: var(--text-2); font-size: .78rem; font-weight: 500; }
.home-category-picker-icon {
  display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center;
  border: 1px solid rgba(199,163,70,.25); border-radius: 11px;
  background: var(--brand-faint); color: var(--brand-h);
}
.home-category-picker-icon .ui-icon { width: 22px; height: 22px; }
.home-category-picker-controls { display: flex; align-items: end; gap: 12px; min-width: 0; }
.home-category-selects {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  flex: 1; gap: 10px; min-width: 0;
}
.home-category-step { display: grid; min-width: 0; gap: 4px; }
.home-category-step-meta {
  color: var(--text-2);
  font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.home-category-step strong { color: var(--text); font-size: .77rem; }
.home-category-selects .category-select {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 38px 10px 12px;
  overflow: hidden; border: 1px solid var(--border-2); border-radius: 9px;
  background-color: #fff; color: var(--text); font-size: .84rem; font-weight: 650;
  text-overflow: ellipsis;
}
.home-category-selects .category-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(199,163,70,.13); outline: 0; }
.home-category-submit { flex: 0 0 auto; min-height: 48px; gap: 8px; white-space: nowrap; }
.home-category-submit .ui-icon { width: 17px; height: 17px; }
.home-category-path { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.home-category-path-label { margin-right: 3px; color: var(--text-3); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.home-category-path-item { padding: 5px 9px; border: 1px solid rgba(199,163,70,.28); border-radius: 999px; background: #fff; color: var(--text-2); font-size: .72rem; font-weight: 750; }
.home-category-path-item:last-child { border-color: rgba(199,163,70,.55); background: var(--brand-faint); color: var(--brand-h); }
.home-category-path-separator { color: var(--text-3); font-size: .72rem; }
.section-head.compact {
  align-items: center;
  padding-bottom: 8px;
}
.category-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
  padding: 2px 0 8px;
}
.category-pill-grid.is-collapsed {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.category-pill-grid.is-collapsed::-webkit-scrollbar {
  display: none;
}
.category-pill-grid.is-collapsed .category-pill-card {
  flex: 0 0 176px;
  scroll-snap-align: start;
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.category-pill-card.animate-in {
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.category-pill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  transition: all var(--t);
  text-decoration: none;
  color: inherit;
}
.category-pill-card:hover {
  border-color: rgba(199, 163, 70, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.category-pill-media {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.category-pill-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.category-pill-copy {
  min-width: 0;
}
.category-pill-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  line-height: 1.2;
}
.category-pill-copy small {
  display: block;
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 2px;
}
.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;
}

/* ── Horizontal Scroll Rail ─────────────────────────────────────────────── */
.scroll-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 4px 0 16px;
  scrollbar-width: none;
}
.scroll-rail::-webkit-scrollbar {
  display: none;
}
.scroll-rail .rail-item {
  scroll-snap-align: start;
  flex: 0 0 calc(100vw / 2.5 - 16px);
  min-width: 140px;
}
@media (min-width: 600px) {
  .scroll-rail .rail-item { flex: 0 0 calc(100vw / 4 - 20px); }
}
@media (min-width: 900px) {
  .scroll-rail .rail-item { flex: 0 0 calc(100vw / 5 - 20px); }
}
@media (min-width: 1200px) {
  .scroll-rail .rail-item { flex: 0 0 220px; }
}

.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(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  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: 8px;
}
.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: 8px; left: 8px; z-index: 1;
  background: var(--red); color: white;
  font-family: var(--font-heading);
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: var(--r-pill);
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
}
.badge-deal {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 9px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: var(--r-pill);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.2;
}

/* Card content body */
.card-body {
  padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.card-chips {
  display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden;
}
.chip {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 0; text-transform: uppercase;
  padding: 3px 6px; 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-scorebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 5px 8px;
  background: var(--brand-faint);
  border: 1px solid rgba(199, 163, 70, 0.22);
  border-radius: var(--r-sm);
}
.card-scorebox span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-scorebox strong {
  color: var(--brand-h);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 0.84rem; font-weight: 700; line-height: 1.28;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t);
  min-height: calc(1.28em * 2);
}
.card-main:hover .card-name { color: var(--brand); }

.card-sub {
  font-size: 0.76rem; color: var(--text-3); font-weight: 600;
  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: 0.98rem; font-weight: 800; color: var(--brand);
  line-height: 1;
}
.card-was-wrap {
  display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap;
}
.card-was {
  font-size: 0.85rem; color: var(--text-3); text-decoration: line-through; font-weight: 500;
}
.card-was-label {
  font-size: 0.66rem; color: var(--text-3); font-weight: 600; text-transform: none;
}
.card-signals {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-signals { font-size: 0.85rem; white-space: normal; }

.card-price-note,
.card-countdown {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}
.card-countdown { color: var(--red); }
.price-range {
  position: relative;
  display: block;
  padding-top: 9px;
}
.price-range::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--green-faint), var(--orange-faint), var(--red-faint));
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.price-range > span {
  position: absolute;
  top: 5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--brand);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}
.price-range small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.card-rating {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; 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 8px 8px; flex-shrink: 0; }
.card-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 7px 8px;
  background: var(--surface-2);
  color: var(--brand);
  border-radius: var(--r-sm);
  font-size: 0.75rem; font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  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; }
.home-deferred[aria-busy="true"] {
  content-visibility: auto;
  contain-intrinsic-size: 1400px;
}
.home-section-skeleton {
  pointer-events: none;
}
.skeleton-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.more-products-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── 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-btn {
  width: 72px; height: 72px; padding: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer;
  transition: all var(--t);
}
.thumb-btn .thumb-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.thumb-btn:hover, .thumb-btn.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.5rem; 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: 2rem; 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; }

.deal-insight-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
}
.detail-scorebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detail-scorebox span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}
.detail-scorebox strong {
  color: var(--brand-h);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}
.detail-scorebox small {
  color: var(--text-3);
  font-size: 0.9rem;
}
.deal-insight-list {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.detail-range {
  padding-top: 12px;
}
.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; }

.content-hero,
.content-band,
.auth-panel,
.account-hero,
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
}

/* ── Quick Filter Pills ───────────────────────────────────────────────────── */
.quick-filter-pills {
  display: flex; gap: 8px; margin-top: 8px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px;
}
.quick-filter-pills::-webkit-scrollbar { display: none; }
.quick-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border-2);
  font-size: 0.85rem; font-weight: 700; color: var(--text); white-space: nowrap;
  box-shadow: var(--shadow-xs); transition: all var(--t);
}
.quick-filter-pill:hover {
  border-color: var(--brand); color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(199, 163, 70, 0.1);
}
.quick-filter-pill .ui-icon { color: var(--brand-h); font-size: 1.05rem; }
.content-hero,
.content-band {
  display: block;
  padding: 22px;
  margin: 18px auto;
}
.content-hero h1,
.content-band h1,
.auth-panel h1,
.account-hero h1,
.article-content h1 {
  font-size: 1.55rem;
  line-height: 1.18;
  color: var(--text);
}
.content-hero p,
.content-band p,
.auth-panel p,
.account-hero p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.94rem;
}
.section-eyebrow,
.listing-eyebrow {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 800;
}
.btn-solid {
  background: var(--brand);
  color: white;
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.auth-page {
  display: grid;
  place-items: start center;
  padding-top: 24px;
}
.auth-panel {
  width: min(100%, 460px);
  padding: 22px;
}
.stack-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}
.stack-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
}
.stack-form textarea {
  min-height: 108px;
  resize: vertical;
}
.form-row {
  display: grid;
  gap: 12px;
}
.form-alert,
.form-success {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 800;
}
.form-alert {
  background: var(--red-faint);
  color: var(--red);
}
.form-success {
  background: var(--green-faint);
  color: var(--green);
}
.auth-switch {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.auth-switch a,
.text-link {
  color: var(--brand-h);
  font-weight: 800;
}
.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  margin-top: 18px;
}
.metric-grid,
.info-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.metric-card,
.info-card,
.blog-card,
.empty-panel {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
}
.metric-card span,
.blog-card span {
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-h);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
}
.metric-card p,
.info-card p,
.blog-card p,
.empty-panel p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.content-section {
  padding: 18px;
  margin: 18px 0;
}
.leaderboard-list {
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: none;
}
.leaderboard-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.leaderboard-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--brand);
  border-radius: 999px;
  font-weight: 900;
}
.leaderboard-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-card h2 {
  margin-top: 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}
.article-content {
  width: min(760px, 100%);
  margin: 22px auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.article-excerpt {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 700;
}
.article-body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  color: var(--text-2);
  line-height: 1.75;
}
.seller-layout {
  display: grid;
  gap: 18px;
}
.seller-form {
  width: 100%;
}
.faq-strip {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.faq-strip article {
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

.listing-hero {
  padding: 16px 0 6px;
}
.listing-hero h1 {
  font-size: 1.6rem;
  line-height: 1.16;
}
.listing-hero p {
  font-size: 0.9rem;
}

/* ── 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: 1.6rem;
  }
  .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-slider .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) {
  .home-category-picker { padding: 16px; }
  .home-category-picker-controls { align-items: stretch; flex-direction: column; }
  .home-category-selects { grid-template-columns: 1fr; width: 100%; }
  .home-category-selects .category-select { font-size: 16px; }
  .home-category-submit { width: 100%; }
  .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-slider .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(190px, 1fr)); gap: 16px; }
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .detail-grid  { grid-template-columns: minmax(320px, 480px) 1fr; gap: 48px; }
  /* Header: back to single row — logo | search | nav */
  .nav-drawer-toggle,
  .nav-drawer-head { display: none !important; }
  
  .nav-drawer-overlay,
  .nav-drawer-panel,
  .nav-drawer-body {
    display: contents;
  }

  .header-inner {
    display: grid;
    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%; margin: 0; }
  .nav-drawer-body .header-nav { grid-column: 3; grid-row: 1; flex-direction: row; align-items: center; gap: 10px; }
  .nav-drawer-body .header-nav a { color: #f1f5f9; font-size: 0.8rem; }
  .brand       { font-size: 1.5rem; }
  .brand-logo  { width: 56px; height: 56px; margin-top: -8px; margin-bottom: -8px; }
  .listing-hero h1 { font-size: 2.25rem; }
  .listing-hero p { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .seller-layout { grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr); align-items: start; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
  .card-name    { font-size: 1.1rem; }
  .detail-title { font-size: 2.2rem; }
}

/* Administration */
.admin-page { padding-top: 28px; padding-bottom: 50px; }
.admin-header { display: grid; gap: 18px; margin-bottom: 22px; }
.admin-header h1 { margin: 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 750; }
.admin-nav a[aria-current="page"] { color: #fff; background: var(--text); border-color: var(--text); }
.admin-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.admin-card h2 { margin-top: 0; }
.admin-content-group { margin: 28px 0 4px; padding-top: 20px; border-top: 1px solid var(--border); }
.admin-site-content-form label > span > small { margin-left: 6px; color: var(--text-muted); font-family: monospace; font-weight: 400; }
.admin-grid-two { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.4fr); gap: 18px; align-items: start; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; }
.admin-form-grid label,.admin-editor-form label { display: grid; gap: 6px; font-weight: 700; }
.admin-span { grid-column: 1/-1; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.admin-list-item small,.admin-table-wrap small { display: block; margin-top: 3px; color: var(--text-3); }
.admin-inline-form,.admin-search { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-inline-form input,.admin-search input { flex: 1; }
.admin-table-wrap { overflow-x: auto; margin-top: 16px; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; }
.admin-table-wrap th,.admin-table-wrap td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--surface-2); }
.rich-toolbar button { padding: 5px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.rich-editor { display: block; min-height: 220px; padding: 14px; border: 1px solid var(--border); border-radius: 0 0 var(--r-sm) var(--r-sm); background: #fff; font-weight: 400; overflow: auto; }
.recalc-box { margin-top: 20px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.recalc-box progress { width: min(360px,100%); margin: 0 10px; }
.admin-editor-form fieldset { display: grid; gap: 10px; border: 1px solid var(--border); border-radius: var(--r-sm); }
@media (max-width: 860px) { .admin-grid-two { grid-template-columns: 1fr; } .admin-inline-form,.admin-search { flex-direction: column; } }

/* Mobile storefront reference styling */
.mobile-header-actions,
.mobile-bottom-nav { display: none; }

.home-section-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.home-section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: var(--brand);
}
.home-section-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-section-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  color: var(--brand-h) !important;
  font-weight: 850 !important;
  white-space: nowrap;
}
.home-section-all span { font-size: 1.2em; }
.home-rail-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 5px;
  margin-top: -4px;
}
.home-rail-dots span {
  width: 28px;
  height: 4px;
  background: #e8edf3;
  border-radius: 99px;
  transition: width var(--t), background var(--t);
}
.home-rail-dots span.is-active { width: 42px; background: var(--brand); }

.card {
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
}
.card-img-wrap { padding: 12px; background: #fff; }
.badge-disc { top: 10px; left: 10px; padding: 5px 10px; font-size: 0.72rem; }
.badge-deal {
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 145px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.94);
  font-size: 0.69rem;
  font-weight: 750;
}
.card-body { gap: 8px; padding: 12px; }
.card-scorebox {
  position: relative;
  min-height: 0;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.card-scorebox::after,
.card-scorebox::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 99px;
}
.card-scorebox::after { z-index: 0; width: 100%; background: #f3e9ca; }
.card-scorebox::before { z-index: 1; width: 68%; background: var(--brand); }
.card-scorebox > span:first-child {
  color: var(--brand-h);
  font-size: 0.82rem;
  font-weight: 850;
}
.card-scorebox .card-score-value {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  color: var(--brand-h);
  overflow: visible;
}
.card-scorebox .card-score-value strong { color: currentColor; font-size: 1.1rem; }
.card-scorebox .card-score-value small { color: var(--text-3); font-size: 0.65rem; font-weight: 800; }
.card-scorebox.score-strong::before { width: 82%; }
.card-scorebox.score-excellent::before { width: 94%; background: var(--green); }
.card-scorebox.score-excellent > span:first-child,
.card-scorebox.score-excellent .card-score-value { color: var(--green); }
.card-name { font-size: 0.92rem; font-weight: 800; line-height: 1.35; min-height: calc(1.35em * 2); }
.card-sub { font-size: 0.76rem; }
.card-pricing { margin-top: 5px; }
.card-price { font-size: 1.08rem; color: var(--brand-h); }
.card-price-note { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 0.74rem; }
.card-price-note::before { content: "▥"; font-size: 0.95rem; transform: rotate(90deg); }
.card-chips { gap: 6px; margin-top: 1px; }
.chip { padding: 5px 8px; font-size: 0.65rem; text-transform: none; }
.card-rating { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.card-foot { padding: 0 12px 12px; }
.card-btn {
  min-height: 40px;
  padding: 9px 10px;
  background: #fff;
  color: var(--brand-h);
  border: 1px solid var(--brand);
  border-radius: 9px;
  font-size: 0.78rem;
}
.card:hover .card-btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.home-section-best-ranked .card-btn {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(105deg, #b88b0d, #ddb42c);
  box-shadow: 0 5px 12px rgba(199, 163, 70, 0.25);
}
.home-section .price-range { display: none; }

@media (max-width: 639px) {
  body { padding-bottom: 86px; }
  .wrap,
  .page-shell { width: min(100% - 22px, 1200px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-header {
    border-bottom: 0;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(110deg, #071326, #0f172a);
  }
  .header-inner { gap: 10px; min-height: 70px; padding: 12px 2px; }
  .nav-drawer-toggle { width: 42px; height: 42px; margin-left: 0; }
  .nav-drawer-toggle svg { width: 29px; height: 29px; }
  .brand { gap: 8px; font-size: 1.28rem; }
  .brand-logo { width: 36px; height: 36px; border-radius: 0; }
  .mobile-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .mobile-header-actions a { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; }
  .mobile-header-actions svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-header-actions .notification-icon { color: var(--brand); }
  .home-page { padding-top: 18px; }
  .home-sections { gap: 42px; padding-top: 22px; }
  .home-section .section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
  }
  .home-section-heading { gap: 9px; }
  .home-section-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .home-section-icon svg { width: 36px; height: 36px; }
  .home-section .section-head h2 { font-size: 1.25rem; line-height: 1.1; }
  .home-section .section-head p { max-width: 250px; margin-top: 4px; font-size: 0.72rem; line-height: 1.35; }
  .home-section-all { font-size: 0.75rem !important; }
  .scroll-rail { gap: 10px; padding: 3px 0 14px; }
  .scroll-rail .rail-item { flex-basis: calc((100% - 10px) / 2); min-width: 0; }
  .card-img-wrap { padding: 8px; }
  .card-body { gap: 6px; padding: 9px; }
  .card-scorebox { padding-bottom: 8px; }
  .card-scorebox > span:first-child { max-width: 70px; font-size: 0.72rem; }
  .card-scorebox .card-score-value strong { font-size: 1rem; }
  .card-name { font-size: 0.8rem; }
  .card-price { font-size: 0.98rem; }
  .card-price-note { font-size: 0.68rem; }
  .chip { padding: 4px 6px; font-size: 0.58rem; }
  .card-rating { gap: 4px; }
  .card-foot { padding: 0 9px 9px; }
  .card-btn { min-height: 38px; font-size: 0.7rem; }
  .home-rail-dots { margin-top: 0; }
  .site-footer { margin-bottom: 0; }
  .mobile-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 9px 8px 8px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav a { display: grid; place-items: center; gap: 3px; color: #64748b; font-size: 0.58rem; font-weight: 650; }
  .mobile-bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--brand); }
  .mobile-bottom-nav a[aria-current="page"] svg { fill: currentColor; stroke: currentColor; }
}

/* ── Image-first promotional highlights ─────────────────────────────────── */
.promo-boxes { margin-top: 12px; }
.promo-boxes-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 176px; grid-auto-flow: dense; gap: 16px; }
.promo-box { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(15,23,42,.08); border-radius: var(--r-xl); color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 8px 22px rgba(15,23,42,.08); transition: transform var(--t),box-shadow var(--t); }
.promo-box:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15,23,42,.16); }
.promo-box--large { grid-column: span 2; grid-row: span 2; }
.promo-box--wide { grid-column: span 2; }
.promo-box--tall { grid-row: span 2; }
.promo-box--slider { grid-column: span 2; grid-row: span 2; }
.promo-box-media { position: absolute; inset: 0; display: block; margin: 0; background: transparent; }
.promo-box-media img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transition: transform var(--t-md); }
.promo-box:hover .promo-box-media img { transform: scale(1.025); }
.promo-box:not(.has-image)::after { position: absolute; inset: 0; background: radial-gradient(circle at 75% 15%,rgba(255,255,255,.2),transparent 38%); content: ""; }
.promo-box--slider { display: block; transform: none; }
.promo-box--slider:hover { transform: none; }
.promo-hero-track { display: flex; width: 100%; height: 100%; transition: transform .55s ease; }
.promo-hero-slide { position: relative; display: block; flex: 0 0 100%; min-width: 0; height: 100%; color: #fff; }
.promo-hero-slide .promo-box-media img { transition: none; }
.promo-hero-arrow { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(15,23,42,.42); color: #fff; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(6px); transition: background var(--t); }
.promo-hero-arrow:hover { background: rgba(15,23,42,.68); }
.promo-hero-arrow--prev { left: 14px; }
.promo-hero-arrow--next { right: 14px; }
.promo-hero-dots { position: absolute; bottom: 12px; left: 50%; z-index: 2; display: flex; gap: 7px; transform: translateX(-50%); }
.promo-hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: background var(--t),transform var(--t); }
.promo-hero-dot.is-active { background: #fff; transform: scale(1.25); }
.promo-box--blue   { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.promo-box--ocean  { background: linear-gradient(135deg, #0E7490, #06B6D4); }
.promo-box--sunset { background: linear-gradient(135deg, #EA580C, #F59E0B); }
.promo-box--berry  { background: linear-gradient(135deg, #BE185D, #EC4899); }
.promo-box--forest { background: linear-gradient(135deg, #15803D, #22C55E); }
.promo-box--gold   { background: linear-gradient(135deg, #A16207, #C7A346); }
.promo-box--slate  { background: linear-gradient(135deg, #1E293B, #475569); }
.home-seo-note { max-width: 760px; margin-top: 8px; }
.home-seo-note p:last-child { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 900px) {
  .promo-boxes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 165px; }
}
@media (max-width: 560px) {
  .promo-boxes { margin-inline: -11px; overflow: hidden; }
  .promo-boxes-grid { display: flex; gap: 12px; overflow-x: auto; padding: 2px 11px 16px; scroll-padding-inline: 11px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .promo-boxes-grid::-webkit-scrollbar { display: none; }
  .promo-box,.promo-box--large,.promo-box--wide,.promo-box--tall,.promo-box--slider { flex: 0 0 84%; min-height: 220px; aspect-ratio: 4/3; scroll-snap-align: start; }
}
@media (prefers-reduced-motion:reduce) { .promo-box,.promo-box-media img,.promo-hero-track { transition: none; } }

/* ── 2026 sitewide visual system refresh ────────────────────────────────── */
:root {
  --bg: #f5f7fb;
  --surface-2: #f2f4f8;
  --border: #e1e6ee;
  --border-2: #cbd3df;
  --text: #111a2d;
  --text-2: #536075;
  --text-3: #8792a5;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 15px;
  --r-xl: 20px;
  --shadow-xs: 0 1px 3px rgba(15,23,42,.045);
  --shadow-sm: 0 7px 20px rgba(15,23,42,.055);
  --shadow-md: 0 15px 32px rgba(15,23,42,.09);
  --shadow-lg: 0 25px 52px rgba(15,23,42,.13);
  --shadow-hover: 0 18px 38px rgba(15,23,42,.12);
}
html { scroll-padding-top: 100px; }
body { overflow-x: clip; background: radial-gradient(circle at 8% 0,rgba(199,163,70,.06),transparent 28rem),var(--bg); }
::selection { background: rgba(199,163,70,.28); color: var(--text); }
:where(a,button,input,select,textarea,[contenteditable="true"]):focus-visible { outline: 3px solid rgba(199,163,70,.35); outline-offset: 3px; }
.wrap,.page-shell { width: min(1240px,calc(100% - 32px)); }
.page-shell { padding-bottom: 72px; }
.site-header { border-bottom-color: rgba(255,255,255,.07); background: rgba(12,20,37,.96); box-shadow: 0 5px 22px rgba(10,16,30,.14); }
.header-inner { min-height: 72px; }
.brand { letter-spacing: -.02em; }.brand-logo { border-radius: 0; }
.search-input { min-height: 42px; padding-inline: 38px 16px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.1); }
.header-nav a { position: relative; padding: 8px 2px; }.header-nav a::after { position: absolute; right: 50%; bottom: 1px; left: 50%; height: 2px; border-radius: 2px; background: var(--brand); content: ""; transition: left var(--t),right var(--t); }.header-nav a:hover::after { right: 0; left: 0; }
.backend-notice { margin-top: 12px; padding: 10px 14px; border: 1px solid #e3e7ee; border-radius: var(--r-md); background: rgba(255,255,255,.7); }
.content-hero,.content-band,.auth-panel,.account-hero,.content-section,.article-content { border-color: rgba(209,216,228,.9); border-radius: var(--r-xl); box-shadow: 0 10px 30px rgba(15,23,42,.055); }
.content-hero,.content-band { position: relative; overflow: hidden; padding: clamp(24px,4vw,48px); margin-block: 24px; background: linear-gradient(135deg,#fff 0%,#fff 58%,#f7f2e6 100%); }
.content-hero::after,.content-band::after { position: absolute; top: -90px; right: -70px; width: 260px; height: 260px; border: 1px solid rgba(199,163,70,.12); border-radius: 50%; box-shadow: 0 0 0 34px rgba(199,163,70,.035),0 0 0 68px rgba(199,163,70,.025); content: ""; pointer-events: none; }
.content-hero > *,.content-band > * { position: relative; z-index: 1; }
.content-hero h1,.content-band h1,.auth-panel h1,.account-hero h1,.article-content h1 { max-width: 22ch; font-size: clamp(1.75rem,4vw,2.65rem); letter-spacing: -.025em; text-wrap: balance; }
.content-hero p,.content-band p,.auth-panel p,.account-hero p { max-width: 68ch; font-size: clamp(.92rem,1.4vw,1.02rem); line-height: 1.7; }
.section-eyebrow,.listing-eyebrow { margin-bottom: 6px; color: var(--brand-h); font-size: .69rem; letter-spacing: .1em; }
.btn-solid,.btn-ghost { min-height: 44px; padding: 10px 17px; border-radius: 10px; transition: transform var(--t),box-shadow var(--t),border-color var(--t),background var(--t); }
.btn-solid { background: linear-gradient(135deg,#d4b557,#bc9535); color: #171717; box-shadow: 0 8px 18px rgba(199,163,70,.2); }.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(199,163,70,.28); }
.btn-ghost { background: #fff; border-color: #d9dfe8; box-shadow: var(--shadow-xs); }.btn-ghost:hover { border-color: rgba(199,163,70,.6); background: #fffdf7; color: #87681d; }
.home-page { padding-top: 24px; }.home-sections { gap: 50px; padding-top: 40px; }.home-section { scroll-margin-top: 100px; }
.section-head { padding-bottom: 17px; }.section-head h2 { font-size: clamp(1.35rem,2vw,1.65rem); letter-spacing: -.015em; }.section-head p { margin-top: 5px; color: #69758a; line-height: 1.5; }
.home-category-picker { margin: 18px 0; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg,#f8fafc,#eef2f7); }
.home-category-picker .category-select { min-height: 46px; border-radius: 9px; background: #fff; }
.quick-filter-pills { gap: 10px; padding: 3px 1px 7px; }.quick-filter-pill { min-height: 40px; padding: 8px 14px; border-color: #d9dfe8; background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(15,23,42,.04); }
.category-pill-grid { gap: 12px; }.category-pill-card { min-height: 72px; padding: 11px 13px; border-radius: 12px; }.category-pill-media { width: 46px; height: 46px; border-radius: 9px; background: #f5f7fa; }.category-pill-card:hover { border-color: rgba(199,163,70,.58); box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.listing-hero {
  position: relative; display: block; margin: 24px 0 12px;
  padding: clamp(28px, 3.2vw, 40px); overflow: hidden;
  border: 1px solid rgba(209,216,228,.9); border-radius: var(--r-xl);
  background: linear-gradient(135deg,#fff 0%,#fff 58%,#f7f2e6 100%);
  color: var(--text); box-shadow: 0 10px 30px rgba(15,23,42,.055);
}
.listing-hero::after {
  position: absolute; top: -90px; right: -70px; width: 260px; height: 260px;
  border: 1px solid rgba(199,163,70,.12); border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(199,163,70,.035),0 0 0 68px rgba(199,163,70,.025);
  content: ""; pointer-events: none;
}
.listing-hero > * { position: relative; z-index: 1; }
.listing-hero h1 { max-width: 22ch; color: var(--text); font-size: clamp(1.8rem,3.6vw,2.4rem); letter-spacing: -.025em; text-wrap: balance; }
.listing-hero p { max-width: 68ch; color: var(--text-2); font-size: clamp(.92rem,1.4vw,1.02rem); line-height: 1.7; }
.listing-hero .listing-eyebrow { color: var(--brand-h); letter-spacing: .11em; }
.filter-bar { border-color: #e2e7ef; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(15,23,42,.04); backdrop-filter: blur(14px); }
.filter-bar.is-filtered { border-bottom-color: rgba(199,163,70,.38); box-shadow: 0 8px 24px rgba(15,23,42,.07); }
.toolbar { padding-top: 28px; }.result-count { padding: 7px 11px; border-radius: 999px; background: #edf1f6; color: #5f6b7e; font-size: .8rem; font-weight: 750; }
.category-tile,.category-pill-card { background: rgba(255,255,255,.96); }
.card { border-color: #e0e5ed; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,23,42,.055); }.card:hover { border-color: rgba(199,163,70,.38); transform: translateY(-5px); }.card-img-wrap { background: linear-gradient(145deg,#fafbfc,#f0f3f7); }.card-body { padding: 12px; gap: 7px; }.card-scorebox { border-radius: 9px; }.card-foot { padding: 0 12px 12px; }.card-btn { border-radius: 9px; }
.detail-page { padding-top: 26px; }.detail-grid { padding: clamp(18px,3vw,32px); border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; box-shadow: 0 14px 38px rgba(15,23,42,.07); }.detail-media { border-radius: var(--r-lg); background: linear-gradient(145deg,#fbfcfd,#eef2f6); }.detail-title { letter-spacing: -.02em; text-wrap: balance; }.detail-cta { min-height: 56px; background: linear-gradient(135deg,#d3b354,#b78d2d); color: #171717; box-shadow: 0 12px 25px rgba(199,163,70,.24); }.detail-cta:hover { background: linear-gradient(135deg,#dcc16d,#c49d3d); color: #111; }
.auth-page { min-height: 70vh; padding-top: 36px; }.auth-panel { padding: clamp(25px,4vw,38px); }.stack-form { gap: 17px; }.stack-form label { gap: 8px; font-size: .8rem; }.stack-form input,.stack-form textarea,.stack-form select { min-height: 48px; padding: 11px 13px; border-color: #cfd6e1; border-radius: 10px; transition: border var(--t),box-shadow var(--t); }.stack-form input:focus,.stack-form textarea:focus,.stack-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(199,163,70,.13); }.stack-form textarea { min-height: 125px; }
.account-hero { padding: clamp(22px,3vw,34px); margin-top: 25px; }.metric-grid,.info-grid,.blog-grid { gap: 16px; margin-block: 22px; }.metric-card,.info-card,.blog-card,.empty-panel { padding: 20px; border-radius: var(--r-lg); box-shadow: 0 7px 22px rgba(15,23,42,.045); transition: transform var(--t),box-shadow var(--t); }.info-card:hover,.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }.info-card p,.blog-card p,.metric-card p { line-height: 1.65; }.blog-card h2 { font-size: 1.2rem; }
.content-section { padding: clamp(22px,3vw,34px); margin-block: 22px; }.article-content { width: min(820px,100%); margin-block: 28px; padding: clamp(25px,5vw,54px); }.article-excerpt { font-size: 1.08rem; line-height: 1.65; }.article-body { gap: 18px; font-size: 1rem; line-height: 1.85; }.article-body h2 { margin-top: 18px; color: var(--text); font-size: 1.55rem; }.article-body a { color: var(--brand-h); text-decoration: underline; text-underline-offset: 3px; }
.legal-page { max-width: 840px; margin-block: 30px; padding: clamp(26px,5vw,54px); border: 1px solid var(--border); border-radius: var(--r-xl); background: #fff; box-shadow: 0 12px 34px rgba(15,23,42,.055); }.legal-page h1 { font-size: clamp(2rem,4vw,2.75rem); letter-spacing: -.025em; }.legal-page h2 { margin-top: 34px; font-size: 1.35rem; }.legal-page p { color: #536075; line-height: 1.85; }
.faq-strip { gap: 12px; margin-top: 22px; }.faq-strip article { padding: 17px; border: 1px solid #e0e5ed; border-radius: 11px; background: #f8fafc; }.leaderboard-list li { padding: 13px; border: 1px solid #e5e9ef; border-radius: 10px; background: #f8fafc; }
.not-found { min-height: 66vh; }.not-found-code { font-size: clamp(6rem,18vw,10rem); }.not-found h1 { font-size: clamp(1.7rem,4vw,2.5rem); }
.site-footer { margin-top: 20px; background: linear-gradient(145deg,#10182b,#0b1221); }.footer-inner { padding-block: 44px; }.footer-links { line-height: 1.8; }.footer-social a { transition: color var(--t),transform var(--t); }.footer-social a:hover { color: var(--brand); transform: translateY(-2px); }
@media (max-width:860px) { .promo-slider .promo-media { order: -1; min-height: 200px; aspect-ratio: 1.4; }.content-hero,.content-band { padding: 28px 24px; }.detail-grid { padding: 18px; } }
@media (max-width:639px) {
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .wrap,.page-shell { width: min(100% - 22px,1240px); }
  .site-header { border-radius: 0 0 20px 20px; }
  .home-page { padding-top: 20px; }.home-sections { gap: 44px; }
  .content-hero,.content-band { margin-block: 18px; padding: 24px 20px; border-radius: 16px; }.content-hero::after,.content-band::after { opacity: .6; }
  .listing-hero { margin: 18px 0 10px; padding: 24px 20px; border-radius: 16px; }
  .listing-hero h1 { font-size: 1.8rem; }
  .home-category-picker { padding: 15px; }.category-pill-card { min-height: 66px; }
  .card { border-radius: 12px; }.card-body { padding: 9px; }.card-foot { padding: 0 9px 9px; }
  .auth-page { padding-top: 22px; }.auth-panel { padding: 22px 20px; border-radius: 15px; }
  .legal-page { margin-block: 18px; padding: 24px 20px; border-radius: 15px; }.legal-page h1 { margin-bottom: 20px; }
  .article-content { margin-block: 18px; padding: 25px 20px; border-radius: 15px; }
  .metric-grid,.info-grid,.blog-grid { grid-template-columns: 1fr; }.account-hero { align-items: flex-start; flex-direction: column; }
  .mobile-bottom-nav { bottom: max(10px,env(safe-area-inset-bottom)); border-radius: 20px; box-shadow: 0 15px 38px rgba(15,23,42,.2); }
  .footer-inner { padding-bottom: 40px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }.card,.card-img,.btn-solid,.btn-ghost,.info-card,.blog-card,.footer-social a { transition: none; } }

/* ── Footer social links ─────────────────────────────────────────────────── */
.footer-social {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 4px 0;
}
.footer-social-title { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); transition: all var(--t);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* ── Desktop inline brand combobox ───────────────────────────────────────── */
.brand-combobox-inline .brand-combobox-trigger {
  width: auto; padding: 8px 14px;
  font-size: 0.85rem;
  background: var(--surface-2);
  gap: 8px;
}
.brand-combobox-inline .brand-combobox-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: 300px; max-width: 80vw;
}
.brand-combobox-inline .brand-combobox-options { max-height: 280px; overflow-y: auto; }

/* Listing and taxonomy components */
.filter-bar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding-block: 8px;
}
.f-divider { display: none; }
.filter-toggle { min-height: 40px; }
.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #111827;
  font-size: .7rem;
  font-weight: 850;
}
.active-filter-chips {
  flex: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.active-filter-chips::-webkit-scrollbar { display: none; }
.top-reset-btn { min-height: 38px; }
.top-reset-btn .ui-icon { width: 14px; height: 14px; }
.sort-wrap { margin-left: 0; }
.sort-select { min-height: 40px; padding-block: 8px; background-color: #fff; }

.category-rail { padding: 14px 0 6px; }
.category-rail-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 12px;
  overflow-x: auto;
  padding: 3px 2px 14px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c8cfda transparent;
}
.category-rail-scroll .category-pill-card { scroll-snap-align: start; }
.category-pill-card.is-active { position: relative; padding-right: 54px; border-color: rgba(199,163,70,.72); background: linear-gradient(135deg,#fffdf6,#fff7dc); box-shadow: 0 9px 22px rgba(151,113,24,.12), inset 0 0 0 1px rgba(199,163,70,.12); }
.category-pill-card.is-active .category-pill-media { border-color: rgba(199,163,70,.34); background: #fff; color: var(--brand-h); }
.category-pill-state { position: absolute; top: 9px; right: 9px; padding: 3px 6px; border-radius: 999px; background: var(--brand); color: #111827; font-size: .58rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.category-pill-state[hidden] { display: none; }
.category-rail-all.is-active { border-color: rgba(199,163,70,.55); background: var(--brand-faint); color: var(--brand-h); }
.category-pill-icon { color: var(--brand-h); }
.category-pill-icon .ui-icon { width: 25px; height: 25px; }
.category-pill-copy strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.category-all-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--brand-h);
  font-size: .85rem;
  font-weight: 800;
}
.category-all-link .ui-icon { width: 16px; height: 16px; }

.content-band { padding: clamp(28px, 3.2vw, 40px); }
.content-band h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }

.listing-results-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 26px 0 4px; padding: 20px 22px;
  border: 1px solid #e0e5ed; border-radius: 15px;
  background: rgba(255,255,255,.78); box-shadow: 0 7px 20px rgba(15,23,42,.04);
}
.listing-results-header.is-filtered { border-color: rgba(199,163,70,.38); background: linear-gradient(135deg,#fffdf8,#f7f9fc); box-shadow: 0 10px 25px rgba(15,23,42,.055); }
.listing-results-copy { min-width: 0; }
.listing-results-eyebrow { margin: 0 0 4px; color: var(--text-3); font-size: .66rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.listing-results-header.is-filtered .listing-results-eyebrow { color: var(--brand-h); }
.listing-results-header h2 { margin: 0; color: var(--text); font: 800 clamp(1.25rem,2vw,1.55rem)/1.16 var(--font-heading); letter-spacing: -.018em; text-wrap: balance; }
.listing-results-header p:last-child { margin: 6px 0 0; color: var(--text-2); font-size: .82rem; line-height: 1.5; }
.listing-results-header .result-count { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #e0e5ed; background: #fff; }
.listing-context-breadcrumbs { margin: 18px 0 -8px; }
.listing-context-breadcrumbs .detail-crumbs { margin: 0; }
.listing-page.has-active-filters .listing-hero { margin-top: 18px; padding-block: clamp(22px,2.5vw,30px); }
.listing-page.has-active-filters .listing-banner-slide h1,
.listing-page.has-active-filters .listing-banner-slide h2 { font-size: clamp(1.65rem,3vw,2.05rem); }

@media (max-width: 639px) {
  .filter-bar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0;
    gap: 8px;
    padding-block: 10px;
  }
  .f-divider { display: none; }
  .filter-toggle { grid-column: 1; grid-row: 1; }
  .sort-wrap { grid-column: 3; grid-row: 1; }
  .top-reset-btn { grid-column: 2; grid-row: 1; width: 36px; min-width: 36px; padding: 0; justify-self: end; font-size: 0; }
  .top-reset-btn .ui-icon { width: 16px; height: 16px; }
  .active-filter-chips {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 7px;
  }
  .active-filter-chip,
  .active-filter-empty { min-height: 32px; padding: 6px 10px; font-size: .76rem; }
  .sort-select { width: 150px; font-size: .8rem; }
  .category-rail { padding-top: 10px; }
  .category-rail .section-head { flex-direction: row; align-items: center; }
  .category-rail .section-head p { display: none; }
  .category-rail-scroll {
    grid-auto-columns: minmax(158px, 72vw);
    gap: 9px;
    padding-bottom: 10px;
  }
  .category-rail-scroll .category-pill-card { min-height: 66px; }
  .category-pill-card.is-active { padding-right: 48px; }
  .home-category-rail .category-pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-rail .category-pill-card { align-items: flex-start; min-height: 98px; flex-direction: column; gap: 7px; }
  .home-category-rail .category-pill-grid > :nth-child(n + 9) { display: none; }
  .home-category-rail .category-pill-copy strong { font-size: .79rem; }
  .home-category-rail .category-pill-media { width: 40px; height: 40px; }
  .content-band { padding: 24px 20px; }
  .listing-results-header { align-items: flex-start; margin-top: 20px; padding: 17px; }
  .listing-results-header .result-count { margin-top: 2px; padding: 7px 9px; font-size: .72rem; }
  .listing-results-header p:last-child { font-size: .76rem; }
}

/* Public commerce and form refinements */
.header-nav a[aria-current="page"] { color: var(--brand); }
.header-nav a[aria-current="page"]::after { right: 0; left: 0; }
.mobile-header-actions .account-icon { color: var(--brand); }
.home-section-all .ui-icon,
.text-link .ui-icon { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; }
.listing-page .card-img-wrap { aspect-ratio: 4 / 3; }
.detail-mobile-cta { display: none; }
.detail-grid > * { min-width: 0; }
.detail-cta .ui-icon { width: 18px; height: 18px; }
.thumb-row { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.detail-crumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; white-space: nowrap; scrollbar-width: none; }
.detail-crumbs::-webkit-scrollbar { display: none; }
.stack-form label > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stack-form label small { color: var(--text-3); font-size: .72rem; font-weight: 600; }
.blog-card { position: relative; overflow: hidden; }
.blog-card-icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px;
  border-radius: 11px; background: var(--brand-faint); color: var(--brand-h);
}
.blog-card-icon .ui-icon { width: 22px; height: 22px; }
.blog-card .blog-card-category { color: var(--brand-h); }
.not-found-action { display: inline-flex; margin-top: 8px; text-decoration: none; }

@media (max-width: 639px) {
  .stack-form input,
  .stack-form textarea,
  .stack-form select { font-size: 16px; }
  .seller-layout { display: flex; flex-direction: column; }
  .seller-form { order: -1; }
  .seller-points { margin-top: 0; }
  .listing-page .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .listing-page .card { border-radius: 14px; }
  .listing-page .card-main {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    align-items: stretch;
  }
  .listing-page .card-img-wrap { min-height: 100%; aspect-ratio: auto; }
  .listing-page .card-body { padding: 12px; }
  .listing-page .card-name { font-size: .9rem; min-height: auto; }
  .listing-page .card-sub { font-size: .76rem; }
  .listing-page .card-signals,
  .listing-page .price-range { display: none; }
  .listing-page .card-foot { margin-left: 122px; padding: 0 12px 12px; }
  .listing-page .card-btn { min-height: 42px; font-size: .8rem; }
  .detail-page { padding-top: 20px; }
  .detail-page .back-link { margin-bottom: 18px; }
  .detail-grid { gap: 24px; }
  .detail-media { width: 100%; max-width: none; }
  .detail-media img { padding: 24px; }
  .thumb-row { margin-inline: -2px; }
  .thumb-btn { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 11px; }
  .detail-info { gap: 15px; }
  .detail-title { font-size: 1.35rem; }
  .detail-price-row { padding: 16px; }
  .detail-mobile-cta {
    position: fixed;
    right: 12px;
    bottom: 88px;
    left: 12px;
    z-index: 108;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 17px;
    background: rgba(13, 22, 39, .96);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15,23,42,.28);
    backdrop-filter: blur(14px);
  }
  .detail-mobile-cta span { color: #e3c760; font: 800 1rem/1 var(--font-heading); }
  .detail-mobile-cta strong { justify-self: end; font-size: .86rem; }
  .detail-mobile-cta .ui-icon { width: 18px; height: 18px; }
}

/* Admin-managed deal listing banner carousel */
.listing-banner-slider { margin: 24px 0 12px; }
.listing-banner-stage { position: relative; }
.listing-banner-slide.listing-hero {
  display: grid;
  min-height: 274px;
  margin: 0;
  align-items: center;
  isolation: isolate;
}
.listing-banner-slide[hidden] { display: none; }
.listing-banner-slide::before,
.listing-banner-slide::after { pointer-events: none; }
.listing-banner-slide .listing-banner-copy { position: relative; z-index: 2; max-width: 760px; }
.listing-banner-slide h1,.listing-banner-slide h2 { max-width: 22ch; margin: 0 0 10px; color: var(--text); font: 800 clamp(1.8rem,3.6vw,2.4rem)/1.08 var(--font-heading); letter-spacing: -.025em; text-wrap: balance; }
.listing-banner-slide .listing-banner-image {
  position: absolute;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-banner-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  display: block;
  width: 44%;
  overflow: hidden;
  background: linear-gradient(145deg,rgba(199,163,70,.08),rgba(199,163,70,.22));
}
.listing-banner-art::before,.listing-banner-art::after,.listing-banner-art i,.listing-banner-art b,.listing-banner-art em { position: absolute; display: block; content: ""; }
.listing-banner-art::before { top: -28%; right: -8%; width: 78%; aspect-ratio: 1; border: 2px solid rgba(199,163,70,.42); border-radius: 50%; box-shadow: 0 0 0 32px rgba(199,163,70,.07),0 0 0 64px rgba(199,163,70,.045); }
.listing-banner-art::after { right: 12%; bottom: 14%; width: 44%; height: 18%; border-radius: 999px; background: rgba(255,255,255,.48); transform: rotate(-12deg); }
.listing-banner-art i { right: 30%; bottom: 21%; width: 30%; aspect-ratio: 1; border: 14px solid rgba(255,255,255,.76); border-radius: 24%; transform: rotate(45deg); }
.listing-banner-art b { right: 13%; bottom: 29%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.72); }
.listing-banner-art em { top: 20%; left: 14%; width: 34px; height: 34px; border: 8px solid rgba(255,255,255,.72); border-radius: 50%; }
.listing-banner-slide.is-tone-navy .listing-banner-art { background: linear-gradient(145deg,#cfdcf0,#6c86aa); }
.listing-banner-slide.is-tone-rose .listing-banner-art { background: linear-gradient(145deg,#f3dce6,#b87594); }
.listing-banner-slide.is-tone-forest .listing-banner-art { background: linear-gradient(145deg,#d4eadc,#659478); }
.listing-banner-slide.is-tone-gold { background: linear-gradient(135deg,#fff 0%,#fffcf5 68%,#f8f1df 100%); }
.listing-banner-slide.is-tone-navy { background: linear-gradient(135deg,#f7f9fd,#e8eef8); }
.listing-banner-slide.is-tone-rose { background: linear-gradient(135deg,#fffafb,#f8e9ef); }
.listing-banner-slide.is-tone-forest { background: linear-gradient(135deg,#fbfdfb,#e7f3eb); }
.listing-banner-slide.is-template-editorial.has-image .listing-banner-image {
  top: 0;
  right: 0;
  width: 48%;
  opacity: .2;
  -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 45%);
  mask-image: linear-gradient(90deg,transparent 0%,#000 45%);
}
.listing-banner-slide.is-template-editorial.has-image .listing-banner-copy { max-width: 68%; }
.listing-banner-slide.is-template-editorial.has-art .listing-banner-copy { max-width: 65%; }
.listing-banner-slide.is-template-split.has-visual { padding-right: calc(43% + clamp(24px,3vw,42px)); }
.listing-banner-slide.is-template-split.has-visual::before {
  position: absolute;
  inset: 0 38% 0 0;
  z-index: 1;
  background: linear-gradient(90deg,rgba(255,255,255,.96) 72%,rgba(255,255,255,0));
  content: "";
}
.listing-banner-slide.is-template-split.has-image .listing-banner-image { top: 0; right: 0; width: 43%; }
.listing-banner-slide.is-template-split .listing-banner-art { width: 43%; }
.listing-banner-slide.is-template-cover { min-height: 310px; border-color: rgba(255,255,255,.18); background: #15223a; }
.listing-banner-slide.is-template-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,rgba(8,18,35,.91) 0%,rgba(8,18,35,.7) 52%,rgba(8,18,35,.25) 100%);
  content: "";
}
.listing-banner-slide.is-template-cover .listing-banner-art { width: 100%; opacity: .66; }
.listing-banner-slide.is-template-cover.is-tone-gold:not(.has-image) { background: linear-gradient(135deg,#594511,#b59032); }
.listing-banner-slide.is-template-cover.is-tone-navy:not(.has-image) { background: linear-gradient(135deg,#0f192d,#28436d); }
.listing-banner-slide.is-template-cover.is-tone-rose:not(.has-image) { background: linear-gradient(135deg,#451c31,#8e4568); }
.listing-banner-slide.is-template-cover.is-tone-forest:not(.has-image) { background: linear-gradient(135deg,#183428,#356a4d); }
.listing-banner-slide.is-template-cover h1,
.listing-banner-slide.is-template-cover h2 { color: #fff; }
.listing-banner-slide.is-template-cover p { color: rgba(255,255,255,.82); }
.listing-banner-slide.is-template-cover .listing-eyebrow { color: #f0cf67; }
.listing-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 17px;
  padding: 11px 16px;
  border: 1px solid #d5b452;
  border-radius: 10px;
  background: #c8a63d;
  color: #111827;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(112,82,13,.14);
}
.listing-banner-cta:hover { background: #d5b650; transform: translateY(-1px); }
.listing-banner-cta .ui-icon { width: 16px; height: 16px; }
.listing-banner-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 4px 0; }
.listing-banner-dots,.listing-banner-actions { display: flex; align-items: center; gap: 7px; }
.listing-banner-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #c7cfdb; cursor: pointer; transition: width .18s ease,background .18s ease; }
.listing-banner-dot.is-active { width: 26px; background: var(--brand); }
.listing-banner-actions button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.listing-banner-actions button:hover { border-color: var(--brand); color: var(--brand-h); }
.listing-banner-actions .ui-icon { width: 16px; height: 16px; }

@media (max-width: 639px) {
  .listing-banner-slider { margin: 18px 0 10px; }
  .listing-banner-slide.listing-hero { min-height: 280px; margin: 0; padding: 26px 20px; }
  .listing-banner-slide.is-template-editorial.has-image .listing-banner-copy { max-width: 100%; }
  .listing-banner-slide.is-template-editorial.has-art .listing-banner-copy { max-width: 72%; }
  .listing-banner-slide.is-template-editorial.has-image .listing-banner-image { width: 100%; opacity: .12; -webkit-mask-image: none; mask-image: none; }
  .listing-banner-slide.is-template-split.has-visual { padding: 202px 20px 24px; align-items: start; }
  .listing-banner-slide.is-template-split.has-image { min-height: 420px; }
  .listing-banner-slide.is-template-split.has-art { min-height: 330px; }
  .listing-banner-slide.is-template-split.has-visual::before { inset: 150px 0 0; background: linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.96) 22%); }
  .listing-banner-slide.is-template-split.has-image .listing-banner-image { top: 0; width: 100%; height: 190px; }
  .listing-banner-slide.is-template-split .listing-banner-art { top: 0; width: 100%; height: 190px; }
  .listing-banner-slide.is-template-editorial .listing-banner-art { width: 46%; }
  .listing-banner-slide.is-template-cover { min-height: 350px; }
  .listing-banner-slide.is-template-cover::before { background: linear-gradient(0deg,rgba(8,18,35,.94),rgba(8,18,35,.38)); }
  .listing-banner-controls { padding-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .listing-banner-dot,.listing-banner-cta { transition: none; }
}

.listing-support-content { margin: 30px 0 10px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.7); }
.category-page-heading { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 4px; }
.category-page-heading .section-eyebrow { margin: 0; color: var(--brand-h); }
.category-page-heading h1 { margin: 0; color: var(--text); font: 800 clamp(1.8rem,3.4vw,2.35rem)/1.08 var(--font-heading); letter-spacing: -.025em; }
.listing-support-content summary { padding: 16px 18px; color: var(--text-2); font-size: .84rem; font-weight: 750; cursor: pointer; }
.listing-support-content details[open] summary { border-bottom: 1px solid var(--border); }
.listing-support-content .category-intro { padding: 18px; color: var(--text-2); font-size: .88rem; line-height: 1.7; }
.listing-support-faq { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 18px 18px; }
.listing-support-faq article { padding: 14px; border-radius: 10px; background: #f6f8fb; }
.listing-support-faq strong { font-size: .8rem; }.listing-support-faq p { margin: 7px 0 0; color: var(--text-2); font-size: .8rem; line-height: 1.55; }
@media (max-width:639px) { .listing-support-faq { grid-template-columns: 1fr; } }
@media (max-width:639px) { .category-page-heading { display: grid; gap: 5px; margin-top: 14px; }.category-page-heading h1 { font-size: 1.8rem; } }
