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

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --gold:        #F5A800;
  --gold-dark:   #c98700;
  --gold-light:  #FFD04D;
  --gold-faint:  rgba(245,168,0,0.08);
  --black:       #0d0d0d;
  --black-2:     #141414;
  --black-3:     #1a1a1a;
  --black-4:     #222222;
  --white:       #ffffff;
  --white-muted: rgba(255,255,255,0.65);
  --white-faint: rgba(255,255,255,0.15);

  --bg:          var(--black);
  --surface:     var(--black-2);
  --surface-2:   var(--black-3);
  --text:        #f0f0f0;
  --text-muted:  #999;
  --text-faint:  #555;
  --border:      #2a2a2a;

  --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: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

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

  --shadow-gold: 0 0 40px rgba(245,168,0,0.2);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.5);

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

[data-theme="light"] {
  --bg:          #f4f4f0;
  --surface:     #ffffff;
  --surface-2:   #f0f0ec;
  --text:        #111111;
  --text-muted:  #555;
  --text-faint:  #999;
  --border:      #e0e0d8;
  --black:       #f4f4f0;
  --black-2:     #ffffff;
  --black-3:     #f0f0ec;
  --black-4:     #e8e8e4;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── 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(--gold); 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(--gold);
  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(--gold);
  border-color: var(--gold);
}
.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;
  background: rgba(0,0,0,0.85);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-left: 16px;
  padding-right: 16px;
}
.search-overlay.active { display: flex; }
.search-box {
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 8px;
}
.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(--gold);
}
.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(--gold);
  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(--gold);
}
.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(--gold); border-color: var(--gold); }
.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(--gold);
  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(--gold);
  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(--gold); border-color: var(--gold); }
.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(--gold);
  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(--gold); }
.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(--gold);
  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(--gold); color: var(--gold); }

/* ── 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(--gold);
  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(--gold); }
.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(--gold);
  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(--gold); }
.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(--gold);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  letter-spacing: 0.04em;
  color: var(--gold);
}
.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(--gold);
  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(--gold); color: var(--gold); }

/* ── 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(--gold); }
.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; }
}
.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(--gold);
}
.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(--gold);
  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(--gold); }
.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(--gold); }

/* ── 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(--gold); }
.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(--gold); 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(--gold);
  background: var(--gold-faint);
}
.payment-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--gold);
  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(--gold); }

/* ── 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(--gold);
  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));
}
