/* =====================================================
   GhettoScape Store — Full Redesign
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --bg-900: #0E0F12;
  --bg-800: #16181C;
  --bg-700: #1F2227;
  --bg-600: #2A2E35;
  --red:        #FFC53D;
  --red-dark:   #C9922B;
  --red-deeper: #A87718;
  --red-light:  #FFD968;
  --purple:     #8B5CF6;
  --purple-deep:#5B21B6;
  --cash:       #4FA968;
  --silver:     #E7E9EC;
  --steel:      #3A3F48;
  --white:      #f8fafc;
  --success:    #10b981;
  --warning:    #f59e0b;
  --error:      #ef4444;
  --glow-gradient: linear-gradient(90deg, #FFC53D 0%, #C9922B 100%);
  --font-body:    'Inter', sans-serif;
  --font-display: "Arial Black", "Archivo Black", Impact, system-ui, sans-serif;
  --header-height: 68px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(255, 197, 61,0.2);
  --transition: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--silver);
  background: var(--bg-900) linear-gradient(180deg,#101216 0%,#0E0F12 100%) center/cover no-repeat;
  background-blend-mode: overlay;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Utility ─────────────────────────────────────── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.main { padding: 1.5rem 0 4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ─── Sale Banner ─────────────────────────────────── */
/* hazard-stripe sale strip */
.store-sale-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background:
    linear-gradient(rgba(14,15,18,.82), rgba(14,15,18,.82)),
    repeating-linear-gradient(45deg, var(--red) 0 18px, #141115 18px 36px);
  border-bottom: 1px solid rgba(255, 197, 61, 0.4);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-light);
  text-align: center;
}
@media (max-width: 600px) { .store-sale-banner { font-size: 0.8rem; padding: 0.55rem 1rem; } }

/* ─── Store Hero (cinematic, layered glows) ───────── */
.store-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 140% at 50% -40%, rgba(255, 197, 61,0.14), transparent 60%),
    radial-gradient(120% 140% at 50% 0%, rgba(42,30,68,0.85), rgba(22,24,28,0.95)),
    linear-gradient(180deg, #16181C, #0E0F12);
  border-bottom: 1px solid rgba(255, 197, 61,0.18);
  padding: 2.75rem 0 2.25rem;
}
.store-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
}
.store-hero-glow-a {
  width: 420px; height: 420px; left: -120px; top: -220px;
  background: radial-gradient(circle, rgba(255, 197, 61,0.35), transparent 70%);
}
.store-hero-glow-b {
  width: 520px; height: 520px; right: -160px; top: -140px;
  background: radial-gradient(circle, rgba(168, 119, 24,0.4), transparent 70%);
}
.store-hero-content {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.store-hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.store-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--red);
  transform: skewX(-4deg);
  text-shadow: 3px 4px 0 rgba(0, 0, 0, .55);
}
/* character art on the hero's right edge */
.store-hero-art {
  align-self: flex-end;
  margin-bottom: -2.25rem;
  line-height: 0;
  pointer-events: none;
}
.store-hero-art img {
  height: clamp(150px, 22vw, 240px);
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .55));
}
@media (max-width: 900px) { .store-hero-art { display: none; } }
.store-hero-sub {
  color: var(--silver);
  font-size: 1.05rem;
  margin: 0;
  font-weight: 500;
  opacity: 0.85;
}
.store-ranks-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(255, 197, 61, 0.06);
  border: 1px solid rgba(255, 197, 61, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.store-ranks-link:hover {
  background: rgba(255, 197, 61, 0.12);
  border-color: var(--red);
}
.store-trust-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
/* crypto discount pill pops in cash green */
.store-trust-pill.crypto {
  background: rgba(79, 169, 104, 0.14);
  border-color: var(--cash);
  color: var(--cash);
  font-weight: 700;
}
.store-trust-pill.crypto:hover { background: rgba(79, 169, 104, 0.22); color: #7ed197; }
.store-trust-pill {
  background: rgba(255, 197, 61,0.07);
  border: 1px solid rgba(255, 197, 61,0.2);
  color: var(--silver);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.store-trust-pill:hover {
  background: rgba(255, 197, 61,0.12);
  border-color: rgba(255, 197, 61,0.35);
  color: var(--white);
}

/* ─── Most Popular Rail (horizontal carousel) ─────── */
.featured-rail {
  margin-bottom: 1.75rem;
}
.featured-rail-body {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}
.featured-products {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 2px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}
.featured-products-track {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  transition: transform 0.5s cubic-bezier(0.4,0.2,0.2,1);
  will-change: transform;
}
.carousel-arrow {
  width: 34px;
  align-self: center;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--steel);
  background: rgba(31,34,39,0.8);
  color: var(--red-light);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.carousel-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

/* ─── Store Layout ────────────────────────────────── */
.store-layout {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.store-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ─── Shared column section label ─────────────────── */
.col-section-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  min-height: 2.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: normal;
}
.basket-col-header {
  justify-content: space-between;
}

/* ─── Category Pill Bar (sticky, under the hero) ──── */
.store-catbar {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: rgba(22, 24, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 197, 61, 0.12);
}
.store-catbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
}
.store-categories {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.store-categories::-webkit-scrollbar { display: none; }
/* categories as green street-sign plates (matches the site nav) */
.store-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: filter .15s, transform .15s;
  color: #eafce9;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  background: #1c6b45;
  border: 1px solid #2e8f5f;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06);
  position: relative;
}
.store-category::before,
.store-category::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}
.store-category::before { left: 4px; }
.store-category::after { right: 4px; }
.store-category img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  image-rendering: pixelated;
}
.store-category:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}
.store-category.active {
  background: var(--red);
  border-color: var(--red-dark);
  color: #171204;
}
.store-category.active::before,
.store-category.active::after { background: rgba(0, 0, 0, .35); }

/* ─── Store Main ──────────────────────────────────── */
.store-main {
  flex: 1;
  min-width: 0;
}
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  margin-bottom: 1.1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}
.products-header-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.products-header-left h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.products-count {
  font-size: 0.82rem;
  color: var(--steel);
  font-weight: 500;
}
.products-header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
/* product search */
.store-search {
  background: var(--bg-700);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  color: var(--silver);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 0.4em 0.75em;
  outline: none;
  width: clamp(120px, 22vw, 220px);
  transition: border-color var(--transition);
}
.store-search::placeholder { color: var(--steel); }
.store-search:focus { border-color: var(--red); color: var(--white); }
.sort-select {
  background: var(--bg-700);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  color: var(--silver);
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.4em 0.75em;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  appearance: none;
  -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='M0 0l5 6 5-6z' fill='%234a3a3a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  padding-right: 1.8em;
}
.sort-select:hover, .sort-select:focus {
  border-color: var(--red);
  color: var(--white);
}

