/* ============================================================
   TENNESSEE TOUGE — Tri-star crimson & navy, washi paper, touge.
   Readability rule: light text only on navy/ink surfaces,
   ink text only on paper/white surfaces.
   ============================================================ */

:root {
  --crimson: #C8102E;
  --crimson-dark: #9E0C24;
  --navy: #002D65;
  --navy-deep: #001A3D;
  --navy-night: #011230;
  --ink: #171A21;
  --paper: #F6F1E7;
  --paper-dark: #ECE4D4;
  --white: #FFFFFF;
  --mist: #B9C4D6;
  --line: rgba(23, 26, 33, .14);
  --font-display: 'Chakra Petch', 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --font-jp: 'Noto Serif JP', serif;
  --shadow-card: 0 2px 6px rgba(1, 18, 48, .08), 0 12px 32px rgba(1, 18, 48, .10);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--crimson); color: var(--white); padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(1, 18, 48, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease;
}
.nav.is-scrolled { background: rgba(1, 18, 48, .96); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: .55rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: .65rem; color: var(--white); }
.nav-brand:hover { text-decoration: none; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text strong {
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .08em;
}
.nav-brand-jp { font-family: var(--font-jp); font-size: .72rem; color: var(--mist); letter-spacing: .35em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .95rem;
  padding: .35rem 0; position: relative; letter-spacing: .02em;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--crimson); transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--white); }
.nav-cart { display: inline-flex; align-items: center; gap: .3rem; }
.cart-count {
  background: var(--crimson); color: var(--white); font-size: .7rem; font-weight: 700;
  min-width: 1.15rem; height: 1.15rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 .25rem;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--navy-night) 0%, var(--navy-deep) 46%, #0A2C55 78%, #123A69 100%);
  color: var(--white); text-align: center; overflow: hidden;
  padding: 7rem 1.2rem 9rem;
}
.hero-sun {
  position: absolute; left: 50%; top: 54%;
  width: min(62vmin, 560px); height: min(62vmin, 560px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #E01A38 0%, var(--crimson) 55%, var(--crimson-dark) 100%);
  opacity: .92;
  box-shadow: 0 0 120px rgba(200, 16, 46, .45);
  will-change: transform;
}
.hero-mtn { position: absolute; left: 0; right: 0; bottom: -2px; will-change: transform; }
.hero-mtn svg { width: 100%; height: auto; display: block; }
.hero-content { position: relative; z-index: 5; max-width: 880px; }
.hero-kicker {
  font-family: var(--font-display); letter-spacing: .5em; font-size: .85rem;
  color: var(--mist); text-transform: uppercase; margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  letter-spacing: .05em; line-height: 1.02;
  text-shadow: 0 4px 30px rgba(1, 18, 48, .55);
}
.hero-sub {
  margin: 1.4rem auto 2.2rem; max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.18rem); color: #E6ECF5;
  text-shadow: 0 2px 14px rgba(1, 18, 48, .6);
}
.hero-ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero-vertical {
  position: absolute; right: 4vw; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: .55em;
  color: rgba(255, 255, 255, .34); z-index: 4; user-select: none;
}
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 6; color: var(--mist); font-size: .75rem; letter-spacing: .3em;
  text-transform: uppercase; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Animated road dashes in hero SVG */
