/* ============================================================
   FINISIT — SHOP PAGE STYLES
   Editorial luxury direction (Hermès-inspired). Image-led,
   italic-Fraunces overlay, restrained colour, generous space.
   ============================================================ */

/* ─── Sub-brand override ─── */
/* Shop is the flagship vertical — runs on master gold.
 * data-page="shop" is the new convention; data-brand="fintastic"
 * stays on body so brands.css continues to work. */
body[data-page="shop"] {
  --brand:        var(--gold);
  --brand-glow:   rgba(212, 184, 135, 0.15);
  --brand-border: var(--border-gold);
}

/* ─── Shop Layout ─── */
.shop-page {
  background: var(--bg);
  min-height: 100vh;
}

/* ─── Editorial Hero ─── */
/* Single image, single line, single CTA. The image bleeds full-width;
 * a warm ivory tonal overlay + bottom fade lifts it from "mascot
 * illustration" to "atelier photograph". */
.shop-hero {
  position: relative;
  width: 100%;
  /* Tall, generous canvas. Hermès-style hero is always taller than
   * navigation bars suggest. */
  height: clamp(560px, 78vh, 820px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ink-void);
  isolation: isolate;
}

.shop-hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shop-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Atelier treatment: gentle desaturation + warm tone. Reads as
   * editorial photography rather than mascot illustration. */
  filter: saturate(0.55) contrast(1.05) brightness(0.92) sepia(0.08);
  transition: transform var(--dur-cinema) var(--ease-luxe),
              filter var(--dur-slow) var(--ease-out);
}

/* Dark vignette + bottom fade keeps the overlay text readable
 * regardless of the underlying image. */
.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,8,11,0) 30%, rgba(7,8,11,0.55) 75%, var(--bg) 100%),
    radial-gradient(80% 60% at 50% 35%, rgba(7,8,11,0) 0%, rgba(7,8,11,0.35) 100%);
}

/* Content overlay — anchored low, generous side margins.
 * Single eyebrow + single italic line + single ghost CTA. */
.shop-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(2rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem);
  max-width: var(--container-wide);
  margin: 0 auto;
  /* Center horizontally inside the wide container. */
  left: 0; right: 0;
}

.shop-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  color: var(--ivory-soft);
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  /* No pill, no border, no animated dot. Just text. */
}

.shop-hero__title {
  font-family: var(--font-display);
  /* Big but not screaming — Hermès hero text rarely tops 80px */
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 0 0 var(--sp-6);
  max-width: 22ch;
  text-wrap: balance;
}

.shop-hero__title em {
  font-style: italic;
  font-weight: 300;
  /* No gold gradient on the italic — Hermès doesn't tint. The contrast
   * comes from the italic vs roman, not from colour. */
  color: var(--ivory);
}

.shop-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--ivory);
  text-decoration: none;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(245, 239, 228, 0.45);
  transition: color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              gap var(--dur-base) var(--ease-luxe);
}

.shop-hero__cta:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  gap: var(--sp-3);
}

@media (max-width: 640px) {
  .shop-hero { height: clamp(440px, 70vh, 560px); }
  .shop-hero__overlay { padding: 0 var(--gutter) var(--sp-7); }
}

/* ─── Trust Band (moved out of hero) ─── */
/* Slim, mono caps, hairline dividers. The four numbers used to live
 * stacked inside the hero competing for attention; out here they read
 * as a quiet endorsement. */
.shop-trust-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--sp-6) 0;
  background: var(--bg);
}

.shop-trust-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.shop-trust-num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  /* Each number occupies its own quadrant. */
  flex: 1 1 auto;
  min-width: 0;
}

.shop-trust-num__n {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.shop-trust-num__l {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ivory-dim);
}

@media (max-width: 640px) {
  .shop-trust-band__inner { gap: var(--sp-4); }
  .shop-trust-num { flex-basis: calc(50% - var(--sp-4)); }
}

/* ─── Shop Tabs ─── */
/* Quiet wayfinder strip. No pills, no gold fills — text + underline
 * only, mono caps. Sits in its own thin band below the trust strip. */
.shop-tabs {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
  padding: var(--sp-4) 0;
}

.shop-tabs__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--sp-4), 4vw, var(--sp-7));
  flex-wrap: wrap;
}

.shop-tab {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: var(--sp-2) 0;
  cursor: pointer;
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
}

.shop-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-luxe);
}

.shop-tab:hover { color: var(--ivory); }
.shop-tab.active { color: var(--gold); }
.shop-tab.active::after { transform: scaleX(1); }

/* ─── Affiliate Banner — slim editorial variant ─── */
/* The previous banner was full-width with shine animation and pill CTA.
 * Hermès never shouts; this version is a single thin line with hairline
 * dividers above and below. The original .affiliate-banner class is
 * retained for any other surfaces; .affiliate-banner--slim is the shop
 * direction. */
.affiliate-banner {
  padding: var(--sp-5) var(--gutter);
  text-align: center;
  position: relative;
}

.affiliate-banner--slim {
  margin: clamp(var(--sp-7), 8vw, var(--sp-9)) auto;
  max-width: var(--container);
  padding: var(--sp-5) var(--gutter);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}

.affiliate-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.affiliate-banner__text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: var(--leading-normal);
  letter-spacing: -0.005em;
}
.affiliate-banner__text em {
  font-style: italic;
  color: var(--ivory);
}
.affiliate-banner__text strong {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0;
}

.affiliate-banner__cta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-gold);
  padding: var(--sp-2) 0;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.affiliate-banner__cta:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.affiliate-banner__cta.copied {
  color: var(--shark-glow);
  border-color: rgba(95, 212, 232, 0.4);
}

/* ─── Shop Main Section ─── */
/* Generous padding so each section gets Hermès breathing room.
 * Was var(--sp-8)/--sp-10 (≈ 64/128px); luxury house pages run
 * 120-160px between sections. */
.shop-main {
  padding: clamp(var(--sp-8), 9vw, var(--sp-11)) var(--gutter) clamp(var(--sp-9), 12vw, var(--sp-11));
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  /* Filter tabs: 2 rows of 2 on mobile */
  .shop-tabs {
    justify-content: flex-start;
  }
  .shop-tab {
    flex: 1 1 45%;
  }
}

/* ─── Product Card ─── */
/* Hermès convention: 4:5 image area, restrained card body, italic
 * Fraunces price. No per-category color gradient — every product reads
 * with the same atelier neutrality. The badge tells you the category;
 * the card itself doesn't shift hue. */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: transform var(--dur-slow) var(--ease-luxe);
  cursor: default;
}

