/* ==========================================================================
   TG MEDIA — SPORTS PICTURE DAY
   Endless-inspired: stark white, near-black type, static film grain,
   quiet motion, holographic/iridescent accents (kept forever, per the boss).
   Sizing matches the gallery widget: 1400px container, clamp() padding.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-soft: #8a8a8a;
  --paper: #ffffff;
  --paper-dim: #f4f4f2;
  --hairline: #e6e6e6;

  /* ---- THE CHROMATIC / HOLOGRAM SYSTEM ----------------------------------
     The real texture is a hologram photo hosted on the site. Every holo
     accent layers it OVER a CSS gradient, so if the image ever fails to
     load the gradient shows instead — the design never breaks.
     Use --holo-stack for surfaces, --holo-stack-vivid for clipped text. */
  --holo-img: url('https://thomasgardea.com/wp-content/uploads/2026/07/abstract-hologram-gradient-background_1048-10069.avif');
  --holo: linear-gradient(100deg, #ffd6e8 0%, #ffe9d6 20%, #fdffd6 40%, #d6ffe4 60%, #d6ecff 80%, #e6d6ff 100%);
  /* saturated fallback for text that has to stay readable on white */
  --holo-vivid: linear-gradient(100deg, #ff7fc3 0%, #ffab66 20%, #e3c93b 40%, #35d98c 60%, #4fa9ff 80%, #b06cff 100%);
  --holo-stack: var(--holo-img), var(--holo);
  --holo-stack-vivid: var(--holo-img), var(--holo-vivid);
  /* for SMALL accents (underlines, ticker text): the photo is multiplied
     over neutral metallic gray, so ALL color comes from the hologram photo
     itself — never a rainbow. Image missing → clean metallic gray. */
  --holo-metal: linear-gradient(120deg, #c7ccd6 0%, #a9b2bf 45%, #d3cbd8 100%);
  --holo-stack-ink: var(--holo-img), var(--holo-metal);
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --rail-w: 34px; /* width of the mobile scroll rail */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.76, 0, 0.24, 1);
}

/* --------------------------------------------------------------------------
   SCOPED RESETS — everything targets THIS page's containers only, so none
   of it leaks into the WordPress theme (header menus, logo, etc.).
   -------------------------------------------------------------------------- */
.wrap, .wrap *, .wrap *::before, .wrap *::after,
.confirm-overlay, .confirm-overlay *, .confirm-overlay *::before, .confirm-overlay *::after,
.scroll-rail, .scroll-rail *,
.grain, .cursor-dot, .cursor-ring, .cursor-ring * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wrap, .confirm-overlay {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap ::selection, .confirm-overlay ::selection { background: var(--ink); color: var(--paper); }

/* Interactive controls are not selectable text — rapid clicks were
   highlighting the labels next to the one you clicked (the "boxes"). */
.style-tabs, .style-tab, .lang-switch, .lang-btn, .stepper, .holo-cta,
.marquee, .order-submit, .confirm-close, .step-btn {
  -webkit-user-select: none;
  user-select: none;
}

.wrap img, .wrap canvas, .confirm-overlay img { display: block; max-width: 100%; }

/* Gallery-widget sizing: everything lives in a centered 1400px column */
.wrap {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px);
  background: var(--paper);
}

/* On devices with a fine pointer we hide the native cursor and use the
   custom dot/ring instead — inside THIS page's content only, so the
   WordPress header keeps its normal cursor. */
@media (hover: hover) and (pointer: fine) {
  .wrap, .wrap a, .wrap button, .wrap select, .wrap input,
  .confirm-overlay, .confirm-overlay a, .confirm-overlay button { cursor: none; }
}

/* ==========================================================================
   FILM GRAIN — static texture, same recipe as the gallery widget
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Slow shimmer for chromatic surfaces — the texture drifts like light
   moving across a hologram. Both layers' positions are animated. */
@keyframes holo-drift {
  0%   { background-position: 0% 50%, 0% 50%; }
  100% { background-position: 100% 50%, 100% 50%; }
}

/* ==========================================================================
   CUSTOM CURSOR — inverts against whatever it's over (black or white
   sections) via mix-blend difference
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 3000;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  display: none;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid #ffffff;
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out),
              background-color 0.28s;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
  .cursor-ring { display: flex; }
}
.cursor-ring .cursor-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff; /* under difference-blend this stays visible on any bg */
  opacity: 0;
  transition: opacity 0.2s;
  user-select: none;
}
.cursor-ring.is-active {
  width: 62px; height: 62px;
  background: #ffffff;
}
.cursor-ring.is-active .cursor-label { opacity: 1; }
.cursor-ring.is-down { width: 26px; height: 26px; }