/* ─── Product Grid ────────────────────────────────── */
.store-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

/* ─── Product Card ("stash card": concrete + gold edge) ── */
.store-product {
  position: relative;
  background: linear-gradient(180deg, var(--bg-700), var(--bg-800));
  border: 1px solid #2b3038;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}
.store-product:hover {
  border-color: rgba(255, 197, 61,0.55);
  box-shadow: 0 12px 36px rgba(0,0,0,0.55), 0 0 24px rgba(255, 197, 61,0.22);
  transform: translateY(-4px);
}

/* Image area: radial spotlight behind the item art (also the badge anchor) */
.product-main {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 197, 61, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(31, 34, 39, 0.9), rgba(22, 24, 28, 0.6));
  padding: 1.4rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.product-image-box {
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  transition: transform var(--transition);
}
.store-product:hover .product-image-box { transform: scale(1.06); }
.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated; /* item sprites upscale crisp, not smeared */
}
/* .product-price is now .product-price-bar — see below */

/* Bottom section */
.product-topbar {
  padding: 0.75rem 0.85rem 0.5rem;
  min-height: 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.product-topbar > span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Price bar - gold price plate pinned above actions */
.product-price-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.85rem 0.4rem;
  border-top: 1px solid rgba(255, 197, 61, 0.12);
}
.product-price-bar .price-current {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #171204;
  background: var(--glow-gradient);
  border-radius: 5px;
  padding: 0.12em 0.5em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.product-price-bar .price-original {
  font-size: 0.85rem;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.85rem;
}

/* Info tooltip */
.info-icon {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}
.info-icon:hover { background: var(--red-dark); }
.info-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--bg-600);
  border: 1px solid var(--steel);
  color: var(--silver);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.45;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  white-space: normal;
}
.info-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 5px;
  border: 5px solid transparent;
  border-bottom-color: var(--steel);
}
.info-icon:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Product Badges (corner ribbon row, injected by store.js) */
.product-badges {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: flex;
  gap: 0.3rem;
  z-index: 2;
  pointer-events: none;
}
.product-badge {
  padding: 0.22em 0.65em;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.product-badge.popular { background: linear-gradient(90deg, var(--red), var(--red-dark)); }
.product-badge.new     { background: var(--success); }
.product-badge.sale    { background: linear-gradient(90deg, #f59e0b, #ef6c00); color: #180d00; }

/* Quantity controls */
.quantity-pyramid-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
}
.quantity-pyramid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
}
.quantity-input {
  width: 40px;
  height: 36px;
  text-align: center;
  background: var(--bg-700);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button { -webkit-appearance: none; display: none; }
.quantity-input:focus { border-color: var(--red); }
.quantity-pyramid-buttons {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.quantity-pyramid-wrap:hover .quantity-pyramid-buttons,
.quantity-pyramid-wrap:focus-within .quantity-pyramid-buttons {
  opacity: 1;
  pointer-events: auto;
}
.quantity-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--bg-600);
  color: var(--red-light);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.quantity-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.1);
}
@media (hover: none) and (pointer: coarse) {
  .quantity-pyramid-buttons { opacity: 1; pointer-events: auto; top: -24px; }
}

/* Add to cart - gold block button */
.add-to-cart {
  flex: 1;
  height: 36px;
  background: var(--red);
  color: #171204;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 3px 0 var(--red-dark);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.add-to-cart:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 197, 61, 0.35), 0 3px 0 var(--red-dark);
}

/* Price display helpers */
.price-current { font-weight: 700; }
.price-original { text-decoration: line-through; color: var(--steel); margin-left: 0.4rem; }
.price-discount {
  background: var(--error);
  color: var(--white);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

/* ─── Featured Product Cards (horizontal rail) ────── */
.featured-product {
  width: 190px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-600), var(--bg-800));
  border: 1px solid rgba(255, 197, 61, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  box-sizing: border-box;
}
.featured-product:hover {
  border-color: rgba(255, 197, 61,0.6);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45), var(--shadow-glow);
  transform: translateY(-2px);
}
/* hide feat-right wrapper — not used in this layout */
.featured-product .feat-right {
  display: contents;
}
.featured-products .product-main {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.featured-products .product-image-box {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 197, 61, 0.14), rgba(31, 34, 39, 0.9) 75%);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  filter: none;
}
.featured-products .product-image-box img {
  width: 100%;
  height: 100%;
  padding: 6px;
}
.featured-products .product-topbar {
  padding: 0;
  width: 100%;
  justify-content: center;
}
.featured-products .product-topbar > span {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
}
.featured-products .product-price {
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  margin: 0;
}
.featured-products .product-actions {
  padding: 0;
  width: 100%;
  margin-top: 0.1rem;
}
.featured-products .add-to-cart {
  font-size: 0.75rem;
  height: 26px;
  padding: 0 0.5rem;
  width: 100%;
}

/* ─── Cart / Basket ───────────────────────────────── */
.store-basket-wrap {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--header-height) + 3.6rem); /* clears the sticky category bar */
  align-self: flex-start;
  max-height: calc(100vh - 5rem);
}
.store-basket {
  width: 100%;
  background: linear-gradient(180deg, rgba(31,34,39,0.85), rgba(22,24,28,0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 197, 61,0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}
.basket-header { display: none; }
.basket-title-row { display: none; }
.basket-icon { display: none; }
.basket-title { display: none; }
.basket-count {
  background: rgba(255, 197, 61,0.12);
  border: 1px solid rgba(255, 197, 61,0.25);
  color: var(--red-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-pill);
}
.basket-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}
.basket-empty {
  text-align: center;
  color: var(--steel);
  font-size: 0.88rem;
  padding: 1rem 0;
}
.basket-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-700);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.65rem;
  transition: border-color var(--transition);
}
.basket-item:hover { border-color: rgba(255, 197, 61,0.25); }
.basket-item-controls {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
.basket-qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--bg-600);
  color: var(--red-light);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.basket-qty-btn:hover { background: var(--red); color: var(--white); }