.road-dash {
  stroke-dasharray: 26 34;
  animation: roaddash 2.6s linear infinite;
}
@keyframes roaddash { to { stroke-dashoffset: -60; } }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--navy-night) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: var(--white); text-align: center;
  padding: 9.5rem 1.2rem 4.5rem;
}
.page-hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--crimson) 0 46px, var(--white) 46px 60px);
  opacity: .9;
}
.page-hero .kanji-bg { color: rgba(255, 255, 255, .05); }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: .06em; position: relative; z-index: 2;
}
.page-hero .lead {
  max-width: 640px; margin: 1rem auto 0; color: #DCE4F0; position: relative; z-index: 2;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 5.5rem 1.2rem; overflow: hidden; }
.section-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.section.on-paper { background: var(--paper); color: var(--ink); }
.section.on-paper-dark { background: var(--paper-dark); color: var(--ink); }
.section.on-navy { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: var(--white); }
.section.on-navy a:not(.btn) { color: #FFB4C0; }

.kicker {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .45em;
  text-transform: uppercase; color: var(--crimson); display: block; margin-bottom: .6rem;
}
.on-navy .kicker { color: #FF6B84; }
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: .03em; line-height: 1.15; margin-bottom: 1rem;
}
.brush-line {
  width: 88px; height: 8px; border: 0; margin: 1.1rem 0 1.6rem;
  background: var(--crimson);
  clip-path: polygon(0 35%, 6% 10%, 30% 0, 62% 18%, 100% 8%, 96% 70%, 70% 100%, 34% 82%, 8% 95%, 2% 70%);
}
.center .brush-line { margin-left: auto; margin-right: auto; }
.section .lead { max-width: 640px; font-size: 1.06rem; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Giant kanji watermark */
.kanji-bg {
  position: absolute; z-index: 1; user-select: none; pointer-events: none;
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(14rem, 34vw, 26rem); line-height: 1;
  color: rgba(0, 45, 101, .055);
  right: -4rem; top: 50%; transform: translateY(-50%);
}
.on-navy .kanji-bg { color: rgba(255, 255, 255, .04); }

/* Seigaiha wave divider */
.wave-divider {
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='34' viewBox='0 0 80 34'%3E%3Cg fill='none' stroke='%23002D65' stroke-opacity='.22' stroke-width='2'%3E%3Cpath d='M0 34a40 40 0 0 1 80 0M8 34a32 32 0 0 1 64 0M16 34a24 24 0 0 1 48 0M24 34a16 16 0 0 1 32 0M32 34a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 34px; background-repeat: repeat-x;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .06em;
  padding: .78rem 1.7rem; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--crimson); color: var(--white) !important; }
.btn-primary:hover { background: var(--crimson-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200, 16, 46, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white) !important; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white) !important; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 45, 101, .3); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  overflow: hidden; position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 14px rgba(1, 18, 48, .1), 0 22px 44px rgba(1, 18, 48, .16); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 100%;
  height: 4px; background: var(--crimson); transition: right .3s ease; z-index: 2;
}
.card:hover::before { right: 0; }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: .02em; color: var(--navy-deep); }
.card p { font-size: .92rem; color: #3E4450; }

/* Pillars (home) */
.pillar { text-align: left; padding: 1.6rem 1.5rem; }
.pillar .pillar-kanji {
  font-family: var(--font-jp); font-weight: 900; font-size: 2.1rem;
  color: var(--crimson); line-height: 1; margin-bottom: .7rem;
}

/* Roads list (home) */
.road-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .35rem; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.road-item:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
.road-name { font-family: var(--font-display); font-size: clamp(1.05rem, 2.6vw, 1.5rem); letter-spacing: .03em; }
.road-stat { color: var(--mist); font-size: .9rem; white-space: nowrap; }

/* ---------- Shop ---------- */
.prod-img { aspect-ratio: 1 / 1; background: var(--paper-dark); position: relative; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .prod-img img { transform: scale(1.045); }
.prod-tag {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  background: var(--navy); color: var(--white); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 4px;
}
.prod-price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--crimson); }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .5rem; }
.btn-add {
  background: var(--navy); color: var(--white); border: 0; border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .04em;
  padding: .55rem 1rem; cursor: pointer; font-size: .85rem;
  transition: background .15s ease, transform .15s ease;
}
.btn-add:hover { background: var(--crimson); transform: translateY(-1px); }
.btn-add.added { background: #1B7F4D; }
.shop-note {
  margin-top: 2.6rem; padding: 1rem 1.2rem; border-left: 4px solid var(--crimson);
  background: var(--white); border-radius: 0 8px 8px 0; font-size: .92rem; color: #3E4450;
  box-shadow: var(--shadow-card);
}

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.cart-table th {
  font-family: var(--font-display); text-align: left; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; background: var(--navy-deep); color: var(--white); padding: .8rem 1rem;
}
.cart-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.qty-controls { display: inline-flex; align-items: center; gap: .45rem; }
.qty-controls button {
  width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-weight: 700; color: var(--navy-deep); line-height: 1;
}
.qty-controls button:hover { background: var(--navy); color: var(--white); }
.cart-remove { background: none; border: 0; color: var(--crimson); cursor: pointer; font-size: .85rem; text-decoration: underline; }
.cart-summary {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem; position: sticky; top: 90px;
}
.cart-summary h3 { font-family: var(--font-display); color: var(--navy-deep); margin-bottom: 1rem; letter-spacing: .04em; }
.sum-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .95rem; }
.sum-row.total { border-top: 2px solid var(--ink); margin-top: .6rem; padding-top: .8rem; font-weight: 700; font-size: 1.15rem; }
.sum-row.total .amount { color: var(--crimson); font-family: var(--font-display); }
#paypal-buttons { margin-top: 1.2rem; }
.checkout-msg { margin-top: 1rem; font-size: .92rem; padding: .8rem 1rem; border-radius: 8px; display: none; }
.checkout-msg.ok { display: block; background: #E7F6ED; color: #14532D; border: 1px solid #9BD8B3; }
.checkout-msg.err { display: block; background: #FDE8EA; color: #7F1D1D; border: 1px solid #F2B3BC; }
.demo-banner {
  background: repeating-linear-gradient(45deg, #FFF4D6 0 14px, #FFEDBE 14px 28px);
  border: 1px solid #E5C664; color: #6B4E00; border-radius: 8px;
  padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1.2rem;
}
.empty-state {
  text-align: center; padding: 3.2rem 1rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-card); color: #3E4450;
}
.empty-state .kanji { font-family: var(--font-jp); font-size: 3rem; color: var(--paper-dark); display: block; margin-bottom: .6rem; -webkit-text-stroke: 1px var(--navy); }

/* ---------- Events / meets ---------- */
.event-card { flex-direction: row; align-items: stretch; }
.event-date {
  flex: 0 0 108px; background: var(--navy-deep); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); padding: 1rem .6rem; text-align: center;
}
.event-date .d { font-size: 2rem; font-weight: 700; line-height: 1; }
.event-date .m { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.event-date .y { font-size: .72rem; color: var(--mist); margin-top: .2rem; }
.event-card.is-past .event-date { background: #4A5468; }
.event-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: .15rem 0 .3rem; }
.chip {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: var(--paper); border: 1px solid var(--line); color: var(--navy-deep);
  border-radius: 999px; padding: .22rem .65rem;
}
.chip.chip-red { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.past-badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #4A5468; border: 1px solid #4A5468; padding: .18rem .55rem; border-radius: 4px;
}

/* ---------- Downloads ---------- */
.dl-item {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 1rem 1.2rem; transition: transform .18s ease, box-shadow .18s ease;
}
.dl-item:hover { transform: translateX(4px); box-shadow: 0 6px 14px rgba(1, 18, 48, .1), 0 18px 38px rgba(1, 18, 48, .14); }
.dl-icon {
  flex: 0 0 46px; height: 46px; border-radius: 9px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.dl-info { flex: 1; min-width: 0; }
.dl-info h3 { font-family: var(--font-display); font-size: 1rem; color: var(--navy-deep); }
.dl-info p { font-size: .85rem; color: #3E4450; }
.dl-cat-head {
  font-family: var(--font-display); letter-spacing: .18em; text-transform: uppercase;
  font-size: .85rem; color: var(--navy-deep); margin: 2rem 0 .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.dl-cat-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Meet rules ---------- */
.rules-box {
  background: var(--navy-deep); color: var(--white); border-radius: var(--radius);
  padding: 1.8rem 1.9rem; box-shadow: var(--shadow-card);
}
.rules-box h3 { font-family: var(--font-display); letter-spacing: .08em; margin-bottom: .9rem; }
.rules-box li { margin: .45rem 0 .45rem 1.2rem; color: #DCE4F0; font-size: .95rem; }

/* ---------- Product detail ---------- */
.crumbs { margin-bottom: 1.2rem; font-size: .9rem; }
.crumbs a { color: var(--navy-deep); font-weight: 600; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
.product-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-dark); box-shadow: var(--shadow-card); aspect-ratio: 1 / 1;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy-deep); letter-spacing: .02em; line-height: 1.15;
}
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--crimson); margin: .5rem 0 1rem; }
.product-desc { color: #3E4450; margin-bottom: 1.4rem; max-width: 46ch; }
.opt-group { margin-bottom: 1.15rem; }
.opt-label {
  display: block; font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy-deep); margin-bottom: .5rem;
}
.opt-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-pill {
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 8px; padding: .5rem .95rem; cursor: pointer; font: inherit; font-weight: 600;
  font-size: .9rem; transition: border-color .15s ease, background .15s ease, transform .1s ease;
  display: inline-flex; align-items: baseline; gap: .35rem;
}
.opt-pill small { font-size: .72rem; color: #6B7590; font-weight: 600; }
.opt-pill:hover { border-color: var(--navy); transform: translateY(-1px); }
.opt-pill.is-selected { border-color: var(--crimson); background: var(--crimson); color: var(--white); }
.opt-pill.is-selected small { color: #FFD3DB; }
.buy-row { display: flex; align-items: stretch; gap: .9rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.qty-big { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem; gap: .8rem !important; }
.qty-big button { width: 32px; height: 32px; font-size: 1.05rem; }
.qty-big span { min-width: 1.4rem; text-align: center; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
#addToCartBtn.added { background: #1B7F4D; }
.product-ship-note {
  font-size: .85rem; color: #3E4450; border-left: 3px solid var(--crimson);
  padding-left: .8rem; max-width: 46ch;
}
.card-link { text-decoration: none !important; color: inherit; display: flex; }
.card-link:hover { text-decoration: none; }
/* Whole-card click without nesting buttons inside links */
.card-cover { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.card .prod-foot { position: relative; z-index: 4; }
.card .prod-foot .btn-add-link { pointer-events: none; }
.btn-add-link { display: inline-block; }
.line-opts { font-size: .78rem; color: var(--navy); font-weight: 600; }

/* ---------- Floating cart button (appears once the cart has items) ---------- */
.cart-fab {
  position: fixed; right: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--crimson); color: var(--white) !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(1, 18, 48, .35);
  transition: transform .18s ease, background .18s ease, opacity .2s ease;
  text-decoration: none !important;
  opacity: 0; pointer-events: none; transform: translateY(12px);
}
.cart-fab.has-items { opacity: 1; pointer-events: auto; transform: none; }
.cart-fab.has-items:hover { background: var(--crimson-dark); transform: translateY(-3px) scale(1.04); }
.cart-fab .cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--navy-deep); border: 2px solid var(--white);
  min-width: 1.35rem; height: 1.35rem; font-size: .72rem;
}
.cart-fab.bump { animation: fabbump .45s ease; }
@keyframes fabbump {
  0% { transform: scale(1); }
  35% { transform: scale(1.18) rotate(-6deg); }
  70% { transform: scale(.96); }
  100% { transform: scale(1); }
}
body.page-checkout .cart-fab { display: none; }

/* ---------- Reveal animations (hidden state only when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll, .road-dash { animation: none; }
  .hero-sun, .hero-mtn { transform: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-night); color: var(--white); position: relative; }
.footer-wave {
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='30' viewBox='0 0 80 30'%3E%3Cg fill='none' stroke='%23C8102E' stroke-opacity='.5' stroke-width='2'%3E%3Cpath d='M0 30a40 40 0 0 1 80 0M10 30a30 30 0 0 1 60 0M20 30a20 20 0 0 1 40 0M30 30a10 10 0 0 1 20 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 30px; background-repeat: repeat-x;
}
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 2.8rem 1.2rem 2.2rem; text-align: center; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 1rem;
}
.footer-brand strong { font-family: var(--font-display); letter-spacing: .1em; display: block; }
.footer-jp { font-family: var(--font-jp); color: var(--mist); font-size: .85rem; letter-spacing: .3em; }
.footer-blurb { color: #C7D2E2; max-width: 460px; margin: 0 auto 1.3rem; font-size: .93rem; }
.footer-links { display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--white); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: #FF6B84; text-decoration: none; }
.footer-legal { color: #7C8AA3; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-vertical { display: none; }
}
@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 680px) {
  /* Cart table stacks into cards; grid columns must be allowed to shrink */
  .checkout-grid > * { min-width: 0; }
  .cart-table { display: block; }
  .cart-table thead { display: none; }
  .cart-table tbody { display: block; }
  .cart-table tr {
    display: grid; grid-template-columns: 1fr auto; gap: .35rem .9rem;
    align-items: center; padding: .95rem 1rem; border-bottom: 1px solid var(--line);
  }
  .cart-table tr:last-child { border-bottom: 0; }
  .cart-table td { display: block; padding: 0; border: 0; }
  .cart-table td:nth-child(1) { grid-column: 1 / -1; }
  .cart-table td:nth-child(2) { grid-column: 1; }
  .cart-table td:nth-child(3) { grid-column: 2; text-align: right; font-size: 1.02rem; }
  .cart-table td:nth-child(4) { grid-column: 1 / -1; text-align: right; }
  .qty-controls button { width: 32px; height: 32px; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 57px;
    flex-direction: column; gap: 0; background: var(--navy-night);
    padding: .6rem 0 1rem; border-bottom: 2px solid var(--crimson);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8rem 1.4rem; width: 100%; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
  .event-date { flex-direction: row; gap: .6rem; padding: .7rem; }
  .event-date .d { font-size: 1.4rem; }
  .checkout-grid { grid-template-columns: 1fr !important; }
  .cart-summary { position: static; }
  .section { padding: 3.8rem 1rem; }
}