.product-card:hover {
  transform: none;
  border: 0;
  box-shadow: none;
}

.product-card:hover .product-card__visual {
  /* Only the image lifts on hover — subtle scale, soft warm shadow. */
  transform: scale(1.015);
}

/* Card visual area — 4:5 ratio, ivory tonal field, no category tint */
.product-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  overflow: hidden;
  background: var(--ink-midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
  transition: transform var(--dur-slow) var(--ease-luxe),
              box-shadow var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-card__visual {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* Light theme: visual area becomes pure white on the cream page —
 * Hermès convention. Uses --ink-obsidian which resolves to #FFFFFF
 * under [data-theme="light"]. Was hardcoded #FDF9EF; the existing
 * token gives stronger separation from the #FAF6EE page bg. */
[data-theme="light"] .product-card__visual {
  background: var(--ink-obsidian);
  border-color: var(--border-soft);
}

.product-card__icon {
  font-size: 4rem;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  user-select: none;
  transition: transform var(--dur-base) var(--ease-luxe);
}

.product-card__visual-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.product-card:hover .product-card__visual-bg {
  opacity: 1;
}

/* All three category visuals get the same neutral treatment.
 * Per-category gold/blue/purple wash is gone — the badge is enough
 * categorisation. */
[data-category="apparel"]   .product-card__visual-bg,
[data-category="digital"]   .product-card__visual-bg,
[data-category="collectible"] .product-card__visual-bg {
  background: radial-gradient(circle at center, rgba(212, 184, 135, 0.06) 0%, transparent 70%);
}

/* SVG illustration visuals — restrained */
.product-card__visual--apparel,
.product-card__visual--digital,
.product-card__visual--collectible {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.product-card__visual--apparel svg,
.product-card__visual--digital svg,
.product-card__visual--collectible svg { width: 56%; height: auto; max-width: 160px; }

/* Badges overlay — restrained, single border-soft outline, no fill */
.product-card__badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  right: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.product-card__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: 4px var(--sp-3);
  border-radius: 0;
  background: rgba(7, 8, 11, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 239, 228, 0.18);
  color: var(--ivory-soft);
  line-height: 1.4;
}

[data-theme="light"] .product-card__badge {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(60, 45, 20, 0.18);
  color: var(--ivory);
}

/* All category badges share the same restraint — only the label text
 * differentiates. Per-category color is gone. */
.product-card__badge--apparel,
.product-card__badge--digital,
.product-card__badge--collectible { /* inherit base */ }

.product-card__bv {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--gold);
  background: rgba(7, 8, 11, 0.6);
  border: 1px solid rgba(212, 184, 135, 0.25);
  padding: 4px var(--sp-3);
  border-radius: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

[data-theme="light"] .product-card__bv {
  background: rgba(255, 255, 255, 0.7);
}

/* Card body — restrained, generous gap, no padding (image is its
 * own visual frame; body sits under it directly) */
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  gap: var(--sp-2);
}

.product-card__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  line-height: var(--leading-snug);
  /* Hermès names sit in body sans, normal weight, small. The
   * personality lives in the price next to it. */
}

.product-card__name em {
  /* Some names contain <em> for accent words. Keep italic but no
   * gold gradient — luxury houses don't tint product names. */
  font-style: italic;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.product-card__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  flex: 1;
  /* Limit description to 2 lines so card heights stay even */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.product-card__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  padding: 2px var(--sp-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
}

.product-card__tag--instant {
  color: var(--shark-glow);
  border-color: rgba(95, 212, 232, 0.2);
  background: rgba(95, 212, 232, 0.05);
}

.product-card__tag--ships {
  color: var(--gold-deep);
  border-color: rgba(184, 152, 94, 0.2);
  background: rgba(184, 152, 94, 0.05);
}

/* Price row — Hermès convention: italic Fraunces, no gold gradient,
 * sits inline with name area. The italic is the "luxury tell". */
.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-1);
}

.product-card__price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
  background-clip: unset;
  line-height: 1;
  letter-spacing: 0;
}

.product-card__price-tide {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: var(--ivory-dim);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.show-tide .product-card__price-tide {
  opacity: 1;
}

/* Card actions — slim ghost outlines, restrained */
.product-card__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

.btn-cart {
  flex: 1;
  min-width: 120px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  text-align: center;
}

.btn-cart:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink-void);
}

[data-theme="light"] .btn-cart:hover {
  background: var(--ink-void);
  border-color: var(--ink-void);
  color: var(--ivory);
}

.btn-cart:active {
  transform: scale(0.99);
}

.btn-tide {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ivory-dim);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  padding: var(--sp-3);
  cursor: pointer;
  transition:
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.btn-tide:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

/* Hidden / filtered cards */
.product-card.hidden {
  display: none;
}

/* ─── Cart Overlay ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 11, 0.75);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Cart Sidebar ─── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100vw);
  background: var(--ink-midnight);
  border-left: 1px solid var(--border);
  z-index: 901;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-luxe);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-sidebar__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  letter-spacing: var(--tracking-tight);
}

.cart-sidebar__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.cart-sidebar__close:hover {
  color: var(--text);
  border-color: var(--border-gold);
  background: rgba(212, 184, 135, 0.06);
}

.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-slate) transparent;
}

.cart-sidebar__items::-webkit-scrollbar {
  width: 4px;
}

.cart-sidebar__items::-webkit-scrollbar-thumb {
  background: var(--ink-slate);
  border-radius: 4px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-8);
}

.cart-empty__icon {
  font-size: 3rem;
  opacity: 0.4;
}

.cart-empty__text {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: var(--leading-relaxed);
}

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-4);
  background: var(--ink-charcoal);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast);
}

.cart-item:hover {
  border-color: var(--border-gold);
}

.cart-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--r-md);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-item__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  line-height: var(--leading-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gold);
}

.cart-item__bv {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.cart-item__qty button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.cart-item__qty button:hover {
  color: var(--gold);
  background: rgba(212, 184, 135, 0.08);
}

.cart-item__qty span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  font-size: var(--text-xs);
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-fast);
}

.cart-item__remove:hover {
  color: #e05252;
}

/* Cart footer */
.cart-sidebar__footer {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex-shrink: 0;
  background: var(--ink-midnight);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cart-summary__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
}

