/* ============================================================
   ABC FC Store — Mobile-First Stylesheet
   Brand: Amber Gold #F5A800 · Black #111 · White #FFF
   Mirror of main site design system
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Brand: navy from the home kit, gold from the crest, red from the trim */
  --gold:        #F5A800;
  --gold-dark:   #c98700;
  --gold-light:  #FFC233;
  --gold-faint:  rgba(245,168,0,0.10);
  --navy:        #0E1B3A;
  --navy-2:      #14264F;
  --navy-3:      #1C3366;
  --red:         #D6283B;
  --white:       #ffffff;
  --white-muted: rgba(255,255,255,0.7);
  --white-faint: rgba(255,255,255,0.15);

  /* Daylight theme (default): warm cream page, white cards, navy ink */
  --bg:          #F5F1E8;
  --surface:     #FFFFFF;
  --surface-2:   #EFEADF;
  --surface-3:   #E6DFD0;
  --text:        #111B33;
  --text-muted:  #56607A;
  --text-faint:  #8B92A5;
  --border:      #E3DCCD;
  /* gold as text needs to be darker on a light page */
  --accent-text: #8A5A00;
  --photo-bg:    #F3F1EC;
  --pill-on-bg:  var(--navy);
  --pill-on-fg:  #FFFFFF;

  /* Ink used on top of gold. Never changes with the theme. */
  --black:       #0E1B3A;
  /* Older names, kept so existing rules follow the theme */
  --black-2:     var(--surface);
  --black-3:     var(--surface-2);
  --black-4:     var(--surface-3);

  --font-display: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
  --font-sub:     'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16,1,0.3,1);

  --shadow-gold: 0 10px 30px rgba(245,168,0,0.25);
  --shadow-card: 0 1px 2px rgba(14,27,58,0.05), 0 8px 24px rgba(14,27,58,0.07);
  --shadow-lift: 0 2px 4px rgba(14,27,58,0.06), 0 18px 40px rgba(14,27,58,0.14);

  --header-h: 64px;
  --bottom-nav-h: 64px;
  --content-max: 1200px;
}

/* Night theme: deep navy instead of black */
[data-theme="dark"] {
  --bg:          #0A1226;
  --surface:     #111D3D;
  --surface-2:   #18284F;
  --surface-3:   #20335F;
  --text:        #EEF1F8;
  --text-muted:  #A4AEC6;
  --text-faint:  #6E7A96;
  --border:      #24355F;
  --accent-text: var(--gold);
  --photo-bg:    #F3F1EC;
  --pill-on-bg:  var(--gold);
  --pill-on-fg:  var(--navy);
  --black-2:     var(--surface);
  --black-3:     var(--surface-2);
  --black-4:     var(--surface-3);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lift: 0 18px 44px rgba(0,0,0,0.5);
}

/* Brand bands (header, hero, footer, toast) are navy in both themes */
.store-header, .cat-banner, .store-footer, .toast, .search-overlay {
  --bg:          var(--navy);
  --surface:     var(--navy-2);
  --surface-2:   var(--navy-2);
  --surface-3:   var(--navy-3);
  --text:        #F3F5FA;
  --text-muted:  #B3BCD2;
  --text-faint:  #7F8BA8;
  --border:      rgba(255,255,255,0.14);
  --accent-text: var(--gold);
  --black-2:     var(--navy-2);
  --black-3:     var(--navy-2);
  --black-4:     var(--navy-3);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: clamp(14px, 1rem, 16px);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
button { cursor: pointer; border: none; font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4 { line-height: 1.1; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Store Header ───────────────────────────────────────── */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.store-header-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.store-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.store-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.store-logo-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.store-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  line-height: 1;
}
.store-logo-tag {
  font-family: var(--font-sub);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}
.store-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.store-search-btn,
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
}
.store-search-btn:hover,
.theme-toggle-btn:hover {
  color: var(--accent-text);
  border-color: var(--accent-text);
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--black);
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--gold-light); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  display: none;
}
.cart-badge.visible { display: flex; }

