/* ============================================================
   Alexelectronics — light, Apple-clean, minimalist design system
============================================================ */

/* --- Design tokens -------------------------------------------------
   Palette is warm-paper + ink with a single accent: settlement teal.
   Coin brand colors are demoted to small data marks — they never carry
   a surface or a button, so the page reads as one voice, not three. */
:root {
  /* All white. The product PNGs are transparent cutouts, so a tinted
     tile behind them read as a grey box around each phone. Cards keep
     their borders for definition instead of relying on a fill. */
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;   /* form fields / inputs only — needs to recede */
  --border: rgba(22, 24, 28, 0.10);
  --border-strong: rgba(22, 24, 28, 0.18);
  --text: #16181c;
  --text-dim: #62676e;
  --text-faint: #6f757d;   /* 4.6:1 on paper — safe for the 10–11px labels */
  --blue: #0e6e5b;         /* settlement teal — the one accent */
  --blue-hover: #0b5849;
  --success: #0e6e5b;
  --danger: #b3392f;
  --warn: #9a5b12;

  /* Coin marks — data color only, never a surface */
  --btc: #b06a10;
  --eth: #5a5fbf;
  --usdt: #147a5c;

  --crypto-a: #16181c;
  --crypto-b: #0e6e5b;
  --crypto-glow: none;

  --shadow-sm: 0 1px 2px rgba(22, 24, 28, 0.04), 0 1px 3px rgba(22, 24, 28, 0.05);
  --shadow-md: 0 6px 20px rgba(22, 24, 28, 0.07), 0 2px 6px rgba(22, 24, 28, 0.04);
  --shadow-lg: 0 18px 50px rgba(22, 24, 28, 0.12);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
/* Anything that settles on-chain is set in mono with lining figures. */
.price, .pdp-info .price-block, .cart-line-price { font-variant-numeric: tabular-nums; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */
/* Buttons carry a two-layer shadow: a tight contact shadow that keeps
   the edge crisp, plus a wider soft one for lift. On hover the lift
   grows and the button rises 1px; on press it drops back so the click
   feels physical rather than instant. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1),
              box-shadow .18s cubic-bezier(.2,.8,.3,1),
              background .18s ease,
              border-color .18s ease;
}
.btn:active { transform: translateY(0) scale(.985); transition-duration: .06s; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 1px rgba(6, 48, 40, .18),
              0 4px 12px rgba(14, 110, 91, .28);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(6, 48, 40, .2),
              0 10px 24px rgba(14, 110, 91, .34);
}
.btn-primary:active {
  box-shadow: 0 1px 2px rgba(6, 48, 40, .24),
              0 2px 6px rgba(14, 110, 91, .22);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 1px 1px rgba(22, 24, 28, .04),
              0 3px 10px rgba(22, 24, 28, .07);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(22, 24, 28, .06),
              0 10px 22px rgba(22, 24, 28, .11);
}
.btn-secondary:active {
  box-shadow: 0 1px 2px rgba(22, 24, 28, .08),
              0 2px 5px rgba(22, 24, 28, .07);
}
/* Ghost stays flat — a shadow on a borderless link reads as a mistake. */
.btn-ghost { background: transparent; color: var(--blue); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { text-decoration: underline; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* A disabled button must look unpressable: no lift, no shadow, no
   pointer. Keeping the shadow would still invite the click. */
.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-crypto {
  background: var(--text);
  color: #fff;
  font-weight: 500;
  border-color: var(--text);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .22), 0 4px 12px rgba(22, 24, 28, .26);
}
.btn-crypto:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .24), 0 10px 24px rgba(22, 24, 28, .32);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
/* Logo sized to the header. The source has wide transparent margins, so
   a 26px cap height keeps the wordmark readable without dwarfing the
   56px bar. */
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
/* No dark-mode inversion: this store's background is always white, so
   inverting the near-black wordmark on a dark-OS visitor turned it
   white-on-white and made it disappear. */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

/* Shop dropdown. Opens on hover AND on keyboard focus, so it isn't
   mouse-only — focus-within covers tab navigation without extra JS. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret { width: 8px; height: 8px; margin-left: 5px; opacity: .65; }
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s, transform .15s;
  z-index: 60;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-dim);
  border-radius: var(--radius-s);
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-link {
  font-size: 13px;
  color: var(--text-dim);
  transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text);
}
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------------- Mobile nav ---------------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: -10px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-s);
  color: var(--text);
}
.nav-toggle:hover { background: var(--surface-2); }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.mobile-nav-inner { display: flex; flex-direction: column; padding-bottom: 10px; }
.mobile-nav .nav-link {
  /* 48px rows — comfortable thumb targets, unlike the 13px desktop links */
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .nav-link:last-child { border-bottom: 0; }
.mobile-nav .nav-link.active { color: var(--blue); }

/* The Shop dropdown can't use hover on a touch screen, so in the mobile
   menu it's flattened into always-visible, tappable sub-links (iPhone 17
   series, 16, 15, Refurbished). Without this the model links were
   unreachable on a phone. */
.mobile-nav .nav-item { flex-direction: column; align-items: stretch; }
.mobile-nav .nav-item > .nav-link { border-bottom: 1px solid var(--border); }
.mobile-nav .nav-caret { display: none; }
.mobile-nav .nav-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0 0 6px 18px;
  z-index: auto;
}
.mobile-nav .nav-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--text-dim);
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.mobile-nav .nav-menu a:last-child { border-bottom: 0; }
.mobile-nav .nav-menu a:hover { background: transparent; color: var(--text); }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  /* Brand centers between the toggle and the bag once nav is collapsed. */
  .header-inner { gap: 12px; }
  .brand { flex: 1; text-align: center; }
}
@media (min-width: 781px) {
  .mobile-nav { display: none; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  /* No margin-top: every page's last section already carries its own
     bottom padding (96px home, 100px cart, 110px checkout). Adding a
     margin on top of that doubled the gap before the footer. */
  margin-top: 0;
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-logo-img { height: 30px; width: auto; display: block; }
.footer-brand p { color: var(--text-faint); font-size: 13px; margin-top: 12px; max-width: 320px; }
.footer-address { font-style: normal; color: var(--text-faint); font-size: 13px; line-height: 1.7; margin-top: 14px; }
.footer-address a { color: var(--text-faint); }
.footer-address a:hover { color: var(--text); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 13px; color: var(--text-faint); }
.footer-col a:hover { color: var(--text); }
.pay-logo { width: 150px; height: auto; display: block; margin-bottom: 12px; }
/* Footer accepted-coin logos: stacked, matched to one height so the
   three different wordmarks line up. */
.pay-logos { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.pay-logos img { height: 22px; width: auto; display: block; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badge {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 12px;
  color: var(--text-faint);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-faint); }
.footer-bottom-links a:hover { color: var(--text); }
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Hero / Home ---------------- */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-eyebrow { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
}
.hero p.sub { font-size: 19px; color: var(--text-dim); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 10px; }
.hero-art { margin-top: 20px; }

/* Decorative hero layers retired for the clean white theme */
.hero-network,
.hero-glow-pulse,
.hero-coin { display: none; }

.hero > * { position: relative; z-index: 1; }

/* ---------------- Trust strip ---------------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 16px 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}
.coin-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 980px;
  padding: 5px 12px 5px 6px;
}
.coin-badge-mini .dot { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.trust-strip .divider { color: var(--border-strong); }

/* ---------------- Why Crypto: clean cards ---------------- */
.why-crypto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.glass-card .icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  margin-bottom: 18px;
  font-size: 19px;
}
.glass-card h3 { font-size: 15px; margin-bottom: 8px; }
.glass-card p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }
@media (max-width: 980px) { .why-crypto-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-crypto-grid { grid-template-columns: 1fr; } }

/* ---------------- Best sellers: crypto price toggle ---------------- */
.price-toggle {
  display: flex;
  gap: 3px;
  margin-top: 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 3px;
}
.price-toggle button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 5px 0;
  border-radius: 6px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.price-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.bestseller-card .price { font-family: var(--font-mono); min-height: 20px; }

.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 20px; }
.section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; }
.section-head p { color: var(--text-dim); font-size: 15px; margin-top: 6px; }
.link-arrow { color: var(--blue); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link-arrow:hover { text-decoration: underline; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card span.label { font-weight: 600; font-size: 15px; }
.category-card span.count { font-size: 12px; color: var(--text-faint); }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.usp-card .icon { font-size: 22px; margin-bottom: 10px; }
.usp-card h3 { font-size: 15px; margin-bottom: 6px; }
.usp-card p { color: var(--text-dim); font-size: 13px; }
@media (max-width: 900px) { .usp-grid { grid-template-columns: 1fr 1fr; } }

.crypto-banner {
  border-radius: var(--radius-l);
  padding: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.crypto-banner h2 { font-size: 28px; margin-bottom: 10px; }
.crypto-banner p { color: var(--text-dim); max-width: 480px; }
.crypto-banner .coins { display: flex; gap: 10px; margin-top: 16px; }
@media (max-width: 780px) { .crypto-banner { flex-direction: column; text-align: center; } }

/* ---------------- Product grid / cards ---------------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 980px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface);
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--text-faint); }
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card .art-wrap { align-self: center; margin-bottom: 12px; padding: 4px 0 8px; }
/* Fixed pixel size, capped so it can't overflow a narrow card. */
.product-card .art-wrap .product-photo { max-width: 100%; }

/* Product photos sit on a clean light-grey tile (Apple PDP style) */
.art-wrap {
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.product-photo { object-fit: contain; display: block; border-radius: inherit; }
.product-card .category-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.product-card h3 { font-size: 16px; margin: 6px 0 4px; }
.product-card .tagline { font-size: 13px; color: var(--text-dim); min-height: 34px; }
.product-card .price { margin-top: 14px; font-size: 15px; font-weight: 600; }
.product-card .price .from { font-weight: 400; color: var(--text-faint); font-size: 12px; }
.product-card .price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-card .price .was { font-weight: 400; font-size: 12.5px; color: var(--text-faint); text-decoration: line-through; }
.product-card .price .save {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--success);
  background: rgba(26, 157, 84, .10);
  padding: 2px 6px;
  border-radius: 100px;
}

.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.product-strip .product-card { scroll-snap-align: start; }
.product-strip::-webkit-scrollbar { height: 6px; }
.product-strip::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* ---------------- Product detail ---------------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 56px 0 90px;
  align-items: flex-start;
}
.pdp-art {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  position: sticky;
  top: 80px;
}
.pdp-info .category-tag { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.pdp-info h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 6px; }
.pdp-info .tagline { color: var(--text-dim); font-size: 17px; margin-bottom: 20px; }
.pdp-info .price-block { font-size: 26px; font-weight: 700; margin-bottom: 26px; }
.pdp-info .price-block .base { font-size: 13px; color: var(--text-faint); font-weight: 400; display:block; margin-bottom: 4px; }

.variant-group { margin-bottom: 24px; }
.variant-group .vg-label { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; display: flex; justify-content: space-between; }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  cursor: pointer;
  position: relative;
}
.swatch.selected { border-color: var(--blue); }
.swatch.selected::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.text-options { display: flex; gap: 10px; flex-wrap: wrap; }
.text-option {
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface);
}
.text-option.selected { border-color: var(--blue); color: var(--text); background: rgba(0,113,227,.06); }
.text-option .delta { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.qty-row { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 980px;
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px; background: transparent; border: none; color: var(--text); font-size: 17px;
}
.qty-stepper button:hover { background: var(--bg-elevated); }
.qty-stepper span { width: 34px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }

.pdp-actions { display: flex; gap: 12px; }
.pdp-desc { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 24px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.pdp-desc h4 { color: var(--text); font-size: 14px; margin-bottom: 10px; }
.trust-row { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.trust-row span { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .pdp-art { position: static; min-height: 320px; }
}

/* ---------------- Cart page ---------------- */
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; padding: 44px 0 8px; }
.page-subtitle { color: var(--text-dim); font-size: 14px; padding-bottom: 30px; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding-bottom: 100px; align-items: flex-start; }
.cart-lines { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line .art-wrap { border: 1px solid var(--border); border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center; padding: 8px; }
.cart-line .name { font-weight: 600; font-size: 15px; }
.cart-line .variant { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.cart-line .remove-link { font-size: 12px; color: var(--danger); margin-top: 8px; display: inline-block; }
.cart-line .unit-price { font-size: 14px; color: var(--text-dim); text-align: right; min-width: 90px; }
.cart-line .line-total { font-size: 15px; font-weight: 600; text-align: right; min-width: 100px; }

.empty-state { text-align: center; padding: 100px 0; color: var(--text-dim); }
.empty-state .icon { font-size: 40px; margin-bottom: 16px; }

.summary-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}
.summary-box h3 { font-size: 16px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 17px; font-weight: 700; color: var(--text); }
.summary-row .free { color: var(--success); }
.summary-note { font-size: 12px; color: var(--text-faint); margin-top: 14px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  /* Media stays left, everything else stacks beside it. (This previously
     declared grid-template-areas that no child ever claimed, so the areas
     were inert and the row kept its 5-column desktop track list.) */
  .cart-line { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; row-gap: 4px; }
  .cart-line .unit-price,
  .cart-line .line-total { text-align: left; min-width: 0; grid-column: 2; }
}

/* ---------------- Checkout ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding-bottom: 110px; align-items: flex-start; }
.checkout-steps { display: flex; gap: 10px; margin-bottom: 32px; }
.step-pill {
  font-size: 12px; color: var(--text-faint); border: 1px solid var(--border); border-radius: 980px; padding: 6px 14px;
}
.step-pill.active { color: var(--text); border-color: var(--blue); background: rgba(0,113,227,.06); }
.step-pill.done { color: var(--success); border-color: var(--success); }

.form-section { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.form-section h3 { font-size: 17px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: var(--text-dim); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.form-field .error-msg { font-size: 12px; color: var(--danger); display: none; }
.form-field.invalid input, .form-field.invalid select { border-color: var(--danger); }
.form-field.invalid .error-msg { display: block; }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-option {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.payment-option input { accent-color: var(--blue); }
.payment-option.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.payment-option .pm-title { font-size: 14px; font-weight: 600; }
.payment-option .pm-sub { font-size: 12px; color: var(--text-faint); }

.checkout-summary { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; }
.checkout-summary h3 { font-size: 15px; margin-bottom: 16px; }
.mini-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.mini-line .art-wrap { width: 52px; height: 52px; border: 1px solid var(--border); border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mini-line .info { flex: 1; }
.mini-line .info .name { font-size: 13px; font-weight: 600; }
.mini-line .info .meta { font-size: 11px; color: var(--text-faint); }
.mini-line .price { font-size: 13px; font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .payment-methods { grid-template-columns: 1fr; } }

/* ---------------- Crypto payment screen ---------------- */
.crypto-card {
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.coin-selector { display: flex; gap: 12px; margin-bottom: 26px; }
.coin-chip {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.coin-chip:hover { transform: translateY(-2px); }
.coin-chip.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.coin-chip .sym { font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.coin-chip .coin-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-family: var(--font-mono); }

.crypto-panel { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
.qr-box {
  width: 200px; height: 200px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: qrPulse 2.4s ease-in-out infinite;
}
@keyframes qrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,113,227,.25); }
  50% { box-shadow: 0 0 0 8px rgba(0,113,227,0); }
}
.crypto-detail-row { margin-bottom: 18px; }
.crypto-detail-row label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.amount-due {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.amount-due .fiat { display: block; font-family: var(--font-sans); font-size: 13px; color: var(--text-faint); margin-top: 2px; font-weight: 400; }

.wallet-row { display: flex; gap: 8px; align-items: center; }
.wallet-address {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text);
}
.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text);
  flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--blue); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

.countdown-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.countdown {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}
.countdown.low { color: var(--danger); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: .3; } }