.basket-item-qty {
  min-width: 22px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.basket-item-text {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--silver);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.basket-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red-light);
  flex-shrink: 0;
}
.basket-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--steel);
  font-size: 0.9rem;
  padding: 0.1rem;
  transition: color var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.basket-remove-btn:hover { color: var(--error); }
.basket-remove-icon { width: 14px; height: 14px; pointer-events: none; }

/* Cart total */
.basket-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-700);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver);
}
.basket-total-amount, .total-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red-light);
}

/* Checkout form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--silver);
}
.form-control {
  width: 100%;
  padding: 0.6em 0.85em;
  background: var(--bg-700);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--red); }
.form-checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }
.form-checkbox input[type="checkbox"] { accent-color: var(--red); width: 1em; height: 1em; }
.form-checkbox label { font-size: 0.8rem; color: var(--steel); margin: 0; font-weight: 400; }
.form-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65em 1.5em; border-radius: var(--radius-md); font-weight: 700; font-family: var(--font-display); font-size: 0.9rem; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--red); color: #171204; text-transform: uppercase; letter-spacing: .05em; font-size: 0.8rem; box-shadow: 0 3px 0 var(--red-dark); }
.btn-primary:hover { background: var(--red-light); box-shadow: 0 4px 16px rgba(255, 197, 61,0.35), 0 3px 0 var(--red-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-700); color: var(--silver); border: 1px solid var(--steel); font-size: 0.8rem; }
.btn-secondary:hover { border-color: var(--red-dark); color: var(--red); }
.btn.w-full { width: 100%; }
.mt-sm { margin-top: 0.3rem; }
#basket-checkout { display: flex; flex-direction: column; }
.basket-actions { display: flex; gap: 0.5rem; }

/* Security badge */
.basket-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--steel);
  font-weight: 500;
}
.security-icon { font-size: 0.85rem; }
.security-badge { display: flex; align-items: center; gap: 0.4rem; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
  .store-basket-wrap { width: 270px; }
}

/* ── Tablet / Mobile (≤ 1024px) ── */
@media (max-width: 1024px) {
  /* Stack: content (featured + products) then cart */
  .store-layout {
    flex-direction: column;
    gap: 1.25rem;
  }
  .store-basket-wrap {
    position: static;
    width: 100%;
    max-height: none;
    align-self: auto;
  }

  /* Most Popular: native horizontal scroll (JS skips the slide animation here) */
  .carousel-arrow { display: none; }
  .featured-products {
    overflow: auto hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 4px 2px 8px;
    scrollbar-width: none;
  }
  .featured-products::-webkit-scrollbar { display: none; }
  .featured-products-track { transform: none !important; }
  .featured-product { width: 150px; }

  /* Cart: full width, no scroll limit */
  .store-basket { max-height: none; width: 100%; }
  .basket-items { max-height: none; }

  /* Products */
  .store-products { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
  .products-header { flex-wrap: wrap; gap: 0.5rem; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .store-hero { padding: 1.5rem 0 1.25rem; }
  .store-hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .store-hero-sub { font-size: 0.85rem; }
  .store-hero-kicker { font-size: 0.62rem; }
  .store-trust-strip { gap: 0.4rem; }
  .store-trust-pill { font-size: 0.75rem; padding: 0.35rem 0.65rem; }
  .store-catbar { top: 0; } /* the site header collapses/scrolls away on phones */
  .store-products { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .product-image-box { width: 88px; height: 88px; }
  .featured-product { width: 140px; }
  .col-section-label { font-size: 1rem; }
  .products-header-left h3 { font-size: 1rem; }
}

/* ─── Payment Modal ───────────────────────────────── */
.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.payment-modal-content {
  background: var(--bg-800);
  border: 1px solid var(--steel);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.6);
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(0.4,0.2,0.2,1);
  overflow: hidden;
}
.payment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.payment-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.payment-modal-close {
  background: none;
  border: none;
  color: var(--steel);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.payment-modal-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.payment-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Order summary */
.payment-summary {
  background: var(--bg-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.payment-summary h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 0.25rem;
}
.order-items { display: flex; flex-direction: column; gap: 0.3rem; }
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--silver);
}
.order-item span:last-child { font-weight: 600; color: var(--white); }
.order-total {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red-light);
}

/* Payment method buttons */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.payment-method-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg-700);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-align: left;
}
.payment-method-btn:hover {
  border-color: rgba(255, 197, 61,0.5);
  background: var(--bg-600);
  transform: translateY(-1px);
}
.payment-method-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}
.payment-method-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.payment-method-info strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}
.payment-method-info span {
  font-size: 0.78rem;
  color: var(--steel);
}
.stripe-btn:hover { border-color: rgba(99,179,237,0.5); }
.paypal-btn:hover { border-color: rgba(253,211,77,0.5); }
.payment-method-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  border-color: var(--steel) !important;
  background: var(--bg-700) !important;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 0.1em 0.5em;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Payment loading state */
.payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}
.payment-loading h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.payment-loading p {
  font-size: 0.85rem;
  color: var(--steel);
  margin: 0;
}
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 197, 61,0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .payment-modal-content { border-radius: var(--radius-lg); }
  .payment-modal-header, .payment-modal-body { padding-left: 1rem; padding-right: 1rem; }
}

/* =====================================================
   Product Detail Page (/store/product/:id)
   ===================================================== */
.product-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin: 0.5rem 0 1.5rem; font-size: 0.9rem; color: var(--silver);
}
.product-breadcrumb a { color: var(--red-light); text-decoration: none; font-weight: 600; }
.product-breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--white); font-weight: 600; }

/* Row 1: item card + description card share a row; gallery / related stay full-width below. */
.product-page-row {
  display: grid; grid-template-columns: minmax(320px, 30rem) minmax(0, 1fr);
  gap: 1.5rem; align-items: stretch;
}
.product-page-row .product-page-description { margin-top: 0; }

/* Item card: vertical (image on top, buy panel under) now the description sits beside it. */
.product-page-top {
  display: flex; flex-direction: column; gap: 1.5rem;
  background: var(--bg-800); border: 1px solid var(--steel);
  border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md);
}
.product-page-image {
  background: var(--bg-700); border: 1px solid var(--steel);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  height: 260px; cursor: zoom-in;
}
/* width/height 100% + object-fit contain scale SMALL item sprites UP to fill the box;
   pixelated keeps the RS-style icons crisp instead of smeared when upscaled. */