.cart-summary__row--total .cart-summary__label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.cart-summary__row--total .cart-summary__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--gold);
}

.cart-summary__row--bv .cart-summary__value {
  color: var(--gold);
  font-weight: 600;
}

.cart-tide-note {
  font-size: var(--text-xs);
  color: var(--shark-glow);
  text-align: center;
  padding: var(--sp-2) var(--sp-3);
  background: rgba(95, 212, 232, 0.06);
  border: 1px solid rgba(95, 212, 232, 0.15);
  border-radius: var(--r-md);
  line-height: var(--leading-relaxed);
}

.btn-checkout {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-void);
  background: var(--grad-gold);
  border: none;
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-6);
  cursor: pointer;
  transition: opacity var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
  box-shadow: 0 4px 24px rgba(212, 184, 135, 0.25);
}

.btn-checkout:hover {
  opacity: 0.92;
  box-shadow: 0 8px 32px rgba(212, 184, 135, 0.35);
  transform: translateY(-1px);
}

.btn-checkout:active {
  transform: translateY(0);
}

/* ─── Floating Cart Button ─── */
.cart-fab {
  position: fixed;
  bottom: var(--sp-7);
  right: var(--sp-6);
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink-charcoal);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow:
    var(--shadow-md),
    0 0 24px rgba(212, 184, 135, 0.12);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.cart-fab:hover {
  transform: scale(1.08);
  background: var(--ink-graphite);
  box-shadow:
    var(--shadow-lg),
    0 0 32px rgba(212, 184, 135, 0.20);
}

.cart-fab__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--grad-gold);
  color: var(--ink-void);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}

.cart-fab__badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── Price Toggle ─── */
.shop-price-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-bottom: var(--sp-5);
}

.shop-price-toggle__label {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch__track {
  position: absolute;
  inset: 0;
  background: var(--ink-slate);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-fast);
}

.toggle-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--ivory-muted);
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}

.toggle-switch input:checked + .toggle-switch__track {
  background: var(--shark-steel);
}

.toggle-switch input:checked + .toggle-switch__track::after {
  transform: translateX(20px);
  background: var(--shark-glow);
}

.toggle-switch__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--shark-glow);
}

/* ─── Shop Footer Note ─── */
.shop-footer-note {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--sp-7) var(--gutter) var(--sp-10);
  border-top: 1px solid var(--border-soft);
}

.shop-footer-note p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  line-height: var(--leading-relaxed);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Section header ─── */
.shop-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.shop-section-header__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: var(--tracking-wide);
}

/* ─── Reveal animation ─── */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: cardReveal 0.5s var(--ease-luxe) both;
}

.product-card:nth-child(1)  { animation-delay: 0.05s; }
.product-card:nth-child(2)  { animation-delay: 0.10s; }
.product-card:nth-child(3)  { animation-delay: 0.15s; }
.product-card:nth-child(4)  { animation-delay: 0.20s; }
.product-card:nth-child(5)  { animation-delay: 0.25s; }
.product-card:nth-child(6)  { animation-delay: 0.30s; }
.product-card:nth-child(7)  { animation-delay: 0.35s; }
.product-card:nth-child(8)  { animation-delay: 0.40s; }
.product-card:nth-child(9)  { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.50s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.60s; }

/* ─── Light Mode Overrides ─── */
[data-theme="light"] .shop-hero {
  background:
    radial-gradient(800px 500px at 75% 0%, rgba(212, 184, 135, 0.18), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(31, 73, 89, 0.06), transparent 60%),
    var(--bg);
}

[data-theme="light"] .shop-hero::before {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(139, 111, 63, 0.04) 40px
  );
}