.status-indicator { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--bg-elevated); border: 1px solid var(--border); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); position: relative; }
.status-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--warn); opacity: .5;
  animation: statusPulse 1.6s ease-out infinite;
}
.status-dot.confirmed { background: var(--success); }
.status-dot.confirmed::after { border-color: var(--success); animation: none; opacity: 0; }
@keyframes statusPulse {
  0% { transform: scale(.6); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.status-text { font-size: 13px; color: var(--text-dim); }
.status-text strong { color: var(--text); }

.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.12); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.crypto-actions { display: flex; gap: 12px; margin-top: 26px; }

@media (max-width: 640px) {
  .crypto-panel { grid-template-columns: 1fr; }
  .qr-box { margin: 0 auto; }
  .coin-selector { flex-wrap: wrap; }
}

/* ---------------- Thank you page ---------------- */
.confirm-hero {
  text-align: center;
  padding: 70px 24px 40px;
}
.confirm-check {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(26,157,84,.10);
  border: 1px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--success);
  font-size: 30px;
}
.confirm-hero h1 { font-size: 30px; margin-bottom: 8px; }
.confirm-hero p { color: var(--text-dim); }
.confirm-hero .order-no { font-family: var(--font-mono); color: var(--text); }

.order-recap { max-width: 760px; margin: 0 auto; padding-bottom: 100px; }
.recap-card { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.recap-card h3 { font-size: 15px; margin-bottom: 16px; }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.recap-field label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 4px; }
.recap-field div.value { font-size: 14px; }
.recap-items .cart-line { grid-template-columns: 64px 1fr auto; }
.recap-items .cart-line .art-wrap { width: 60px; height: 60px; }
@media (max-width: 640px) { .recap-grid { grid-template-columns: 1fr; } }