.product-page-image img {
  width: 100%; height: 100%; object-fit: contain;
  image-rendering: pixelated;
}

.product-page-name { font-family: var(--font-display); color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.product-page-category { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.8; }
.product-page-category span { color: var(--red-light); font-weight: 600; }

.product-page-price { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-page-price .price-final { font-family: var(--font-display); font-size: 2rem; color: var(--white); font-weight: 700; }
.price-original { text-decoration: line-through; opacity: 0.5; font-size: 1.2rem; }
.price-discount-badge {
  background: var(--glow-gradient); color: var(--white); font-weight: 700;
  font-size: 0.85rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
}

.product-page-buy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.product-page-buy .add-to-cart {
  background: var(--glow-gradient); color: var(--white); border: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 2rem; border-radius: var(--radius-md); cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-page-buy .add-to-cart:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.product-page-buy .add-to-cart:disabled { opacity: 0.7; cursor: default; transform: none; }
.product-view-cart { display: inline-block; margin-top: 0.75rem; color: var(--red-light); font-weight: 600; text-decoration: none; }
.product-view-cart:hover { text-decoration: underline; }
.product-page-trust { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.product-page-description,
.product-page-gallery,
.product-page-related {
  background: var(--bg-800); border: 1px solid var(--steel);
  border-radius: var(--radius-xl); padding: 1.5rem 2rem; box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}
.product-page-description h2,
.product-page-gallery h2,
.product-page-related h2 {
  font-family: var(--font-display); color: var(--white); font-size: 1.2rem;
  margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--steel);
}
.product-description-body { line-height: 1.7; color: var(--silver); font-size: 1rem; }

.product-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem;
}
.product-gallery-thumb {
  background: var(--bg-700); border: 1px solid var(--steel);
  border-radius: var(--radius-md); padding: 0.75rem; cursor: zoom-in;
  display: flex; align-items: center; justify-content: center; min-height: 120px;
  transition: border-color var(--transition), transform var(--transition);
}
.product-gallery-thumb:hover { border-color: var(--red); transform: translateY(-2px); }
.product-gallery-thumb img { width: 100%; height: 120px; object-fit: contain; image-rendering: pixelated; }

.product-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.product-related-card {
  background: var(--bg-700); border: 1px solid var(--steel);
  border-radius: var(--radius-lg); padding: 1rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.product-related-card:hover { border-color: var(--red); transform: translateY(-3px); }
.product-related-card .product-image-box { height: 100px; width: 100%; display: flex; align-items: center; justify-content: center; }
.product-related-card img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.product-related-name { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.product-related-price .price-final { color: var(--red-light); font-weight: 700; }
.product-related-price .price-original { font-size: 0.85rem; margin-right: 0.4rem; }

/* Lightbox */
.product-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.product-lightbox[hidden] { display: none; }
/* min-width scales tiny sprites up to a viewable size; large art still caps at the viewport. */
.product-lightbox img {
  max-width: 92vw; max-height: 88vh; min-width: min(60vw, 480px);
  object-fit: contain; image-rendering: pixelated; border-radius: var(--radius-md);
}
.product-lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: var(--white); font-size: 2.5rem;
  cursor: pointer; line-height: 1; opacity: 0.8;
}
.product-lightbox-close:hover { opacity: 1; }

/* Store cards: the image/name area is now a link to the product page */
.product-card-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.product-card-link:hover .product-image-box img { transform: scale(1.05); }

/* Tablet: description drops below the item card; card widens back to image | info side-by-side. */
@media (max-width: 1000px) {
  .product-page-row { grid-template-columns: 1fr; }
  .product-page-top {
    display: grid; grid-template-columns: minmax(240px, 340px) 1fr;
    align-items: start; gap: 1.5rem;
  }
}

/* Phone: everything single-column, tighter padding, full-width buy button. */
@media (max-width: 720px) {
  .product-page-top { display: flex; flex-direction: column; padding: 1.25rem; }
  .product-page-image { height: 220px; }
  .product-page-description, .product-page-gallery, .product-page-related { padding: 1.25rem; }
  .product-page-buy { width: 100%; }
  .product-page-buy .add-to-cart { flex: 1; justify-content: center; }
  .product-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .product-related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Product modal (store grid popup) ────────────── */
.product-modal-backdrop {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}
.product-modal-backdrop[hidden] { display: none; }
.product-modal {
  position: relative; width: 100%; max-width: 920px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-800); border: 1px solid var(--steel);
  border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg);
}
.product-modal-close {
  position: absolute; top: 0.6rem; right: 0.9rem; z-index: 1;
  background: none; border: none; color: var(--silver); font-size: 2rem;
  cursor: pointer; line-height: 1;
}
.product-modal-close:hover { color: var(--white); }
.product-modal-body {
  display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 1.75rem;
  align-items: start;
}
.product-modal-image {
  background: var(--bg-700); border: 1px solid var(--steel);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; align-items: center; justify-content: center; height: 240px;
}
.product-modal-image img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.product-modal-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.product-modal-thumb {
  background: var(--bg-700); border: 1px solid var(--steel); border-radius: var(--radius-sm);
  width: 58px; height: 58px; padding: 0.35rem; cursor: pointer;
  transition: border-color var(--transition);
}
.product-modal-thumb:hover { border-color: var(--red); }
.product-modal-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.product-modal-buy { display: flex; gap: 0.75rem; margin-top: 1rem; align-items: stretch; }
.product-modal-qty {
  width: 64px; text-align: center; background: var(--bg-700); color: var(--white);
  border: 1px solid var(--steel); border-radius: var(--radius-md);
}
.product-modal-add {
  flex: 1; background: var(--glow-gradient); color: var(--white); border: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1rem; border-radius: var(--radius-md); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-modal-add:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.product-modal-name { font-family: var(--font-display); color: var(--white); font-size: 1.6rem; margin-bottom: 0.3rem; padding-right: 1.5rem; }
.product-modal-category { color: var(--red-light); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.8rem; }
.product-modal-price { margin-bottom: 1rem; }
.product-modal-price .price-current { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); font-weight: 700; margin-right: 0.5rem; }
.product-modal-price .price-original { text-decoration: line-through; opacity: 0.5; margin-right: 0.4rem; }
.product-modal-price .price-discount {
  background: var(--glow-gradient); color: var(--white); font-weight: 700;
  font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: var(--radius-pill);
}
.product-modal-desc { line-height: 1.65; color: var(--silver); margin-bottom: 1.25rem; }
.product-modal-page-link { color: var(--red-light); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.product-modal-page-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .product-modal { padding: 1.25rem; max-height: 92vh; }
  .product-modal-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-modal-image { height: 200px; }
}

/* iOS Safari mishandles background-attachment:fixed (sizes bg to the whole
   document, not the viewport) - use normal scroll attachment on mobile */
@media (max-width: 820px){ body { background-attachment: scroll; } }

/* Terms agreement note under the checkout button */
.basket-terms-note { font-size: 0.72rem; color: var(--silver); opacity: 0.75; text-align: center; margin: 0.5rem 0 0.25rem; line-height: 1.4; }
.basket-terms-note a { color: var(--red-light); text-decoration: underline; }

/* Crypto discount UI (mirrors CRYPTO_DISCOUNT_PERCENT in routes/checkout.js) */
.crypto-discount-badge { display:inline-block; background: var(--success); color: #06281c; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.15em 0.55em; border-radius: var(--radius-pill); margin-left: 0.4em; vertical-align: middle; }
.crypto-discount-summary { text-align: center; font-size: 0.95rem; color: var(--silver); background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius-md); padding: 0.6rem 1rem; margin-bottom: 1rem; }
.crypto-discount-summary strong { color: var(--success); font-size: 1.05rem; }
.crypto-discount-old { text-decoration: line-through; opacity: 0.6; margin-right: 0.5em; }
.crypto-guide-note { text-align: center; font-size: 0.8rem; color: var(--silver); opacity: 0.85; margin-top: 0.9rem; }
.crypto-guide-note a { color: var(--red-light); text-decoration: underline; }

/* =====================================================
   Founder Packages (pre-launch founding offer)
   Markup: views/partials/founder_packages.ejs
   Data:   config/founderPackages.js
   Tiers escalate by accent, size and finish: Street (steel) -> Block (sign
   green) -> Elite (purple) -> OG (gold) -> Kingpin (gold + purple, sheen).
   ===================================================== */

.fdr {
  position: relative;
  padding: 3.25rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 92, 246, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-900), #0b0c0f 60%, var(--bg-900));
  border-bottom: 1px solid rgba(255, 197, 61, 0.14);
}
.fdr-backdrop {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 640px;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent);
  mask-image: linear-gradient(180deg, #000 35%, transparent);
  pointer-events: none;
}
.fdr-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ─── Header ─────────────────────────────────────── */
.fdr-head { max-width: 860px; margin: 0 auto 2.25rem; text-align: center; }
.fdr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.fdr-kicker-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}
.fdr-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.6rem 0 0.9rem;
  transform: skewX(-4deg);
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.5);
}
.fdr-lede { color: #b9bec6; font-size: 1.02rem; line-height: 1.6; margin: 0 auto; max-width: 70ch; }
.fdr-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}
.fdr-rule {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  color: #c9ced6;
  line-height: 1.45;
}
.fdr-rule b { color: var(--white); display: block; font-size: 0.9rem; margin-bottom: 0.1rem; }