[data-theme="light"] .product-card {
  background: var(--ink-charcoal);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .product-card:hover {
  box-shadow: var(--shadow-md), 0 0 30px rgba(139, 111, 63, 0.12);
  border-color: var(--gold-bronze);
}

[data-theme="light"] .cart-sidebar {
  background: var(--surface);
  border-left-color: var(--border);
}

[data-theme="light"] .cart-item {
  background: var(--bg);
}

[data-theme="light"] .cart-sidebar__footer {
  background: var(--surface);
}

[data-theme="light"] .cart-fab {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .affiliate-banner {
  background: linear-gradient(
    90deg,
    rgba(139, 111, 63, 0.07) 0%,
    rgba(139, 111, 63, 0.13) 40%,
    rgba(139, 111, 63, 0.07) 100%
  );
}

/* Product image overlay — replace near-black gradient with subtle warm tint */
[data-theme="light"] .product-card__img-wrap::after {
  background: linear-gradient(to bottom, transparent, rgba(60, 40, 10, 0.08));
}

/* Skeleton loading shimmer — use warm gold tint instead of near-transparent white */
[data-theme="light"] .skeleton-box,
[data-theme="light"] .skeleton-line {
  background: rgba(139, 111, 63, 0.10);
}

/* ─── Responsive tweaks ─── */
@media (max-width: 768px) {
  .shop-hero {
    padding: calc(var(--nav-height) + var(--sp-7)) var(--gutter) var(--sp-7);
  }

  .shop-hero__title {
    font-size: var(--text-3xl);
  }

  .cart-fab {
    bottom: var(--sp-5);
    right: var(--sp-4);
  }

  .shop-price-toggle {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .product-card__actions {
    flex-direction: column;
  }

  .btn-tide {
    text-align: center;
  }
}

/* ====================================================================
   LIVE STORE — Printful product grid + checkout modal
   ==================================================================== */

/* ── Section header ── */
.shop-live-section {
  padding: var(--sp-10, 40px) 0 var(--sp-8, 32px);
}
.shop-section-head {
  margin-bottom: var(--sp-6, 24px);
}
.shop-section-head__title {
  font-family: var(--font-display, serif);
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 400;
  color: var(--ivory, #F0E8D6);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.shop-section-head__sub {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim, rgba(240,232,214,0.45));
}

/* ── Product card (live) ── */
.product-grid--live {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
  overflow: hidden;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
  animation: cardReveal 0.5s ease both;
}
.product-card:hover {
  border-color: rgba(212,175,39,0.25);
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.4),
    0 0 0 1px rgba(212,175,39,0.08);
}

/* Skeleton loading */
.product-card--skeleton {
  pointer-events: none;
}
.skeleton-box {
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-lg, 12px);
  width: 100%;
  aspect-ratio: 1;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
.skeleton-line {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  display: block;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

.product-card__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;  /* white bg เพราะ Printful mockup มี white bg */
  position: relative;
}
.product-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(10,12,18,0.4));
  pointer-events: none;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__img {
  transform: scale(1.05);
}
.product-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__name {
  font-family: var(--font-display, serif);
  font-size: 1rem;
  font-weight: 400;
  color: #F0E8D6;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.product-card__price {
  font-family: var(--font-mono, monospace);
  font-size: 0.825rem;
  color: #D4AF27;
  letter-spacing: 0.06em;
}
.product-card__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card__label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,232,214,0.35);
}
.product-card__select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  color: #F0E8D6;
  padding: 7px 10px;
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(240,232,214,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 28px;
}
.product-card__buy {
  margin-top: auto;
  width: 100%;
  /* override global btn-primary → gold */
  background: linear-gradient(135deg, #D4AF27 0%, #B8985E 100%) !important;
  color: #080A10 !important;
  border: none !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(212,175,39,0.22);
}
.product-card__buy:hover {
  opacity: 0.9;
  box-shadow: 0 6px 28px rgba(212,175,39,0.35);
  transform: translateY(-1px);
}
.product-card__buy:active {
  transform: translateY(0);
}

/* ── Empty / error ── */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-10, 40px);
  color: var(--ivory-muted, rgba(240,232,214,0.6));
  font-size: var(--text-sm, 0.875rem);
}
.shop-empty--error { color: #E05555; }

/* ── Status banner ── */
.shop-status-banner {
  position: sticky;
  top: var(--nav-height, 64px);
  z-index: 200;
  padding: 12px var(--gutter, 24px);
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.shop-status-banner--success {
  background: rgba(61,184,122,0.15);
  border-bottom: 1px solid rgba(61,184,122,0.3);
  color: #3DB87A;
}
.shop-status-banner--cancel {
  background: rgba(224,85,85,0.12);
  border-bottom: 1px solid rgba(224,85,85,0.25);
  color: #E05555;
}

/* Trust strip above catalog — communicates refund + secure-payment policies
   pre-purchase so users learn about the 14-day window before checkout, not
   after. Mirrors REFUND_WINDOW_DAYS in api/_lib/config.js. */
.shop-trust-strip {
  background: rgba(212, 184, 135, 0.04);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
}
.shop-trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
}
.shop-trust-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ivory-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shop-trust-pill span[aria-hidden] { font-size: 14px; }
@media (max-width: 600px) {
  .shop-trust-pill { font-size: 10.5px; }
}

/* ══════════════════════════════════════════════════════
   CHECKOUT MODAL — redesigned
   ══════════════════════════════════════════════════════ */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;       /* hidden by default; JS sets display:flex to open */
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Backdrop */
.cmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Box */
.cmodal__box {
  position: relative;
  z-index: 2;
  background: #0B0D14;
  border: 1px solid rgba(212, 175, 39, 0.18);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(212,175,39,0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.cmodal__box::-webkit-scrollbar { width: 4px; }
.cmodal__box::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

/* Close button */
.cmodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(240,232,214,0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cmodal__close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #F0E8D6;
}

/* Header with thumbnail */
.cmodal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 0;
}
.cmodal__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212,175,39,0.15);
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
}
.cmodal__header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cmodal__eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #D4AF27);
  margin: 0;
  opacity: 0.75;
}
.cmodal__title {
  font-family: var(--font-display, serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: #F0E8D6;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

/* Divider */
.cmodal__divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 20px 0;
}

/* Order summary row */
.cmodal__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(212,175,39,0.05);
  border: 1px solid rgba(212,175,39,0.12);
  border-radius: 10px;
  margin-bottom: 4px;
}
.cmodal__summary-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(240,232,214,0.45);
}
.cmodal__summary-shipping {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(212,175,39,0.7);
  white-space: nowrap;
}

/* CTA button */
.cmodal__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #D4AF27 0%, #B8985E 100%);
  border: none;
  border-radius: 12px;
  color: #0B0D14;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 4px 24px rgba(212,175,39,0.28);
  margin-top: 4px;
}
.cmodal__submit:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 8px 32px rgba(212,175,39,0.38);
  transform: translateY(-1px);
}
.cmodal__submit:active:not(:disabled) {
  transform: translateY(0);
}
.cmodal__submit:disabled,
.cmodal__submit.loading {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Checkout form ── */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 24px;
}
.checkout-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkout-form__row--3 {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}
@media (max-width: 480px) {
  .checkout-form__row,
  .checkout-form__row--3 { grid-template-columns: 1fr; }
}

.checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.checkout-form__field label {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,232,214,0.4);
}
.checkout-form__field input,
.checkout-form__field select {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  color: #F0E8D6;
  padding: 9px 11px;
  font-size: 0.875rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.checkout-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(240,232,214,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}
.checkout-form__field input:focus,
.checkout-form__field select:focus {
  outline: none;
  border-color: rgba(212,175,39,0.45);
  background: rgba(255,255,255,0.055);
}
.checkout-form__field input::placeholder {
  color: rgba(240,232,214,0.2);
}

.checkout-form__error {
  color: #E05555;
  font-size: 0.825rem;
  margin: 0;
  padding: 8px 12px;
  background: rgba(224,85,85,0.08);
  border: 1px solid rgba(224,85,85,0.2);
  border-radius: 8px;
}

/* Live grid pulse — flashes the Printful product grid after cart Checkout click */
@keyframes shopGridPulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,39,0.0); }
  35%  { box-shadow: 0 0 0 18px rgba(212,175,39,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,39,0.0); }
}
.product-grid--pulse {
  border-radius: 16px;
  animation: shopGridPulse 1.2s ease-out 2;
}

/* Promo code row in checkout modal */
.checkout-promo__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.checkout-promo__row input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono, monospace);
}
.checkout-promo__btn {
  flex-shrink: 0;
  padding: 0 16px;
  background: rgba(212,175,39,0.10);
  border: 1px solid rgba(212,175,39,0.35);
  color: #D4AF27;
  border-radius: 9px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.checkout-promo__btn:hover:not(:disabled) {
  background: rgba(212,175,39,0.18);
  border-color: rgba(212,175,39,0.55);
}
.checkout-promo__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.checkout-promo__btn.is-applied {
  background: rgba(74,222,128,0.10);
  border-color: rgba(74,222,128,0.4);
  color: #4ADE80;
}
.checkout-promo__msg {
  font-size: 0.8rem;
  margin: 4px 0 0;
  padding: 6px 10px;
  border-radius: 6px;
}
.checkout-promo__msg.is-success {
  color: #4ADE80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.18);
}
.checkout-promo__msg.is-error {
  color: #E05555;
  background: rgba(224,85,85,0.08);
  border: 1px solid rgba(224,85,85,0.20);
}

/* ================================================================
   SHOP REDESIGN — NEW COMPONENTS
   ================================================================ */

/* ─── Hero: CTA group + trust numbers ─── */
.shop-hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.shop-hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.shop-hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.shop-hero__trust-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.shop-hero__trust-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-dim);
}