/* ── Search Bar ─────────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  /* Dim only the top so live search results stay visible underneath */
  background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 75%);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-left: 16px;
  padding-right: 16px;
  /* Let clicks/scrolls reach the results below; the box re-enables itself */
  pointer-events: none;
}
.search-overlay.active { display: flex; }
.search-box {
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.search-input {
  flex: 1;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text);
  outline: none;
}
.search-close-btn {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* ── Category Banner ────────────────────────────────────── */
.cat-banner {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-4) 100%);
  border-bottom: 3px solid var(--gold);
  padding: 28px 16px 24px;
  text-align: center;
}
.cat-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 52px);
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.cat-banner p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Category Pills ─────────────────────────────────────── */
.cat-pills-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-pills-wrap::-webkit-scrollbar { display: none; }
.cat-pills {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  min-width: max-content;
}
.cat-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--transition);
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--gold);
  border-color: var(--accent-text);
  color: var(--black);
}

/* ── Sort / Filter Bar ──────────────────────────────────── */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.sort-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sort-select {
  flex: 1;
  max-width: 180px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

/* ── Product Grid ───────────────────────────────────────── */
.products-section {
  padding: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ── Product Card ───────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,168,0,0.15);
  border-color: rgba(245,168,0,0.3);
}
.product-card:active { transform: translateY(0); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--black-3);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.badge-new { background: var(--gold); color: var(--black); }
.badge-sold-out { background: #555; color: #fff; }
.badge-sale { background: #e53e3e; color: #fff; }

.product-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-name {
  font-family: var(--font-sub);
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}
.product-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.product-price {
  font-family: var(--font-sub);
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 800;
  color: var(--accent-text);
}
.product-price-old {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: line-through;
}
.product-quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--black);
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}
.product-quick-add:hover { background: var(--gold-light); transform: scale(1.1); }
.product-quick-add:active { transform: scale(0.95); }

/* ── Product Detail Modal ───────────────────────────────── */
.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.8);
  align-items: flex-end;
  justify-content: center;
}
.product-modal-overlay.active {
  display: flex;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.product-modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 0 0 24px;
  animation: slideUp 300ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (min-width: 640px) {
  .product-modal-overlay { align-items: center; }
  .product-modal {
    border-radius: var(--radius-xl);
    max-height: 90dvh;
  }
}
.modal-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}
.modal-handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
}
.modal-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--black-3);
}
.modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--black-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close-btn:hover { color: var(--accent-text); border-color: var(--accent-text); }
.modal-wrap { position: relative; }
.modal-name {
  font-family: var(--font-sub);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.modal-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}