/* ─── Tier accents ───────────────────────────────── */
.fdr-street, .fdr-t-street  { --t: #c9ced6; --t-deep: #6b727c; --t-rgb: 201, 206, 214; --t-ink: #16181c; }
.fdr-block, .fdr-t-block    { --t: #3fb57a; --t-deep: #1c6b45; --t-rgb: 63, 181, 122;  --t-ink: #06140d; }
.fdr-elite, .fdr-t-elite    { --t: #a78bfa; --t-deep: #5b21b6; --t-rgb: 167, 139, 250; --t-ink: #ffffff; }
.fdr-og, .fdr-t-og          { --t: #ffc53d; --t-deep: #a87718; --t-rgb: 255, 197, 61;  --t-ink: #171204; }
.fdr-kingpin, .fdr-t-kingpin { --t: #ffd968; --t-deep: #c9922b; --t-rgb: 255, 217, 104; --t-ink: #171204; }

/* ─── Card grid: 3 standard tiers, then OG + Kingpin wide ── */
.fdr-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
}
.fdr-street, .fdr-block, .fdr-elite { grid-column: span 2; }
.fdr-og, .fdr-kingpin { grid-column: span 3; }

.fdr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-700), var(--bg-800));
  border: 1px solid rgba(var(--t-rgb), 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.fdr-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--t-deep), var(--t), var(--t-deep));
}
.fdr-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--t-rgb), 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 26px rgba(var(--t-rgb), 0.12);
}

/* The highest live tier: a badge and a stronger glow */
.fdr-top {
  border-color: rgba(var(--t-rgb), 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 36px rgba(var(--t-rgb), 0.18);
}
.fdr-top-ribbon {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--t), var(--t-deep));
  color: var(--t-ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Elite: purple haze */
.fdr-elite {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-700), var(--bg-800));
}