.shop-hero__trust-sep {
  width: 1px;
  height: 36px;
  background: var(--border-gold);
  opacity: 0.4;
}

/* ─── Trust Bar ─── */
.shop-trust-bar {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-soft);
  padding: var(--sp-3) var(--gutter);
  overflow: hidden;
}

.shop-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.shop-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.shop-trust-item span {
  font-size: 0.85rem;
}

.shop-trust-div {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ─── Category Section Divider ─── */
.shop-cat-divider {
  padding: var(--sp-7) 0 var(--sp-5);
  text-align: center;
}

.shop-cat-divider__inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.shop-cat-divider__line {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
}

.shop-cat-divider__line::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold));
  opacity: 0.4;
}

.shop-cat-divider__line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
  opacity: 0.4;
}

.shop-cat-divider__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  white-space: nowrap;
}

/* ─── Section Head — Hermès comma-italic convention ─── */
/* Eyebrow is now an italic Fraunces phrase ending in a comma
 * ("A new chapter,") rather than a mono caps label. The headline
 * follows it lowercase ("wear the tide.") so the two read as one
 * sentence broken across two lines — a Hermès editorial tell. */
.shop-section-head {
  margin-bottom: clamp(var(--sp-6), 6vw, var(--sp-8));
}

.shop-section-head__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory-muted);
  margin-bottom: var(--sp-2);
  display: block;
}

.shop-section-head__eyebrow em {
  font-style: italic;
  color: var(--ivory);
}

.shop-section-head__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 0 0 var(--sp-3);
  line-height: 1.1;
}

.shop-section-head__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 560px;
  line-height: var(--leading-relaxed);
  margin: 0;
}

.shop-section-head__sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Alert Bot Plans ─── */
.bots-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  max-width: 780px;
  margin: 0 auto;
}

.bot-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  transition:
    transform var(--dur-base) var(--ease-luxe),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.bot-plan:hover {
  transform: translateY(-4px);
}

.bot-plan--featured {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(160deg, rgba(99,102,241,0.07) 0%, var(--ink-charcoal) 55%);
  box-shadow: 0 0 40px rgba(99,102,241,0.08);
}

.bot-plan--featured:hover {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(99,102,241,0.14);
}

.bot-plan--metals {
  border-color: rgba(212,184,135,0.3);
  background: linear-gradient(160deg, rgba(212,184,135,0.06) 0%, var(--ink-charcoal) 55%);
}

.bot-plan--metals:hover {
  border-color: rgba(212,184,135,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,184,135,0.10);
}

.bot-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6366f1, #818cf8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

.bot-plan__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.bot-plan__title-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.bot-plan__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--sp-2);
  display: block;
}

.bot-plan__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--ivory);
  margin: 0;
}

.bot-plan__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.bot-plan__price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.bot-plan__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  display: block;
}

.bot-plan--featured .bot-plan__amount {
  background: linear-gradient(135deg, #818cf8, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bot-plan--metals .bot-plan__amount {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bot-plan__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 2px;
}

.bot-plan__bots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-5);
}

.bot-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.bot-plan--featured .bot-tag {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
  color: rgba(165,180,252,0.9);
}

.bot-tag--gold {
  background: rgba(212,184,135,0.1);
  border-color: rgba(212,184,135,0.25);
  color: var(--gold);
}

.bot-tag--silver {
  background: rgba(156,163,175,0.08);
  border-color: rgba(156,163,175,0.2);
  color: #9ca3af;
}

.bot-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.bot-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--ivory-soft);
  line-height: var(--leading-snug);
}

.bot-plan__features li::before {
  content: '✓';
  color: var(--shark-glow);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.bot-plan__cta {
  display: flex;
  width: 100%;
}

.bot-plan__cta .btn {
  width: 100%;
  justify-content: center;
}

/* ─── Social Proof Strip ─── */
.shop-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-5) var(--gutter);
  background: linear-gradient(180deg, transparent, rgba(212,184,135,0.03) 50%, transparent);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: var(--sp-2);
}

.shop-social-proof__item {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.shop-social-proof__item strong {
  color: var(--gold);
}

/* ─── Live Section wrapper ─── */
/* Generous spacing between sections — Hermès direction */
.shop-live-section {
  margin-bottom: clamp(var(--sp-9), 10vw, var(--sp-11));
}

/* ─── Responsive: Alert Bot Plans ─── */
@media (max-width: 640px) {
  .bots-plans { grid-template-columns: 1fr; }
  .bot-plan { padding: var(--sp-6) var(--sp-5); }
  .shop-trust-div { display: none; }
  .shop-trust-item { font-size: 0.6rem; }
}

@media (max-width: 480px) {
  .shop-trust-bar { display: none; }
  .bot-plan__header { flex-direction: column; gap: var(--sp-2); }
  .bot-plan__price-wrap { text-align: left; }
}

/* ─── Thai-script handling for italic Fraunces ─── */
/* Italic Fraunces falls back to Noto Serif Thai which doesn't have a
 * dedicated italic. To avoid faux-italicised Thai (which always looks
 * off), drop the italic on Thai locale. The serif weight + tone
 * marks carry enough character on their own. */
:root[lang="th"] .shop-hero__title em,
:root[lang="th"] .shop-section-head__eyebrow em,
:root[lang="th"] .shop-pricing__eyebrow em,
:root[lang="th"] .shop-pricing h2 em,
:root[lang="th"] .product-card__price,
:root[lang="th"] .product-card__name em,
:root[lang="th"] .shop-trust-num__n,
:root[lang="th"] .tier__price,
:root[lang="th"] .affiliate-banner__text em {
  font-style: normal;
}

/* ─── Light theme: hero & trust band readability ─── */
[data-theme="light"] .shop-hero {
  background: var(--ivory);
}
[data-theme="light"] .shop-hero__image {
  filter: saturate(0.7) contrast(1.02) brightness(0.95) sepia(0.05);
}
[data-theme="light"] .shop-hero::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.55) 75%, var(--bg) 100%),
    radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,0) 0%, rgba(60,45,20,0.12) 100%);
}
[data-theme="light"] .shop-hero__title,
[data-theme="light"] .shop-hero__title em,
[data-theme="light"] .shop-hero__cta {
  color: var(--ink-void);
}
[data-theme="light"] .shop-hero__cta {
  border-bottom-color: rgba(60, 45, 20, 0.45);
}
[data-theme="light"] .shop-hero__cta:hover {
  border-bottom-color: var(--gold-deep);
  color: var(--gold-deep);
}
[data-theme="light"] .shop-hero__eyebrow {
  color: var(--ivory-muted);
}
[data-theme="light"] .shop-trust-num__n,
[data-theme="light"] .product-card__price,
[data-theme="light"] .product-card__name {
  color: var(--ivory);
}