/* ---------------- Content / legal pages ---------------- */
.content-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 0 96px;
}
.content-page .eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.content-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.content-page .updated { color: var(--text-faint); font-size: 13px; margin-top: 12px; }
.content-page .lead { font-size: 18px; color: var(--text-dim); line-height: 1.6; margin-top: 24px; }
.content-page h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
.content-page h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.content-page p { color: var(--text-dim); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.content-page ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.content-page ul.bullets li { color: var(--text-dim); font-size: 15px; line-height: 1.75; margin-bottom: 8px; }
.content-page a.inline { color: var(--blue); }
.content-page a.inline:hover { text-decoration: underline; }
.content-page hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
/* ---------------- Blog index ---------------- */
.blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 8px; }
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s, border-color .18s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.blog-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.blog-card p { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0 0 16px; }
.blog-card .blog-meta { margin-top: auto; font-size: 12px; color: var(--text-faint); }
@media (max-width: 680px) { .blog-list { grid-template-columns: 1fr; } }

.content-page .callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.content-page .callout strong { color: var(--text); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px 0 8px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.contact-card .icon { font-size: 22px; margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--text-dim); margin: 0; }
.contact-card a { color: var(--blue); font-size: 13px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------- Mobile pass (shared components) ----------------
   Page layouts already collapse at their own breakpoints; this covers
   what stayed desktop-sized after they did — touch targets, oversized
   type, and anything that can push the body wider than the viewport. */
@media (max-width: 780px) {
  .container { padding: 0 18px; }

  /* Long unbroken strings (wallet addresses, order IDs) wrap rather than
     widening the page. Deliberately not `body { overflow-x: hidden }` —
     that would make the sticky header stop sticking. */
  .wallet-address, .order-no { overflow-wrap: anywhere; white-space: normal; }

  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .page-title { font-size: 26px; padding-top: 32px; }
  .content-page { padding: 40px 0 64px; }
  .content-page h2 { font-size: 20px; margin-top: 34px; }

  /* 44px minimum on anything you tap. */
  /* Same reason as the home cards: let height follow the capped width. */
  .product-card .art-wrap .product-photo { height: auto; }

  .qty-stepper button { width: 44px; height: 44px; }
  .btn { padding: 14px 22px; }
  .btn-lg { width: 100%; }
  .filter-chip { padding: 10px 16px; }
  .copy-btn { min-height: 44px; }

  .checkout-steps { flex-wrap: wrap; }
  .crypto-card { padding: 22px 18px; }
  .amount-due { font-size: 23px; }
  .crypto-actions { flex-direction: column; }
  .crypto-actions .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* Shadows and lift are motion. Someone who asked their OS to reduce it
   still gets the colour change on hover — just not the movement. */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active,
  .sf-btn, .sf-btn:hover, .sf-btn:active,
  .sf-wallet-link, .sf-wallet-link:hover {
    transform: none !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------- Misc ---------------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  border: 1px solid var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 980px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.badge-mini { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--bg-elevated); color: var(--text-dim); }