.modal-price-old {
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: line-through;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.size-label {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: all var(--transition);
  min-width: 44px;
  text-align: center;
}
.size-btn:hover, .size-btn.selected {
  background: var(--gold);
  border-color: var(--accent-text);
  color: var(--black);
}
.size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-label {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--gold); color: var(--black); }
.qty-value {
  width: 48px;
  text-align: center;
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 8px;
  height: 40px;
}
.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-to-cart-btn:hover { background: var(--gold-light); }
.add-to-cart-btn:active { transform: scale(0.98); }
.add-to-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Cart Drawer ────────────────────────────────────────── */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.7);
}
.cart-drawer-overlay.active { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  z-index: 500;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: var(--font-sub);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.cart-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.cart-drawer-close:hover { color: var(--accent-text); border-color: var(--accent-text); }
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  color: var(--text-muted);
}
.cart-empty svg { color: var(--text-faint); }
.cart-empty p {
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 12px;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--black-3);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}
.cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-item-price {
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-text);
  margin-top: 4px;
}
.cart-item-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.ci-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--black-4);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.ci-qty-btn:hover { background: var(--gold); color: var(--black); border-color: var(--accent-text); }
.ci-qty-val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sub);
  min-width: 20px;
  text-align: center;
  color: var(--text);
}
.ci-remove-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.ci-remove-btn:hover { background: rgba(229,62,62,0.1); border-color: #e53e3e; color: #e53e3e; }
.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-label {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cart-total-val {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}
.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-btn:hover { background: var(--gold-light); }
.continue-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.continue-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* ── Checkout Page ──────────────────────────────────────── */
.checkout-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.checkout-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.checkout-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.checkout-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkout-section-title {
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.checkout-section-body { padding: 20px; }
.checkout-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.toggle-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.toggle-btn.active {
  background: var(--gold);
  border-color: var(--accent-text);
  color: var(--black);
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 440px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input, .form-select {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--accent-text); }
.form-input::placeholder { color: var(--text-faint); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Order summary in checkout */
.order-summary-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.order-summary-item:last-child { border-bottom: none; }
.os-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--black-3);
  flex-shrink: 0;
}
.os-info { flex: 1; min-width: 0; }
.os-name {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.2;
}
.os-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.os-price {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-text);
  flex-shrink: 0;
}
.order-totals { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.ot-row.total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
  font-family: var(--font-sub);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.ot-row.total span:last-child { color: var(--accent-text); }
.place-order-btn {
  width: 100%;
  padding: 18px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.place-order-btn:hover { background: var(--gold-light); }
.place-order-btn:active { transform: scale(0.98); }

/* ── Order Confirmation ─────────────────────────────────── */
.confirm-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(245,168,0,0.15);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.confirm-order-num {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.confirm-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
}
.confirm-email-note {
  background: var(--gold-faint);
  border: 1px solid rgba(245,168,0,0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--accent-text);
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.03em;
  width: 100%;
}
.confirm-continue-btn {
  padding: 16px 32px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.confirm-continue-btn:hover { background: var(--gold-light); }

/* ── Toast notification ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black-4);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.gold { border-color: var(--accent-text); color: var(--accent-text); }

/* ── Bottom Quick Nav ───────────────────────────────────── */
.bottom-quicknav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}
.bqn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-faint);
  font-family: var(--font-sub);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition);
  padding: 8px 4px;
  position: relative;
}
.bqn-item:hover, .bqn-item.active { color: var(--accent-text); }
.bqn-item svg { flex-shrink: 0; }
.bqn-cart-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  width: 16px;
  height: 16px;
  background: #e53e3e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
}
.bqn-cart-badge.visible { display: flex; }
/* center crest item */
.bqn-crest-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bqn-crest {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(245,168,0,0.4);
}

/* ── Store Footer ───────────────────────────────────────── */
.store-footer {
  background: var(--black-2);
  border-top: 3px solid var(--gold);
  padding: 40px 16px 24px;
  margin-bottom: 0;
}
.store-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}
@media (min-width: 640px) {
  .store-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .store-footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
/* Mailing list sign-up, at the top of the footer */
.signup {
  max-width: var(--content-max);
  margin: 0 auto 36px;
  padding: 24px 20px;
  display: grid;
  gap: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
}
.signup-eyebrow {
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.signup-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 4px 0 6px;
}
.signup-sub { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.signup-form { display: grid; gap: 10px; align-content: center; }
.signup-form input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.signup-form input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-btn {
  min-height: 50px;
  padding: 0 26px;
  font-family: var(--font-sub);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}
.signup-btn:hover { background: var(--gold-light); }
.signup-btn:disabled { opacity: 0.6; cursor: wait; }
.signup-msg { min-height: 20px; font-size: 14px; color: var(--text-muted); }
.signup-msg.ok { color: #4cc38a; }
.signup-msg.bad { color: #ff7b6b; }
[data-theme="light"] .signup-msg.ok { color: #1a7f4e; }
[data-theme="light"] .signup-msg.bad { color: #c0392b; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) {
  .signup { padding: 28px; }
  .signup-form { grid-template-columns: 1fr auto; }
  .signup-msg { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .signup { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 32px 36px; }
}
.footer-brand-section { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  object-fit: cover;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent-text); }
.store-footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}
.store-footer-bottom p {
  font-size: 12px;
  color: var(--text-faint);
}
.store-footer-bottom a { color: var(--text-faint); }
.store-footer-bottom a:hover { color: var(--accent-text); }

/* ── Loading Skeleton ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb span { color: var(--text-faint); }

/* ── Utility ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.page-section {
  display: none;
}
.page-section.active {
  display: block;
}

/* ── Announcement Bar ───────────────────────────────────── */
.announce-bar {
  position: relative;
  background: var(--gold);
  color: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 36px;
}
.announce-inner {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.announce-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}
.announce-track span {
  padding: 0 40px;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.announce-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--black);
  opacity: 0.7;
  cursor: pointer;
}
.announce-close:hover { opacity: 1; }

/* ── Trust Strip ─────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
  margin-top: 8px;
}
.trust-strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .trust-strip-inner { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 8px;
  color: var(--text-muted);
}
.trust-item svg { color: var(--accent-text); flex-shrink: 0; }
.trust-item strong {
  display: block;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 2px;
}
.trust-item span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Payment Options ─────────────────────────────────────── */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition);
}
.payment-option:has(input:checked) {
  border-color: var(--accent-text);
  background: var(--gold-faint);
}
.payment-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--accent-text);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.payment-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.payment-option-body strong {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.payment-option-body span {
  font-size: 12px;
  color: var(--text-muted);
}
.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 4px;
}
.secure-note svg { flex-shrink: 0; }