/* ================================================================
   ALERT BOT SUBSCRIPTIONS — FULL PRICING SYSTEM
   ================================================================ */

/* ─── Section wrapper ─── */
.bots-section {
  max-width: 1200px;
  margin: 0 auto var(--sp-10);
  padding: 0 var(--gutter);
  position: relative;
}

/* Gold accent line above section */
.bots-section::before {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto var(--sp-8);
  border-radius: 2px;
}

/* ─── Header ─── */
.bots-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.bots-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ivory);
  margin: 0 0 var(--sp-3);
  background: linear-gradient(135deg, var(--ivory) 40%, rgba(212,184,135,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bots-header__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ─── Free Member Banner ─── */
.bots-free-banner {
  background: linear-gradient(135deg, rgba(212,184,135,0.10) 0%, rgba(212,184,135,0.05) 100%);
  border: 1px solid rgba(212,184,135,0.35);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.bots-free-banner::before {
  content: 'FREE';
  position: absolute;
  top: 50%;
  right: var(--sp-6);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(212,184,135,0.06);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.bots-free-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.bots-free-banner__left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.bots-free-banner__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.bots-free-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 3px;
}

.bots-free-banner__sub {
  font-size: var(--text-sm);
  color: var(--ivory-muted);
  line-height: var(--leading-normal);
}

.bots-free-banner__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-5);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}

.bots-free-banner__cta:hover {
  background: rgba(212,184,135,0.10);
  box-shadow: 0 0 20px rgba(212,184,135,0.15);
  color: var(--gold);
}

/* ─── Billing Toggle ─── */
.bots-billing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.bots-billing-toggle {
  display: inline-flex;
  background: var(--ink-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
}

.bots-billing-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.bots-billing-btn.active {
  background: linear-gradient(135deg, #D4B887 0%, #E8D4A8 50%, #D4B887 100%);
  color: var(--ink-void);
  box-shadow: 0 2px 14px rgba(212,184,135,0.30);
}
.bots-billing-btn.active .bots-billing-badge {
  background: rgba(8,10,16,0.15);
  border-color: rgba(8,10,16,0.25);
  color: var(--ink-void);
}

.bots-billing-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shark-glow);
  background: rgba(95,212,232,0.12);
  border: 1px solid rgba(95,212,232,0.25);
  border-radius: var(--r-pill);
  padding: 2px 7px;
}

.bots-billing-note {
  font-size: var(--text-xs);
  color: var(--text-dim);
  text-align: center;
}

/* ─── Promo Flash Bar ─── */
.bots-promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(90deg, rgba(239,68,68,0.08), rgba(249,115,22,0.08), rgba(239,68,68,0.08));
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--ivory-soft);
  animation: promoPulse 3s ease-in-out infinite;
}

@keyframes promoPulse {
  0%, 100% { border-color: rgba(249,115,22,0.25); }
  50%       { border-color: rgba(249,115,22,0.45); }
}

.bots-promo-bar__flash {
  font-size: 1.1rem;
  animation: flashPop 1.2s ease-in-out infinite;
}

@keyframes flashPop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.bots-promo-bar__code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ivory-muted);
  border: 1px dashed rgba(249,115,22,0.4);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

/* ─── Main Bot Plan Grid ─── */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
  margin-bottom: var(--sp-8);
}

/* ─── Bot Plan Card ─── */
.bot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-luxe),
    box-shadow var(--dur-base) var(--ease-out);
}

.bot-card:hover {
  transform: translateY(-4px);
}

/* Metals: gold tint */
.bot-card--metals {
  border-color: rgba(212,184,135,0.25);
  background: linear-gradient(160deg, rgba(212,184,135,0.06) 0%, var(--ink-charcoal) 50%);
}
.bot-card--metals:hover {
  border-color: rgba(212,184,135,0.45);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,184,135,0.08);
}

/* Pro: gold featured */
@keyframes proCardGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(212,184,135,0.22),
      0 0 60px rgba(212,184,135,0.10),
      0 12px 50px rgba(0,0,0,0.5);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(212,184,135,0.40),
      0 0 80px rgba(212,184,135,0.22),
      0 12px 50px rgba(0,0,0,0.5);
  }
}

.bot-card--featured {
  border-color: rgba(212,184,135,0.55);
  background: linear-gradient(160deg, rgba(212,184,135,0.11) 0%, rgba(212,184,135,0.04) 50%, var(--ink-charcoal) 100%);
  animation: proCardGlow 3.5s ease-in-out infinite;
  transform: translateY(-10px); /* elevated */
}
.bot-card--featured:hover {
  transform: translateY(-18px);
  border-color: rgba(212,184,135,0.75);
  box-shadow:
    0 0 0 1px rgba(212,184,135,0.4),
    0 0 100px rgba(212,184,135,0.25),
    0 30px 80px rgba(0,0,0,0.6);
  animation: none;
}

/* Elite: purple tint */
.bot-card--elite {
  border-color: rgba(168,85,247,0.25);
  background: linear-gradient(160deg, rgba(168,85,247,0.06) 0%, var(--ink-charcoal) 50%);
}
.bot-card--elite:hover {
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(168,85,247,0.08);
}

/* Ribbon badge */
.bot-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #C8A45A, #E8D4A8, #D4B887, #C8A45A);
  background-size: 200% 100%;
  color: #080A10;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px;
  animation: ribbonShimmer 3s linear infinite;
}

@keyframes ribbonShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Social proof badge inside featured card */
.bot-card__social-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212,184,135,0.7);
  margin-bottom: var(--sp-3);
}