/* ==========================================================================
   MOBILE SCROLL RAIL — dotted strip for your thumb (touch devices only)
   ========================================================================== */
.scroll-rail { display: none; }
@media (pointer: coarse) {
  .scroll-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: var(--rail-w);
    z-index: 1500;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    border-left: 1px solid var(--hairline);
    padding: 14px 0;
    touch-action: pan-y; /* thumb here = scroll, never model-spin */
  }
  .rail-label {
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: var(--ink-soft);
  }
  .rail-dots {
    flex: 1;
    width: 100%;
    background-image: radial-gradient(circle, var(--ink) 1.6px, transparent 1.7px);
    background-size: 12px 12px;
    background-position: center top;
    background-repeat: repeat-y;
    opacity: 0.5;
  }
}

/* ==========================================================================
   HERO — compact, no forehead
   ========================================================================== */
.hero { padding: 8px 0 26px; }

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

/* eyebrow — same spec as the gallery widget's .tg-eyebrow */
.hero-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(54px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
/* hollow line, like the gallery widget's ghost title */
.hero-title .ghost {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

/* holo period → expands into a readable "See products below" pill.
   Sizing is in the pill's OWN font-size (em), independent of the huge
   title, so the text stays legible. Collapsed it's a small round dot
   sitting after "DAY" like a period; expanded it's a full pill. */
.holo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: 0.14em;
  margin-left: 0.14em;
  font-size: clamp(13px, 1.25vw, 17px);
  height: 1.15em;              /* collapsed: ~19px dot */
  min-width: 1.15em;
  max-width: 1.15em;
  padding: 0;
  border: none;
  border-radius: 0; /* square, like the original holo period */
  background-image: var(--holo-stack);
  background-size: 220% 220%, 100% 100%;
  background-position: 0% 50%;
  animation: holo-drift 9s ease-in-out infinite alternate;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: max-width 0.9s var(--ease-snap), height 0.5s var(--ease-snap),
              padding 0.9s var(--ease-snap), transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.holo-cta .holo-cta-text {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1em;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.45s ease 0.3s;
}
.holo-cta.expanded {
  height: 2.4em;              /* expanded: ~40px tall pill */
  min-width: 0;
  max-width: 26em;
  padding: 0 1.3em;
}
.holo-cta.expanded .holo-cta-text { opacity: 1; }
.holo-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.14); }

/* meta — same spec as the gallery widget's .tg-sub */
.hero-meta {
  margin-top: 16px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ==========================================================================
   LANGUAGE SWITCH (EN / ES)
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.lang-btn {
  background: none;
  border: none;
  padding: 8px 6px; /* generous hit area — the whole word is clickable */
  font: inherit;
  color: var(--ink-soft);
  letter-spacing: inherit;
  position: relative;
  transition: color 0.25s;
}
.lang-btn.active { color: var(--ink); }
.lang-btn.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background-image: var(--holo-stack-ink);
  background-size: 500% 500%, 100% 100%;
  background-position: 35% 45%;
  background-blend-mode: multiply;
  filter: saturate(1.9) contrast(1.2);
}
/* the checkout section's switch sits on dark-adjacent white, same styles work */

/* ==========================================================================
   TICKER — same spec as the gallery widget's .tg-ticker
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 9px 0;
  margin: 18px 0 0;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 8px;
  font-family: var(--font-display);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* the desert joke, in holo — texture clipped into the letters, with a
   saturation punch so it stays legible at ticker size */
.holo-text {
  font-style: normal;
  background-image: var(--holo-stack-ink);
  background-size: 160% 160%, 100% 100%;
  background-position: 30% 50%;
  /* photo × metallic gray → all color comes from the hologram photo,
     darkened enough to stay readable at ticker size */
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(2) contrast(1.25);
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section-head { padding: 0 0 30px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 14px; max-width: 520px; }
.section-head .head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PRODUCTS + STYLE TABS (gallery-widget tg-tabs pattern)
   ========================================================================== */
.products { padding: 64px 0 70px; }

.style-tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 4vw, 56px);
  margin: 0 0 26px;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
}
.style-tabs::-webkit-scrollbar { display: none; }