/* OG + Kingpin: wide, two-column premium cards */
.fdr-og, .fdr-kingpin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  padding: 1.7rem;
}
.fdr-og {
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 197, 61, 0.12), transparent 65%),
    linear-gradient(180deg, #202329, var(--bg-800));
  border-color: rgba(255, 197, 61, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 34px rgba(255, 197, 61, 0.08);
}
.fdr-og::before { height: 4px; }

/* Kingpin: black-and-gold with a gold/purple border and a light sweep.
   The sweep animates transform only; animating background-position here
   repainted the whole card every frame and lagged the page. */
.fdr-kingpin {
  border: 1.5px solid transparent;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(139, 92, 246, 0.18), transparent 65%) padding-box,
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 217, 104, 0.13), transparent 60%) padding-box,
    linear-gradient(180deg, #17151c, #0c0b10) padding-box,
    linear-gradient(115deg, #c9922b, #ffe7a0, #8b5cf6, #ffd968, #c9922b) border-box;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 44px rgba(255, 197, 61, 0.12);
}
.fdr-kingpin::before { height: 4px; background: linear-gradient(90deg, #c9922b, #ffe7a0, #8b5cf6, #ffd968, #c9922b); }
.fdr-kingpin::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 231, 160, 0.07) 50%, transparent 80%);
  transform: translateX(-110%);
  animation: fdr-sweep 8s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes fdr-sweep {
  0%, 55% { transform: translateX(-110%); }
  100%    { transform: translateX(330%); }
}

.fdr-card-main, .fdr-card-side { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.fdr-card-side { flex: 1; }
.fdr-og .fdr-card-side, .fdr-kingpin .fdr-card-side {
  border-left: 1px solid rgba(var(--t-rgb), 0.16);
  padding-left: 1.6rem;
}

/* ─── Card top: crest + identity + price ─────────── */
.fdr-card-top { display: flex; align-items: center; gap: 1rem; }
.fdr-crest {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 68px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 14%, 100% 64%, 50% 100%, 0 64%, 0 14%);
  background: linear-gradient(160deg, var(--t), var(--t-deep));
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.fdr-crest img { width: 100%; height: 100%; object-fit: cover; }
.fdr-crest.has-img { clip-path: none; background: none; }
.fdr-crest.has-img img { object-fit: contain; transform: scale(1.12); }

/* Founder look: the tier's full outfit on a figure (concept art) */
.fdr-look {
  position: relative;
  margin: 0;
  height: 270px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 10px;
  background: #0f0f11;
  border: 1px solid rgba(var(--t-rgb), 0.14);
  overflow: hidden;
}
/* Concept art keeps its black background (dark outfits defeat a cutout): fade the edges, tint with the tier glow */
.fdr-look img, .fdr-show-img img, .fdr-stash-img img {
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent);
  mask-image: radial-gradient(closest-side, #000 78%, transparent);
}
.fdr-look img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.fdr-look::before, .fdr-show-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 58%, rgba(var(--t-rgb), 0.16), transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.fdr-og .fdr-look, .fdr-kingpin .fdr-look { height: 400px; }

.fdr-crest-mono {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--t-ink);
  letter-spacing: 0.02em;
  margin-top: -6px;
}
.fdr-crest-bars {
  position: absolute;
  bottom: 15px;
  display: flex;
  gap: 2px;
}
.fdr-crest-bars i { width: 5px; height: 3px; border-radius: 1px; background: var(--t-ink); opacity: 0.75; }
.fdr-og .fdr-crest, .fdr-kingpin .fdr-crest { width: 78px; height: 88px; }
.fdr-og .fdr-crest-mono, .fdr-kingpin .fdr-crest-mono { font-size: 1.5rem; }
.fdr-og .fdr-crest-bars, .fdr-kingpin .fdr-crest-bars { bottom: 20px; }
.fdr-kingpin .fdr-crest {
  background: linear-gradient(160deg, #ffe7a0, #c9922b 55%, #6d4a12);
}

.fdr-id { min-width: 0; }
.fdr-tiernum {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--t-rgb), 0.85);
}
.fdr-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.2rem 0 0.35rem;
}
.fdr-og .fdr-name, .fdr-kingpin .fdr-name { font-size: 1.5rem; }
.fdr-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--t);
}
.fdr-price span {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: #8a9099;
  margin-left: 0.45rem;
  letter-spacing: 0.04em;
}
.fdr-og .fdr-price { font-size: 2.3rem; }
.fdr-og .fdr-price span, .fdr-kingpin .fdr-price span { display: block; margin: 0.35rem 0 0; }
.fdr-kingpin .fdr-price {
  font-size: 2.5rem;
  background: linear-gradient(100deg, #c9922b, #ffe7a0 45%, #ffd968 60%, #c9922b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fdr-kingpin .fdr-price span { -webkit-text-fill-color: #8a9099; }

.fdr-tagline {
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
  color: #d8dce2;
}
.fdr-pitch { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #a9aeb6; }

/* Kingpin serial, inline on the card */
.fdr-serial-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #2a2620, #15130f);
  border: 1px solid rgba(255, 217, 104, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9b35a;
}
.fdr-serial-mini b { color: #ffe7a0; font-size: 0.95rem; letter-spacing: 0.08em; }

/* ─── Benefits ───────────────────────────────────── */
.fdr-includes {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9099;
}
.fdr-includes b { color: rgba(var(--t-rgb), 0.95); }
.fdr-headline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.fdr-headline li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; line-height: 1.4; color: #e3e6ea; }
.fdr-cat {
  flex-shrink: 0;
  min-width: 70px;
  margin-top: 1px;
  padding: 0.18em 0.5em;
  border-radius: 4px;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fdr-cat-exclusive { color: #ffd968; background: rgba(255, 197, 61, 0.1); border: 1px solid rgba(255, 197, 61, 0.28); }
.fdr-cat-headstart { color: #c9ced6; background: rgba(138, 144, 153, 0.12); border: 1px solid rgba(138, 144, 153, 0.3); }
.fdr-cat-power { color: #7cf0ac; background: rgba(60, 214, 128, 0.1); border: 1px solid rgba(60, 214, 128, 0.32); }

.fdr-details { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 0.75rem; }
.fdr-details summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--t);
}
.fdr-details summary::-webkit-details-marker { display: none; }
.fdr-details summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}
.fdr-details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fdr-details summary:hover { filter: brightness(1.2); }
.fdr-details-body { margin-top: 0.75rem; }
.fdr-group {
  margin: 0.8rem 0 0.4rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fdr-group:first-child { margin-top: 0; }
.fdr-group-exclusive { color: #ffd968; }
.fdr-group-headstart { color: #c9ced6; }
.fdr-group-power, .fdr-group-stash { color: #7cf0ac; }
.fdr-details-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.32rem; }
.fdr-details-body li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #b9bec6;
}
.fdr-details-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: rgba(var(--t-rgb), 0.8);
}

/* ─── Card foot: rank + CTA ──────────────────────── */
.fdr-card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.25rem;
}
.fdr-rankline { font-size: 0.8rem; color: #d8dce2; }
.fdr-rankline span {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a9099;
  margin-bottom: 0.1rem;
}
.fdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease;
}
.fdr-btn.is-soon {
  width: 100%;
  color: var(--t);
  background: rgba(var(--t-rgb), 0.06);
  border: 1px dashed rgba(var(--t-rgb), 0.5);
  cursor: not-allowed;
  user-select: none;
}
.fdr-btn.is-discord { color: #fff; background: #5865f2; box-shadow: 0 4px 0 #3b45c4; }
.fdr-btn.is-discord:hover { filter: brightness(1.1); transform: translateY(-1px); }
.fdr-btn.is-buy {
  width: 100%;
  border: 0;
  cursor: pointer;
  color: var(--t-ink, #111);
  font-weight: 800;
  background: linear-gradient(180deg, var(--t, #ffd968), var(--t-deep, #c9922b));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 22px rgba(var(--t-rgb, 255, 217, 104), 0.2);
}
.fdr-btn.is-buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fdr-btn.is-buy:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

/* Founder checkout modal */
body.fdr-modal-open { overflow: hidden; }
.fdr-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; }
.fdr-modal[hidden] { display: none; }
.fdr-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.78); }
.fdr-modal-card {
  --t: #ffd968; --t-deep: #c9922b; --t-rgb: 255, 217, 104; --t-ink: #171204;
  position: relative;
  width: min(440px, 100%);
  padding: 1.6rem 1.5rem 1.3rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1c1e24, #121317);
  border: 1px solid rgba(255, 197, 61, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.fdr-modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.3rem 0 1rem;
}
.fdr-modal-x {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: transparent; color: #9aa1ab;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.fdr-modal-x:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.fdr-modal-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa1ab; margin-bottom: 0.35rem; }
#fdr-username {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0e0f12;
  color: #fff;
  font-size: 1rem;
}
#fdr-username:focus { outline: none; border-color: #ffd968; box-shadow: 0 0 0 3px rgba(255, 217, 104, 0.18); }
.fdr-modal-hint { margin: 0.55rem 0 1rem; font-size: 0.8rem; line-height: 1.5; color: #9aa1ab; }
.fdr-modal-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0.9rem; border-radius: 8px;
  background: rgba(255, 217, 104, 0.06); border: 1px solid rgba(255, 217, 104, 0.2);
  color: #c9ced6; font-size: 0.85rem;
}
.fdr-modal-price b { font-family: var(--font-display); font-size: 1.5rem; color: #ffd968; }
.fdr-modal-msg { min-height: 1.2em; margin: 0.6rem 0 0.8rem; font-size: 0.82rem; color: #7cf0ac; }
.fdr-modal-msg.is-bad { color: #ff8a8a; }
.fdr-modal-fine { margin: 0.8rem 0 0; font-size: 0.72rem; color: #7c828b; text-align: center; }

/* ─── Founder Serial feature band ────────────────── */
.fdr-serial {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  margin-top: 2.25rem;
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 90% at 0% 50%, rgba(255, 197, 61, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg-700), var(--bg-800));
  border: 1px solid rgba(255, 197, 61, 0.2);
}
.fdr-serial-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 2.4rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #34302a 0%, #1f1c17 45%, #141210 100%);
  border: 1px solid rgba(255, 217, 104, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 10px 26px rgba(0, 0, 0, 0.45);
}
.fdr-serial-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9a24c;
}
.fdr-serial-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff0c2, #ffd968 45%, #b98a2a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
}
.fdr-serial-rivet {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c9, #8a6a24);
}
.fdr-serial-rivet:nth-child(1) { top: 8px; left: 8px; }
.fdr-serial-rivet:nth-child(2) { top: 8px; right: 8px; }
.fdr-serial-rivet:nth-child(5) { bottom: 8px; left: 8px; }
.fdr-serial-rivet:nth-child(6) { bottom: 8px; right: 8px; }
.fdr-serial-copy h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.35rem 0 0.4rem;
}
.fdr-serial-copy p { margin: 0; color: #b9bec6; font-size: 0.92rem; line-height: 1.6; max-width: 62ch; }

/* ─── Comparison table ───────────────────────────── */
.fdr-compare { margin-top: 2.25rem; }
.fdr-compare-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.fdr-compare-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.fdr-compare-head p { margin: 0; font-size: 0.8rem; color: #8a9099; }
.fdr-compare-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-800);
}
.fdr-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 0.82rem; }
.fdr-table th, .fdr-table td { padding: 0.72rem 0.85rem; text-align: left; vertical-align: top; }
.fdr-table thead th {
  background: var(--bg-700);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid transparent;
}
.fdr-th-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.02em;
}
.fdr-th-price { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-top: 0.15rem; }
.fdr-th-street  { border-top-color: #c9ced6 !important; } .fdr-th-street  .fdr-th-price { color: #c9ced6; }
.fdr-th-block   { border-top-color: #3fb57a !important; } .fdr-th-block   .fdr-th-price { color: #3fb57a; }
.fdr-th-elite   { border-top-color: #a78bfa !important; } .fdr-th-elite   .fdr-th-price { color: #a78bfa; }
.fdr-th-og      { border-top-color: #ffc53d !important; } .fdr-th-og      .fdr-th-price { color: #ffc53d; }
.fdr-th-kingpin { border-top-color: #ffd968 !important; background: #211d14 !important; } .fdr-th-kingpin .fdr-th-price { color: #ffe7a0; }
.fdr-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 170px;
  background: var(--bg-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9099;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.fdr-table-corner { position: sticky; left: 0; z-index: 2; background: var(--bg-700) !important; }
.fdr-table tbody tr + tr th, .fdr-table tbody tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.fdr-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.fdr-table td { color: #d8dce2; }
.fdr-table td.is-empty { color: #4a5059; }
.fdr-table tr.fdr-table-group th {
  padding: 1.1rem 0.9rem 0.45rem;
  background: none;
  border-bottom: 1px solid rgba(255, 197, 61, 0.25);
  color: #ffd968;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
}
.fdr-table tbody tr.fdr-table-group:first-child th { padding-top: 0.6rem; }
.fdr-table td.fdr-td-kingpin { background: rgba(255, 217, 104, 0.05); color: #ffe7a0; }
.fdr-table td.fdr-td-og { color: #ffe3a0; }

/* ─── Showcase rows: garage, companions, in-game ─── */
.fdr-show { margin-top: 2.75rem; }
.fdr-show-head { max-width: 720px; margin-bottom: 1.1rem; }
.fdr-show-head h3, .fdr-stash-copy h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.35rem 0 0.4rem;
}
.fdr-show-head p { margin: 0; color: #b9bec6; font-size: 0.92rem; line-height: 1.6; }
.fdr-show-grid { display: grid; gap: 16px; }
.fdr-show-4 { grid-template-columns: repeat(4, 1fr); }
.fdr-show-3 { grid-template-columns: repeat(3, 1fr); }
.fdr-show-5 { grid-template-columns: repeat(5, 1fr); }
.fdr-show-1 { grid-template-columns: 1fr; }
.fdr-show-1 .fdr-show-card { display: grid; grid-template-columns: minmax(0, 1.15fr) 1fr; align-items: center; }
.fdr-show-1 .fdr-show-img { aspect-ratio: 16 / 10; }
.fdr-show-1 .fdr-show-card figcaption { padding: 2rem 2.2rem; gap: 0.45rem; }
.fdr-show-1 .fdr-show-card figcaption b { font-size: 1.7rem; }
.fdr-show-1 .fdr-show-card figcaption span { font-size: 0.98rem; }
.fdr-show-2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
.fdr-show-card {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-700), var(--bg-800));
  border: 1px solid rgba(var(--t-rgb), 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.fdr-show-img {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  background: #0f0f11;
}
.fdr-show-img { overflow: hidden; }
.fdr-show-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.fdr-show-card figcaption { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.85rem 1rem 1rem; }
.fdr-show-card figcaption b { color: var(--white); font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em; }
.fdr-show-card figcaption span { color: #aab0b9; font-size: 0.84rem; line-height: 1.45; }
.fdr-show-card .fdr-show-tier {
  color: var(--t) !important;
  font-size: 0.64rem !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fdr-stash {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 1.6rem;
  border-radius: 14px;
  background: linear-gradient(90deg, #0f0f11 0%, #0f0f11 45%, #151319 100%);
  border: 1px solid rgba(255, 197, 61, 0.35);
}
.fdr-stash-img { position: relative; }
.fdr-stash-img img { width: 100%; height: auto; display: block; }
.fdr-stash-copy ul { list-style: none; margin: 0.9rem 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.2rem; }
.fdr-stash-copy li { font-size: 0.88rem; color: #d8dce2; line-height: 1.4; }
.fdr-stash-copy li b { color: #ffd968; font-family: var(--font-display); margin-right: 0.3rem; }
.fdr-stash-copy p { margin: 0; color: #9aa1ab; font-size: 0.82rem; }

.fdr-shot { margin: 0; }
.fdr-shot img {
  width: 100%;
  aspect-ratio: 508 / 329;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.fdr-shot figcaption { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.15rem 0; }
.fdr-shot figcaption b { color: var(--white); font-size: 0.9rem; }
.fdr-shot figcaption span { color: #9aa1ab; font-size: 0.8rem; line-height: 1.45; }

@media (max-width: 1100px) {
  .fdr-show-4 { grid-template-columns: repeat(2, 1fr); }
  .fdr-show-5 { grid-template-columns: repeat(3, 1fr); }
  .fdr-stash { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fdr-show-3 { grid-template-columns: 1fr; }
  .fdr-show-1 .fdr-show-card { grid-template-columns: 1fr; }
  .fdr-show-1 .fdr-show-card figcaption { padding: 0.8rem 1rem 1rem; }
  .fdr-show-1 .fdr-show-card figcaption b { font-size: 1.1rem; }
  .fdr-show-1 .fdr-show-card figcaption span:not(.fdr-show-tier) { display: block; }
  .fdr-show-4, .fdr-show-5 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fdr-show-card figcaption { padding: 0.6rem 0.7rem 0.75rem; }
  .fdr-show-card figcaption span:not(.fdr-show-tier) { display: none; }
  .fdr-stash-copy ul { grid-template-columns: 1fr; }
  .fdr-look { height: 240px; }
  .fdr-og .fdr-look, .fdr-kingpin .fdr-look { height: 300px; }
  .fdr-backdrop { height: 420px; }
}

/* ─── "More tiers below" pill ────────────────────── */
.fdr-card { scroll-margin-top: calc(var(--header-height, 70px) + 16px); }
.fdr-more {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100vw - 32px);
  padding: 0.7rem 0.8rem 0.7rem 1.2rem;
  border-radius: 999px;
  background: #16130a;
  border: 1px solid rgba(255, 197, 61, 0.6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 197, 61, 0.18);
  color: #f1f2f4;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.fdr-more.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.fdr-more:hover { border-color: #ffd968; }
.fdr-more b { color: #ffd968; font-weight: 800; white-space: nowrap; }
.fdr-more-arrow {
  flex-shrink: 0;
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd968, #c9922b);
  animation: fdr-nudge 1.4s ease-in-out infinite;
}
.fdr-more-arrow::before {
  content: "";
  position: absolute;
  left: 50%; top: 45%;
  width: 8px; height: 8px;
  border-right: 2.5px solid #171204;
  border-bottom: 2.5px solid #171204;
  transform: translate(-50%, -50%) rotate(45deg);
}
@keyframes fdr-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
.fdr-more-short { display: none; }
@media (max-width: 760px) {
  .fdr-more { bottom: 14px; font-size: 0.82rem; padding: 0.55rem 0.55rem 0.55rem 1rem; white-space: nowrap; }
  .fdr-more-long { display: none; }
  .fdr-more-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .fdr-more { transition: opacity 220ms ease; }
  .fdr-more-arrow { animation: none; }
}

/* ─── Launch strip ───────────────────────────────── */
.fdr-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 197, 61, 0.35);
  background: rgba(255, 197, 61, 0.04);
}
.fdr-launch p { margin: 0; font-size: 0.88rem; color: #c9ced6; line-height: 1.5; max-width: 80ch; }
.fdr-launch b { color: var(--red); }

/* Founder-only store (pre-launch): the catalog and cart are hidden, the hero
   explains why. */
.store-founder-note {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: #c9ced6;
}
.store-founder-note a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .fdr-grid { grid-template-columns: repeat(2, 1fr); }
  .fdr-street, .fdr-block, .fdr-elite { grid-column: span 1; }
  .fdr-elite { grid-column: span 2; }
  .fdr-og, .fdr-kingpin { grid-column: span 2; }
  .fdr-rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .fdr { padding: 2.5rem 0 2.75rem; }
  .fdr-rules { grid-template-columns: 1fr; }
  .fdr-grid { grid-template-columns: 1fr; }
  .fdr-street, .fdr-block, .fdr-elite, .fdr-og, .fdr-kingpin { grid-column: span 1; }
  .fdr-og, .fdr-kingpin { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.35rem; }
  .fdr-og .fdr-card-side, .fdr-kingpin .fdr-card-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(var(--t-rgb), 0.16);
    padding-top: 1.1rem;
  }
  .fdr-serial { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.3rem; }
  .fdr-serial-plate { justify-self: center; }
  .fdr-cat { min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .fdr-kingpin::after { animation: none; display: none; }
  .fdr-card, .fdr-card:hover { transition: none; transform: none; }
}