.bot-card__social-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: socialPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes socialPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,184,135,0.5); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(212,184,135,0); }
}

/* Card sections */
.bot-card__top {
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
}

.bot-card--featured .bot-card__top {
  padding-top: calc(var(--sp-6) + 28px); /* ribbon clearance */
}

.bot-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--sp-2);
  display: block;
}

.bot-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--ivory);
  margin: 0 0 4px;
}

.bot-card__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--sp-4);
}

/* Price display */
.bot-card__price-wrap {
  margin-bottom: var(--sp-2);
}

.bot-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.bot-card__orig-price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: line-through;
  display: none;
}

.bot-card__amount-group {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.bot-card__currency {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--ivory-soft);
  line-height: 1;
}

.bot-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ivory);
}

.bot-card--metals .bot-card__amount {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bot-card--featured .bot-card__amount {
  background: linear-gradient(135deg, #F4E4B8 0%, #E8C86A 35%, #D4A84A 70%, #B8985E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bot-card--elite .bot-card__amount {
  background: linear-gradient(135deg, #d8b4fe 0%, #a855f7 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bot-card__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 3px;
}

.bot-card__save-note {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--shark-glow);
  background: rgba(95,212,232,0.08);
  border: 1px solid rgba(95,212,232,0.2);
  border-radius: var(--r-sm);
  padding: 3px var(--sp-2);
  margin-top: var(--sp-2);
  width: fit-content;
}

.bot-card__vs {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--sp-2);
}

.bot-card__vs strong {
  color: var(--shark-glow);
}

/* Market tags inside cards */
.bot-card__markets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bot-market-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  white-space: nowrap;
}

.bot-market-tag--gold {
  background: rgba(212,184,135,0.10);
  border-color: rgba(212,184,135,0.25);
  color: var(--gold);
}

.bot-market-tag--silver {
  background: rgba(156,163,175,0.08);
  border-color: rgba(156,163,175,0.2);
  color: #9ca3af;
}

.bot-market-tag--free {
  background: rgba(95,212,232,0.08);
  border-color: rgba(95,212,232,0.2);
  color: var(--shark-glow);
}

.bot-market-tag--free em {
  font-style: normal;
  font-weight: 600;
}

/* Feature list */
.bot-card__features {
  list-style: none;
  padding: var(--sp-4) var(--sp-5);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.bot-card__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.bot-card__features li::before {
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.bot-card__features li.yes {
  color: var(--ivory-soft);
}
.bot-card__features li.yes::before {
  content: '✓';
  color: var(--shark-glow);
}

.bot-card__features li.no {
  color: var(--text-dim);
}
.bot-card__features li.no::before {
  content: '—';
  color: var(--ink-fog);
}

/* Elite perks block */
.bot-card__elite-perks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  margin: 0 var(--sp-5) var(--sp-3);
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: var(--r-lg);
}

.bot-card__elite-perk {
  font-size: var(--text-xs);
  color: rgba(216,180,254,0.85);
  line-height: 1.4;
}

/* Card footer / CTA */
.bot-card__footer {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.bot-card__btn {
  width: 100%;
  justify-content: center;
}

.bot-card__btn--elite {
  border-color: rgba(168,85,247,0.4);
  color: rgba(216,180,254,0.9);
}
.bot-card__btn--elite:hover {
  background: rgba(168,85,247,0.10);
  border-color: rgba(168,85,247,0.65);
  color: #d8b4fe;
}

.bot-card__tide-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ─── À la Carte Section ─── */
.bots-alacarte {
  background: var(--ink-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.bots-alacarte__head {
  margin-bottom: var(--sp-5);
}

.bots-alacarte__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--sp-1);
}

.bots-alacarte__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.bots-alacarte__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.bot-addon {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink-midnight);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.bot-addon:hover {
  border-color: var(--border-gold);
  background: rgba(212,184,135,0.03);
}

.bot-addon--free {
  border-color: rgba(212,184,135,0.2);
  background: rgba(212,184,135,0.04);
}

.bot-addon__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.bot-addon__info {
  flex: 1;
  min-width: 0;
}

.bot-addon__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ivory-soft);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-addon__markets {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-addon__price {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--ivory);
  white-space: nowrap;
  flex-shrink: 0;
}

.bot-addon__price span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.bot-addon__price--free {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(212,184,135,0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm);
  padding: 3px 10px;
}

.bot-addon__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}

.bot-addon__btn:hover {
  background: rgba(212,184,135,0.10);
  box-shadow: 0 0 12px rgba(212,184,135,0.12);
  color: var(--gold);
}

.bot-addon__btn--free {
  color: var(--shark-glow);
  border-color: rgba(95,212,232,0.3);
}

.bot-addon__btn--free:hover {
  background: rgba(95,212,232,0.08);
  color: var(--shark-glow);
}

.bots-alacarte__tip {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin: 0;
}

.bots-alacarte__tip a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Guarantee Strip ─── */
.bots-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
}

.bots-guarantee__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dim);
}

.bots-guarantee__item span {
  font-size: 0.9rem;
}

.bots-guarantee__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* Featured card CTA — brighter gold */
.bot-card--featured .bot-card__btn.btn-primary {
  background: linear-gradient(135deg, #E8D4A8 0%, #D4B887 40%, #B8865A 100%);
  box-shadow: 0 4px 24px rgba(212,184,135,0.35);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
}
.bot-card--featured .bot-card__btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(212,184,135,0.50);
}

/* Free banner — tighter inside */
.bots-free-banner__sub {
  color: var(--ivory-muted);
  font-size: 0.8rem;
}