.style-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 2px 16px;
  background: none;
  border: none;
  font-family: var(--font-display);
  color: var(--ink-soft);
  flex: none;
  transition: color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.style-tab .tab-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateY(-8px);
  opacity: 0.65;
}
/* dual-label roll-up on hover */
.style-tab .tab-text {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1.05em;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.style-tab .tab-text span { display: block; transition: transform 0.45s var(--ease-snap); }
.style-tab:hover .tab-text span,
.style-tab:focus-visible .tab-text span { transform: translateY(-100%); }
.style-tab.is-active { color: var(--ink); }
.style-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* sliding ink bar under the active tab (positioned by JS) — holo, of course */
.tab-ink {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-image: var(--holo-stack-ink);
  background-size: 500% 500%, 100% 100%;
  background-blend-mode: multiply;
  animation: holo-drift 7s ease-in-out infinite alternate;
  filter: saturate(1.9) contrast(1.2);
  transition: transform 0.55s var(--ease-snap), width 0.55s var(--ease-snap);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.product-card {
  border: 1px solid var(--hairline);
  background: var(--paper);
  transition: border-color 0.35s;
  position: relative;
}
.product-card:hover { border-color: var(--ink); }
.product-card::before {
  /* thin holo strip along the top, like the pamphlet's holo bar */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-image: var(--holo-stack);
  background-size: 200% 200%, 100% 100%;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 1;
}
.product-card:hover::before { opacity: 1; }
.product-card.wide { grid-column: 1 / -1; }

.viewer {
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at 50% 42%, #fdfdfc 0%, var(--paper-dim) 100%);
  position: relative;
  overflow: hidden;
  /* the canvas eats touch gestures for rotation — the scroll rail
     is the escape hatch on mobile */
  touch-action: none;
}
.product-card.wide .viewer { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .product-card.wide .viewer { aspect-ratio: 4 / 3; } }
.viewer canvas { width: 100%; height: 100%; }
/* 2D placeholder canvas overlays the (transparent) WebGL canvas until 3D loads */
.viewer canvas.viewer-2d { position: absolute; inset: 0; }

.product-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--hairline);
}
.product-card figcaption strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.product-card figcaption span { font-size: 12px; color: var(--ink-soft); }

/* ==========================================================================
   PACKAGES — black block (cards render from CATALOG in sports.js)
   ========================================================================== */
.packages {
  padding: 64px clamp(20px, 3vw, 40px) 70px;
  background: var(--ink);
  color: var(--paper);
}
.packages .section-head p { color: #9a9a9a; }

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.package-card {
  border: 1px solid #3a3a3a;
  padding: 26px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.package-card:hover { transform: translateY(-6px); border-color: var(--paper); }
.package-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #3a3a3a;
}
.package-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.pkg-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  letter-spacing: -0.03em;
  background-image: var(--holo-stack);
  background-size: 240% 240%, 100% 100%;
  animation: holo-drift 11s ease-in-out infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.package-card ul { list-style: none; }
.package-card li {
  font-size: 13.5px;
  color: #cfcfcf;
  padding: 7px 0;
  border-bottom: 1px dashed #2c2c2c;
}
.package-card li:last-child { border-bottom: none; }

.addons-note {
  margin-top: 40px;
  border: 1px dashed #4a4a4a;
  padding: 20px 24px;
}
.addons-note h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.addons-note p { font-size: 13px; color: #9a9a9a; }

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.checkout { padding: 64px 0 40px; }

/* JS adds this class to <body> when CHECKOUT_ENABLED = false */
body.checkout-disabled .checkout,
body.checkout-disabled [data-requires-checkout] { display: none !important; }

.order-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}
@media (max-width: 900px) { .order-form { grid-template-columns: 1fr; gap: 40px; } }

.order-subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  margin: 34px 0 14px;
  color: var(--ink-soft);
}
.order-subhead:first-child { margin-top: 0; }

.order-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.order-line .line-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.order-line strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.order-line .line-info > span { color: var(--ink-soft); font-size: 13px; }

/* addon lines hold 1–3 style rows, each with its own counter */
.order-line.addon {
  flex-direction: column;
  align-items: stretch;
}
.addon-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.addon-head .addon-price { color: var(--ink-soft); font-size: 13px; }
.style-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.style-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.style-row-left { display: flex; align-items: center; gap: 8px; }
.style-row .remove-style {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  width: 24px; height: 24px;
  font-size: 13px;
  line-height: 1;
  border-radius: 50%;
  transition: border-color 0.2s, color 0.2s;
}
.style-row .remove-style:hover { border-color: var(--ink); color: var(--ink); }