/* ── Form hint ───────────────────────────────────────────── */
.form-hint {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ── Back to main site link ─────────────────────────────── */
.back-to-main-link {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-block;
  margin-top: 4px;
}
.back-to-main-link:hover { color: var(--accent-text); }

/* ── Footer social row ───────────────────────────────────── */
.footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--black-4);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social-btn:hover {
  background: var(--gold);
  border-color: var(--accent-text);
  color: var(--black);
}

/* ── Confirm details layout ──────────────────────────────── */
.confirm-details { width: 100%; }

/* ── Skeleton card ───────────────────────────────────────── */
.skeleton-card {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ── Safe area support (notch phones) ───────────────────── */
body {
  padding-bottom: max(calc(var(--bottom-nav-h) + 16px), calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)));
}
.bottom-quicknav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

/* ── Construction Banner ─────────────────────────────────── */
.construction-banner {
  background: #ffffff;
  border-bottom: 3px solid #F5A800;
  padding: 14px clamp(16px,5vw,48px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.construction-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.construction-icon {
  color: #F5A800;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.construction-msg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0d0d0d;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}
.construction-msg strong {
  font-weight: 900;
  font-size: 16px;
  color: #0d0d0d;
}
@media (max-width: 600px) {
  .construction-msg { font-size: 13px; }
  .construction-msg strong { font-size: 14px; }
}

/* ── Info / Policy Pages ─────────────────────────────────── */
.info-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 56px;
}
.info-title {
  font-family: var(--font-sub);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 8px 0 20px;
}
.info-content { color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.info-content h2 {
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin: 24px 0 8px;
}
.info-content p { margin: 0 0 12px; }
.info-content ul, .info-content ol { margin: 0 0 12px; padding-left: 20px; }
.info-content li { margin-bottom: 6px; }
.info-content a { color: var(--accent-text); }
.info-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 14px;
}
.info-content th, .info-content td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--surface);
  text-align: left;
}
.info-content th {
  color: var(--accent-text);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.info-contact-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--surface);
  font-size: 14px;
  color: var(--text-muted);
}
.info-contact-note a { color: var(--accent-text); }
.track-form {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.track-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid rgba(245,168,0,0.4);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

/* ============================================================
   DESKTOP & TABLET ENHANCEMENTS (additive)
   All rules below are min-width gated, so the mobile layout
   (everything above) is completely unaffected.
   ============================================================ */

/* Desktop top nav lives in the header; hidden on mobile by default. */
.store-topnav { display: none; }

@media (min-width: 768px) {
  /* Reveal the top category nav and let it sit between logo and actions */
  .store-logo { flex: 0 0 auto; }
  .store-topnav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 28px;
    margin-right: auto;
  }
  .store-topnav a {
    font-family: var(--font-sub);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
  }
  .store-topnav a:hover { color: var(--text); border-bottom-color: var(--accent-text); }

  /* A touch more breathing room in the hero on tablets+ */
  .cat-banner { padding: 40px 16px 34px; }
}