/* À la carte upgrade: brighter hover ring */
.bot-addon:hover {
  border-color: rgba(212,184,135,0.5);
  background: rgba(212,184,135,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

/* Guarantee strip upgrade */
.bots-guarantee {
  background: linear-gradient(90deg, rgba(212,184,135,0.03), rgba(212,184,135,0.06), rgba(212,184,135,0.03));
  border-color: rgba(212,184,135,0.15);
}

.bots-guarantee__item {
  color: var(--text-muted);
}

/* ─── Responsive: Bots Section ─── */
@media (max-width: 1024px) {
  .bots-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bot-card--featured { transform: none; }
  .bot-card--featured:hover { transform: translateY(-4px); }
  .bot-card--elite { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .bots-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .bot-card--elite { max-width: 100%; grid-column: auto; }
  .bots-alacarte__grid { grid-template-columns: 1fr; }
  .bots-free-banner__inner { flex-direction: column; align-items: flex-start; }
  .bots-guarantee { gap: var(--sp-3); }
  .bots-guarantee__sep { display: none; }
}

@media (max-width: 480px) {
  .bots-section { padding: 0 var(--sp-4); }
  .bots-alacarte { padding: var(--sp-4); }
  .bot-card__top { padding: var(--sp-5) var(--sp-4) var(--sp-3); }
  .bot-card__markets { padding: var(--sp-3) var(--sp-4); }
  .bot-card__features { padding: var(--sp-3) var(--sp-4); }
  .bot-card__footer { padding: var(--sp-4); }
  .bots-promo-bar { gap: var(--sp-2); font-size: var(--text-xs); }
}



/* ============================================================
   PRICING BLOCK — migrated from inline <style> in shop.html.
   Single page for Free / Signals / NFT-membership tiers.
   Restyled to match the editorial direction: italic Fraunces price,
   italic comma-eyebrow, restrained borders.
   ============================================================ */

.shop-pricing {
  padding: clamp(var(--sp-9), 12vw, var(--sp-11)) 0;
  border-top: 1px solid var(--border-soft);
}

.shop-pricing__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shop-pricing__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--ivory-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--sp-2);
  display: block;
}

.shop-pricing__eyebrow em {
  font-style: italic;
  color: var(--ivory);
}

.shop-pricing h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  padding-bottom: 0.06em;
  line-height: 1.1;
}

.shop-pricing h2 em {
  font-style: italic;
  color: var(--ivory);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: currentColor;
  background-clip: unset;
  display: inline;
}

.shop-pricing__lead {
  color: var(--ivory-muted);
  font-size: var(--text-md);
  max-width: 680px;
  line-height: 1.6;
  margin: 0 0 clamp(var(--sp-7), 8vw, var(--sp-9));
  font-weight: 300;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  margin-bottom: clamp(var(--sp-8), 8vw, var(--sp-10));
}

.tier {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  padding: clamp(var(--sp-6), 4vw, var(--sp-8)) clamp(var(--sp-5), 3vw, var(--sp-7));
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}

.tier:hover {
  border-color: var(--border-gold);
  background: rgba(212, 184, 135, 0.02);
}

.tier.is-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,184,135,0.04) 0%, rgba(212,184,135,0) 100%);
  position: relative;
}

.tier.is-featured::before {
  content: 'Most chosen';
  position: absolute;
  top: -10px;
  left: clamp(var(--sp-5), 3vw, var(--sp-7));
  background: var(--gold);
  color: var(--ink-void);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.tier__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ivory);
  margin: 0 0 var(--sp-2);
  padding-bottom: 0.05em;
  letter-spacing: -0.01em;
}

.tier__tagline {
  font-size: var(--text-xs);
  color: var(--ivory-muted);
  margin: 0 0 var(--sp-5);
  line-height: 1.55;
  min-height: 38px;
}

.tier__price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-2xl), 4vw, 2.4rem);
  font-weight: 300;
  color: var(--ivory);
  padding-bottom: 0.05em;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tier__price--free { color: var(--color-success); font-style: italic; }

.tier__price-suffix {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ivory-muted);
  margin-left: var(--sp-2);
  letter-spacing: var(--tracking-wide);
}

.tier__divider {
  height: 1px;
  background: var(--border-soft);
  margin: var(--sp-5) 0;
}

.tier__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  flex: 1;
}

.tier__features li {
  font-size: var(--text-xs);
  color: var(--ivory-muted);
  line-height: 1.6;
  padding: var(--sp-2) 0 var(--sp-2) 22px;
  position: relative;
}

.tier__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: var(--sp-2);
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
}

.tier__features li.is-no { color: var(--ivory-dim); }
.tier__features li.is-no::before { content: '\2014'; color: var(--ivory-dim); font-weight: 400; }

.tier__cta {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: 500;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0;
  text-align: center;
  text-decoration: none;
  border: 1px solid;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.tier__cta--primary {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink-void);
}
.tier__cta--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-void);
}

.tier__cta--soft {
  background: transparent;
  color: var(--ivory);
  border-color: var(--border-soft);
}
.tier__cta--soft:hover {
  border-color: var(--gold);
  color: var(--gold);
}

[data-theme="light"] .tier__cta--primary {
  background: var(--ink-void);
  border-color: var(--ink-void);
  color: var(--ivory);
}
[data-theme="light"] .tier__cta--primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.compare {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  overflow-x: auto;
  margin-bottom: clamp(var(--sp-7), 8vw, var(--sp-9));
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 720px;
}

.compare th,
.compare td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.compare th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ivory-dim);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  background: rgba(255, 255, 255, 0.015);
  font-weight: 500;
}

.compare td { color: var(--ivory-muted); }
.compare td:first-child { color: var(--ivory); font-weight: 500; }
.compare td.has { color: var(--color-success); }
.compare td.no  { color: var(--ivory-dim); }

.shop-pricing .faq { max-width: 720px; margin: 0 auto; }
.shop-pricing .faq h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--ivory);
  margin: 0 0 var(--sp-5);
  padding-bottom: 0.04em;
  letter-spacing: -0.01em;
}
.shop-pricing .faq details {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border-soft);
  border-radius: 0;
  margin-bottom: 0;
  border-top: 0;
  background: transparent;
}
.shop-pricing .faq details:first-of-type { border-top: 1px solid var(--border-soft); }
.shop-pricing .faq summary {
  font-weight: 500;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
  outline: none;
  font-size: var(--text-sm);
}
.shop-pricing .faq summary::after {
  content: '+';
  float: right;
  color: var(--gold);
  font-family: var(--font-mono);
  transition: transform 0.15s;
}
.shop-pricing .faq details[open] summary::after { content: '\2212'; }
.shop-pricing .faq p {
  color: var(--ivory-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: var(--sp-3) 0 0;
}
.shop-pricing .faq a { color: var(--gold); }

/* Light theme: pricing tier readability */
[data-theme="light"] .shop-pricing h2,
[data-theme="light"] .shop-pricing__eyebrow em,
[data-theme="light"] .tier__name,
[data-theme="light"] .tier__price,
[data-theme="light"] .compare td:first-child,
[data-theme="light"] .shop-pricing .faq summary,
[data-theme="light"] .shop-pricing .faq h3 {
  color: var(--ivory);
}