.addon-style {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  padding: 6px 8px;
  border-radius: 0;
  max-width: 200px;
}
.addon-style:focus { outline: 1px solid var(--ink); }
.addon-style option.opt-add { font-style: italic; }

.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink);
  flex: none;
}
.step-btn {
  width: 34px; height: 34px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.step-btn:hover { background: var(--ink); color: var(--paper); }
.step-qty {
  width: 38px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}
.order-line.has-qty { background: var(--paper-dim); }
.order-line.has-qty > .line-info strong::after,
.order-line.has-qty .addon-head strong::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background-image: var(--holo-stack-vivid);
  background-size: cover, 100% 100%;
  filter: saturate(1.4);
  vertical-align: middle;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.small { max-width: 140px; }
.field span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.field input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-bottom-width: 2px; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } .field.small { max-width: none; } }

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.order-total span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.order-total output {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 44px;
  letter-spacing: -0.03em;
}

.order-error { margin-top: 14px; font-size: 13px; color: #d43c3c; }

.order-submit {
  margin-top: 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.14em;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
}
.order-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--holo-stack);
  background-size: cover, 100% 100%;
  background-position: center;
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
}
.order-submit:hover::before { transform: translateX(0); }
.order-submit:hover { color: var(--ink); }
.order-submit > * { position: relative; z-index: 1; }
.order-submit .submit-arrow { transition: transform 0.3s var(--ease-out); }
.order-submit:hover .submit-arrow { transform: translateX(6px); }
.order-submit[disabled] { opacity: 0.5; pointer-events: none; }

.order-fineprint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}
.order-fineprint .lock-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}

/* ==========================================================================
   CONFIRMATION OVERLAY
   ========================================================================== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
  opacity: 0;
  transition: opacity 0.35s;
}
.confirm-overlay[hidden] { display: none !important; } /* display:flex would otherwise beat [hidden] */
/* belt-and-suspenders: even if a CSS optimizer strips the [hidden] rule,
   a non-visible overlay must NEVER intercept clicks on the page/header */
.confirm-overlay:not(.visible) { pointer-events: none; }
.confirm-overlay.visible { opacity: 1; }
.confirm-panel {
  background: var(--paper);
  border: 1px solid var(--ink);
  max-width: 640px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  transform: translateY(26px);
  transition: transform 0.5s var(--ease-out);
}
.confirm-overlay.visible .confirm-panel { transform: translateY(0); }
@media (max-width: 520px) { .confirm-panel { padding: 36px 22px; } }

.confirm-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 20px;
  transition: background 0.2s, color 0.2s;
}
.confirm-close:hover { background: var(--ink); color: var(--paper); }

.confirm-check {
  width: 54px; height: 54px;
  border-radius: 50%;
  background-image: var(--holo-stack);
  background-size: 260% 260%, 100% 100%;
  animation: holo-drift 8s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 18px;
}
.confirm-panel h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.03em;
}
.confirm-panel h2 .holo-dot {
  background-image: var(--holo-stack-vivid);
  background-size: 300% 300%, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  filter: saturate(1.5);
}
.confirm-sub { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.confirm-summary {
  margin-top: 22px;
  border: 1px dashed var(--hairline);
  padding: 16px 18px;
  font-size: 13px;
}
.confirm-summary .sum-line { display: flex; justify-content: space-between; padding: 4px 0; }
.confirm-summary .sum-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
}
.confirm-summary .sum-warn { margin-top: 10px; color: #b0782a; font-size: 12px; }

.pay-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 520px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card {
  border: 1px solid var(--hairline);
  padding: 16px 14px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.pay-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.pay-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.pay-card .qr { width: 120px; height: 120px; margin: 0 auto; }
.pay-card .qr svg { width: 100%; height: 100%; }
.pay-card .qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-card p { margin-top: 10px; font-size: 11px; color: var(--ink-soft); word-break: break-all; }
.confirm-fineprint { margin-top: 20px; font-size: 12px; color: var(--ink-soft); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.in:nth-child(2) { transition-delay: 0.08s; }
.reveal.in:nth-child(3) { transition-delay: 0.16s; }
.reveal.in:nth-child(4) { transition-delay: 0.24s; }

/* Keep content clear of the mobile scroll rail.
   (Lives near the end of the file so it wins over section padding above.) */
@media (pointer: coarse) {
  .wrap { padding-right: calc(var(--rail-w) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .holo-cta { max-width: 26em; min-width: 0; height: 2.4em; padding: 0 1.3em; }
  .holo-cta .holo-cta-text { opacity: 1; }
}