@media (min-width: 1024px) {
  /* On desktop the mobile bottom tab-bar is redundant — the top nav covers it */
  .bottom-quicknav { display: none; }
  body { padding-bottom: 24px; }

  /* Give the catalogue a bit more presence on wide screens */
  .cat-banner { padding: 52px 16px 44px; }
  .products-grid { gap: 22px; }
}

/* Very wide screens: keep the 4-col grid from getting oversized */
@media (min-width: 1440px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Elements that only make sense on big screens (shown by desktop.css) */

/* ============================================================
   2026 refresh: navy, cream and gold
   Sits last so it restyles the components above without
   touching their layout rules. Phone first; desktop.css adds
   the larger-screen layout.
   ============================================================ */

body { background: var(--bg); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Notices above the header ───────────────────────────── */
.construction-banner { background: #FFF6DC; border-bottom: 1px solid #F0DCA0; box-shadow: none; padding-block: 10px; }
.construction-msg, .construction-msg strong { color: var(--navy); }
.construction-icon { color: var(--gold-dark); }

/* ── Header ─────────────────────────────────────────────── */
.store-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 6px 24px rgba(8,16,36,0.18); }
.store-logo-name { color: #fff; }
.store-logo-tag { color: var(--gold); }
.store-search-btn, .theme-toggle-btn { background: rgba(255,255,255,0.08); border-color: transparent; color: #E6EAF4; }
.store-search-btn:hover, .theme-toggle-btn:hover { background: rgba(255,255,255,0.16); color: var(--gold); border-color: transparent; }

/* ── Hero ───────────────────────────────────────────────── */
.cat-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 30px 20px 0;
  text-align: left;
  border-bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 100%, rgba(245,168,0,0.26), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
}
.cat-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-55deg, transparent 0 38px, rgba(255,255,255,0.025) 38px 39px);
  pointer-events: none;
}
.cat-banner > * { position: relative; }
.cat-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.cat-banner-kicker::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.cat-banner h1 { color: #fff; font-size: clamp(46px, 14vw, 64px); line-height: 0.92; letter-spacing: 0.02em; }
.cat-banner p { color: #B9C2D8; font-size: 13px; margin-top: 10px; letter-spacing: 0.08em; }
.cat-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cbn-primary, .cbn-ghost {
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.cbn-primary { background: var(--gold); color: var(--navy); }
.cbn-primary:hover { background: var(--gold-light); }
.cbn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.cbn-ghost:hover { border-color: var(--gold); color: var(--gold); }
/* the three jerseys, fanned out and tucked into the bottom edge */
.cat-banner-visual { display: flex; justify-content: center; align-items: flex-end; height: 190px; margin-top: 18px; }
.cat-banner-visual img {
  width: 132px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: var(--photo-bg);
  border: 3px solid #fff;
  box-shadow: 0 18px 36px rgba(4,10,26,0.45);
  margin-bottom: -22px;
}
.cat-banner-visual img:nth-child(1) { transform: translateX(26px) rotate(-9deg) scale(0.9); }
.cat-banner-visual img:nth-child(2) { position: relative; z-index: 2; transform: translateY(-12px); }
.cat-banner-visual img:nth-child(3) { transform: translateX(-26px) rotate(9deg) scale(0.9); }

/* ── Category pills + sort ──────────────────────────────── */
.cat-pills-wrap { background: var(--bg); border-bottom: 0; }
.cat-pills { padding: 16px 16px 8px; gap: 8px; }
.cat-pill { min-height: 40px; padding: 0 18px; background: var(--surface); border-color: var(--border); color: var(--text); font-size: 14px; }
.cat-pill:hover { background: var(--surface); border-color: var(--text); color: var(--text); }
.cat-pill.active { background: var(--pill-on-bg); border-color: var(--pill-on-bg); color: var(--pill-on-fg); }
.sort-bar { background: var(--bg); border-bottom: 0; padding: 8px 16px 4px; }
.sort-select { min-height: 40px; border-radius: var(--radius-full); padding-inline: 16px; }

/* ── Product cards ──────────────────────────────────────── */
.products-section { padding: 12px 16px 28px; }
.product-card { border: 0; box-shadow: var(--shadow-card); }
.product-card:hover { box-shadow: var(--shadow-lift); border-color: transparent; }
.product-img-wrap { background: var(--photo-bg); }
.badge-new { background: var(--navy); color: var(--gold); }
.badge-sale { background: var(--red); }
.product-card-body { padding: 12px 12px 14px; gap: 4px; }
.product-name { font-size: 15px; letter-spacing: 0.01em; }
.product-meta { display: none; }
.product-price-row { padding-top: 8px; }
.product-price { color: var(--text); font-size: 17px; }
.product-quick-add { width: 36px; height: 36px; }
.cart-badge, .bqn-cart-badge { background: var(--red); }

/* ── Trust strip ────────────────────────────────────────── */
.trust-strip { background: var(--surface); border-top: 0; border-bottom: 0; padding: 24px 16px; }
.trust-item svg { color: var(--gold-dark); box-sizing: content-box; padding: 11px; border-radius: var(--radius-full); background: var(--gold-faint); }
[data-theme="dark"] .trust-item svg { color: var(--gold); }

/* ── Footer ─────────────────────────────────────────────── */
.store-footer { background: var(--navy); border-top: 4px solid var(--gold); color: var(--text); }
.signup { background: var(--navy-2); border-color: rgba(255,255,255,0.1); border-left-color: var(--gold); }
.signup-form input[type="email"] { background: var(--navy); border-color: rgba(255,255,255,0.18); color: #fff; }
.signup-form input[type="email"]::placeholder { color: #8D98B3; }
.signup-btn { border-radius: var(--radius-full); color: var(--navy); }
.signup-msg.ok, [data-theme="light"] .signup-msg.ok { color: #6FD9A4; }
.signup-msg.bad, [data-theme="light"] .signup-msg.bad { color: #FF9A8C; }
.store-footer-bottom p, .store-footer-bottom a { color: #8D98B3; }

/* ── Bottom tab bar (phones) ────────────────────────────── */
.bottom-quicknav {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(14,27,58,0.08);
}
.bqn-item { color: var(--text-muted); font-size: 10px; }
.bqn-item:hover, .bqn-item.active { color: var(--accent-text); }
.bqn-crest { box-shadow: 0 4px 14px rgba(14,27,58,0.25); }

/* ── Overlays ───────────────────────────────────────────── */
.product-modal-overlay { background: rgba(8,16,36,0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cart-overlay { background: rgba(8,16,36,0.55); }
.modal-img { background: var(--photo-bg); }
.modal-price { color: var(--text); }
.toast { background: var(--navy); color: #fff; border-color: rgba(255,255,255,0.16); box-shadow: 0 12px 30px rgba(8,16,36,0.3); }

@media (min-width: 480px) {
  .cat-banner { padding: 40px 28px 0; }
  .cat-banner-visual { height: 230px; }
  .cat-banner-visual img { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation-duration: 90s; }
}

/* Show the whole product in the product view, never a cropped part of it */
.modal-img { object-fit: contain; padding: 12px; }

/* Quick add sits on the photo so it is always within thumb reach on phones */
.product-quick-add { position: absolute; right: 8px; bottom: 8px; margin: 0; box-shadow: 0 6px 16px rgba(14,27,58,0.25); }

/* Footer: three columns from tablet up, so Support no longer drops to its own row */
@media (min-width: 720px) {
  .store-footer-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}
