/* Storefront styles: hero, purchase steps, schedule rows, seat picker, cart, checkout, FAQ.
   Tokens, header, footer, buttons and badges come from base.css. */

html { scroll-padding-top: 84px; }
body { overflow-x: hidden; }
[hidden] { display: none !important; }
main a:not(.btn) { text-underline-offset: 3px; }

.section { padding-top: clamp(48px, 7vw, 88px); }
.section__head { margin-bottom: 28px; max-width: 760px; }
.section__head h2, .section h2 { font-size: clamp(24px, 3.6vw, 36px); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 14px; }
.eyebrow a { display: inline-block; padding: 10px 0; text-decoration: none; }
.eyebrow a:hover { color: #fff; }

/* Film grain shared by image-backed sections */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(400px, 66vh, 640px); padding: 96px 0 52px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.88) 82%, #000 100%),
    linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 70%),
    url("../img/art-last-note.jpg") center 36% / cover no-repeat; }
.hero__title { font-size: clamp(44px, 10vw, 112px); font-weight: 900; letter-spacing: 0.05em; line-height: 1; margin: 0 0 10px; text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.hero__sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2.6vw, 26px); letter-spacing: 0.08em; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- How to buy (4 steps) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--row); }
.steps li { counter-increment: step; position: relative; padding: 24px 22px 24px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: 0.06em; margin-bottom: 14px; }
.steps li + li::after { content: ""; position: absolute; left: -7px; top: 34px; width: 12px; height: 12px; border-top: 1px solid #fff; border-right: 1px solid #fff; background: #000; transform: rotate(45deg); }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15.5px; color: #dcdcdc; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 8px; padding: 18px 16px; }
  .steps li::before { grid-row: 1 / span 2; font-size: 30px; margin: 2px 0 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps li + li::after { display: none; }
  .steps h3 { margin-bottom: 4px; }
}

/* ---------- Schedule rows ---------- */
.dates { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.date-row { border-top: 1px solid var(--line); }
.date-row:nth-child(odd) { background: var(--row); }
.date-row__link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 22px clamp(14px, 2.4vw, 28px); color: inherit; text-decoration: none; }
.date-row__link:hover { background: rgba(255, 255, 255, 0.07); }
.date-row__link:hover .btn:not(.btn--ghost) { background: transparent; color: #fff; }
.date-row__link:focus-visible { outline-offset: -3px; }
.date-row.is-active { background: rgba(255, 255, 255, 0.13); box-shadow: inset 4px 0 0 #fff; }
.date-row__when { display: flex; flex-direction: column; min-width: 0; }
.date-row__date { font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: 0.03em; line-height: 1.35; white-space: nowrap; }
.date-row__venue { font-weight: 400; font-size: 16px; color: #dcdcdc; }
.date-row__where { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.flag { flex: none; width: 27px; height: 18px; border: 1px solid rgba(255,255,255,0.25); }
.date-row__city { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.1vw, 22px); letter-spacing: 0.08em; white-space: nowrap; }
.date-row__latin { margin-left: 10px; font-size: 0.6em; letter-spacing: 0.14em; color: #cfcfcf; }
.date-row__tag { display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; line-height: 1.5; padding: 3px 8px; border: 1px solid var(--line); color: #dcdcdc; white-space: nowrap; }
.date-row__btn { min-width: 150px; }
.shows__notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #ff8b78; color: #ff8b78; font-weight: 700; }
@media (max-width: 700px) {
  .date-row__link { grid-template-columns: minmax(0, 1fr) auto; }
  .date-row__when { grid-column: 1; grid-row: 1; }
  .date-row__where { grid-column: 1; grid-row: 2; }
  .date-row__btn { grid-column: 2; grid-row: 1 / span 2; min-width: 0; padding: 12px 14px; }
}

/* ---------- Seat picker ---------- */
:root { --select: #ffb02e; }
.picker { margin-top: 28px; padding: clamp(18px, 3vw, 36px); border: 1px solid rgba(255,255,255,0.3); background: linear-gradient(180deg, #0c0c0c, #050505); scroll-margin-top: 84px; }
.picker__head .eyebrow { margin-bottom: 6px; }
.picker__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: clamp(26px, 4.4vw, 42px) !important; margin: 0 0 4px; }
.picker__title:focus { outline: none; }
.picker__note { margin: 0; font-size: 14.5px; color: var(--muted); }
.picker__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr); gap: clamp(24px, 3.4vw, 44px); align-items: start; margin-top: 26px; }
.picker__grid--nomap { grid-template-columns: minmax(0, 560px); }
.seatmap { border: 1px solid var(--line); background: radial-gradient(circle at 50% 46%, #1c1c1c 0%, #0a0a0a 58%, #050505 100%); padding: clamp(4px, 1.4vw, 14px); }
.seatmap__svg { display: block; width: 100%; height: auto; max-width: 640px; margin-inline: auto; font-family: var(--font-body); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.seatmap__floor { fill: #101010; stroke: rgba(255,255,255,0.2); stroke-width: 1.2; }
.seatmap__stage { fill: #fff; }
.seatmap__stage-label { fill: #000; font-size: 17px; font-weight: 800; letter-spacing: 0.08em; }
.zone { outline: none; transition: opacity 0.15s; }
.zone__shape { stroke: rgba(255,255,255,0.3); stroke-width: 1.2; stroke-linejoin: round; transition: fill 0.15s, stroke 0.15s; }
.zone text { pointer-events: none; }
.zone__l1 { font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; }
.zone__l2 { font-size: 20px; font-weight: 800; }
.zone__l2--small { font-size: 14.5px; }
.zone.is-available { cursor: pointer; }
.zone--light .zone__shape { fill: #e9e9e9; }
.zone--light text { fill: #000; }
.zone--mid .zone__shape { fill: #767676; }
.zone--mid text { fill: #fff; }
.zone--dark .zone__shape { fill: #333; }
.zone--dark text { fill: #fff; }
.zone--striped .zone__shape { fill: url(#pat-striped); }
.zone--striped text, .zone.is-soldout text { fill: #fff; paint-order: stroke; stroke: #000; stroke-width: 4px; stroke-linejoin: round; }
.zone.is-soldout { cursor: not-allowed; }
.zone.is-soldout .zone__shape { fill: url(#pat-soldout); stroke: rgba(255,255,255,0.3); }
.zone.is-soldout text { fill: #b4b4b4; }
.zone.is-none .zone__shape { fill: #0b0b0b; stroke: rgba(255,255,255,0.4); stroke-dasharray: 5 5; }
.zone.is-none text { fill: #8a8a8a; }
.zone.is-available:hover .zone__shape { stroke: #fff; stroke-width: 3; }
.zone--light.is-available:hover .zone__shape { fill: #fff; }
.zone--mid.is-available:hover .zone__shape { fill: #8f8f8f; }
.seatmap__svg.has-selection .zone.is-available:not(.is-selected):not(.is-same) { opacity: 0.45; }
/* same category as the selected zone: faint hint only */
.seatmap__svg.has-selection .zone.is-same { opacity: 0.8; }
/* category chosen from the list, zone still to pick: its zones are outlined */
.seatmap__svg.needs-zone .zone.is-same { opacity: 1; }
.seatmap__svg.needs-zone .zone.is-same .zone__shape { stroke: var(--select); stroke-width: 3; stroke-dasharray: 9 6; }
.seatmap__svg.has-selection .zone.is-available:not(.is-selected):hover,
.seatmap__svg.has-selection .zone.is-available:not(.is-selected):focus-visible { opacity: 1; }
.zone.is-selected .zone__shape { stroke: var(--select); stroke-width: 6; }
.zone--light.is-selected .zone__shape { fill: #fff; }
.zone[role="button"]:focus-visible .zone__shape { stroke: var(--select); stroke-width: 7; stroke-dasharray: none; }
.seatmap__key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 0; font-size: 14px; color: #cfcfcf; }
.seatmap__key li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.seatmap__caption { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.seatmap__source { margin: 2px 0 0; font-size: 15px; }
.seatmap__source a { display: inline-block; padding: 10px 0; }

.swatch { display: inline-block; flex: none; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,0.45); }
.swatch--light { background: #e9e9e9; }
.swatch--mid { background: #767676; }
.swatch--dark { background: #333; }
.swatch--striped { background: repeating-linear-gradient(135deg, #b9b9b9 0 4px, #2b2b2b 4px 9px); }
.swatch--soldout { background: repeating-linear-gradient(45deg, #5a5a5a 0 1.6px, #141414 1.6px 7px); }
.swatch--none { background: #0b0b0b; border-style: dashed; }

.picker__panel-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 19px; margin-bottom: 12px; }
.picker__panel-title small { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--ok); white-space: nowrap; }
.cats { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.cats li + li { border-top: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; width: 100%; min-height: 56px; padding: 10px 14px; background: transparent; border: 0; border-radius: 0; color: #fff; font: inherit; text-align: left; }
button.cat { cursor: pointer; }
button.cat:hover { background: rgba(255,255,255,0.08); }
button.cat:focus-visible { outline-offset: -3px; }
.cat.is-selected { background: rgba(255, 176, 46, 0.13); box-shadow: inset 4px 0 0 var(--select); }
.cat.is-soldout { color: #8d8d8d; }
.cat__name { font-weight: 800; font-size: 17px; }
.cat__price { font-weight: 700; white-space: nowrap; }
@container (max-width: 470px) {
  .cat { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cat .swatch { grid-row: 1 / span 2; }
  .cat__price { grid-column: 2; grid-row: 2; font-size: 15.5px; }
  .cat .badge { grid-column: 3; grid-row: 1 / span 2; }
}
.picker__panel { container-type: inline-size; min-width: 0; }
.selection { margin-top: 18px; padding: 18px; border: 1px solid var(--line); background: #0d0d0d; }
.selection__hint { text-wrap: balance; word-break: auto-phrase; margin: 0; padding: 22px 12px; border: 1px dashed rgba(255,255,255,0.35); text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.selection__sub { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.selection__label { margin: 0 0 2px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.selection__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 6px; }
.selection__name strong { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; line-height: 1.3; }
.selection__note { margin: 0 0 8px; font-size: 15px; color: #dcdcdc; }
.selection__zones { margin: 4px 0 14px; }
.selection__zones-title { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.zonechips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.zonechip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid rgba(255,255,255,0.4); border-radius: 0; color: #fff; font: 700 15px var(--font-body); white-space: nowrap; }
button.zonechip { cursor: pointer; }
button.zonechip:hover { background: rgba(255,255,255,0.1); }
.zonechip.is-selected { background: var(--select); border-color: var(--select); color: #000; }
.zonechip.is-soldout { border-style: dashed; border-color: var(--line); color: #8d8d8d; }
.zonechip small { font-size: 11.5px; font-weight: 800; color: var(--accent); }
.selection__hint--inline { margin: 0 0 14px; padding: 14px 12px; font-size: 16px; }
.selection__price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-weight: 800; font-size: 26px; }
.selection__price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.selection__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.selection__qty-label { font-weight: 800; }
.selection__subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0 4px; border-top: 1px solid var(--line); font-weight: 800; }
.selection__subtotal strong { font-size: 28px; white-space: nowrap; }
.selection__max { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; color: #dcdcdc; }
.selection__incart { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ok); }
.selection__limit { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); }
.selection__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.selection__actions .btn { padding-inline: 12px; }
.cart-feedback { margin: 14px 0 0; min-height: 1.6em; font-size: 15.5px; font-weight: 600; color: #dcdcdc; }
.cart-feedback:empty { margin: 0; min-height: 0; }
.cart-feedback.is-ok { color: var(--ok); }
.cart-feedback.is-error { color: #ff8b78; }
.cart-feedback a { color: #fff; }
@media (max-width: 900px) {
  .picker__grid { grid-template-columns: minmax(0, 1fr); }
  .seatmap__svg { max-width: 560px; }
}
@media (max-width: 600px) {
  /* Full-bleed on phones so the map is as large (and as tappable) as the screen allows. */
  .picker { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-inline: 0; }
  .seatmap { margin-inline: calc(-1 * var(--gutter) + 6px); padding: 2px; border-inline: 0; }
  /* The 600-unit map is drawn at about 0.6x on a phone: enlarge its labels to stay readable. */
  .zone__l1 { font-size: 16.5px; }
  .zone__l2 { font-size: 23px; }
  .zone__l2--small { font-size: 17px; }
  .seatmap__stage-label { font-size: 19px; }
}

/* Sticky purchase bar (phones only, once a category is selected) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, 0.96); border-top: 1px solid rgba(255,255,255,0.35); }
.buybar__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.buybar__info strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info span { font-size: 15px; font-weight: 700; white-space: nowrap; }
.buybar .btn { flex: none; padding: 12px 16px; min-height: 48px; }
@media (min-width: 761px) { .buybar { display: none !important; } }
@media (max-width: 760px) {
  html.has-buybar body { padding-bottom: 72px; }
}

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.gallery li { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-raised); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.72) contrast(1.05); transition: filter 0.25s; }
.gallery li:hover img { filter: none; }
.gallery__credit { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .gallery li { flex: 0 0 44%; scroll-snap-align: start; }
}

/* ---------- FAQ ---------- */
.faq-section .section__head { margin-inline: auto; text-align: center; }
.faq { max-width: 760px; margin-inline: auto; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.8vw, 18px); letter-spacing: 0.04em; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-body); font-weight: 400; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 4px 20px; color: #dcdcdc; max-width: 720px; }
.faq details p { margin: 0 0 10px; }

/* Show facts (date / venue / doors / start) */
.event-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px clamp(24px, 5vw, 64px); margin: 22px 0 16px; }
.event-facts div { min-width: 0; }
.event-facts dt { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.event-facts dd { margin: 2px 0 0; font-weight: 700; font-size: clamp(16px, 1.9vw, 19px); }
@media (max-width: 760px) { .event-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .event-facts div:nth-child(-n+2) { grid-column: 1 / -1; } }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); flex: none; }
.stepper__btn { width: 44px; min-height: 44px; background: transparent; border: 0; color: #fff; font: 700 20px/1 var(--font-body); cursor: pointer; }
.stepper__btn:hover { background: rgba(255,255,255,0.12); }
.stepper__input { width: 46px; background: transparent; border: 0; border-inline: 1px solid var(--line); color: #fff; font: 800 17px var(--font-body); text-align: center; -moz-appearance: textfield; appearance: textfield; border-radius: 0; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper :focus-visible { outline-offset: -2px; }

/* ---------- Cart & checkout ---------- */
.page-head { padding-top: clamp(36px, 6vw, 64px); }
.page-head h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 8px; }
.page-head > p { margin: 0 0 28px; color: var(--muted); max-width: 720px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); container-type: inline-size; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px auto; align-items: center; gap: 12px 20px; padding: 20px clamp(12px, 2vw, 22px); border-top: 1px solid var(--line); }
.cart-line:nth-child(odd) { background: var(--row); }
.cart-line__info { display: flex; flex-direction: column; min-width: 0; font-size: 15.5px; }
.cart-line__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.cart-line__total { font-weight: 800; font-size: 19px; text-align: right; white-space: nowrap; }
.link-btn { background: none; border: 0; min-height: 44px; min-width: 44px; padding: 8px 6px; color: var(--muted); font: 700 14px var(--font-body); letter-spacing: 0.06em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff; }
.summary { border: 1px solid var(--line); background: var(--bg-raised); padding: 24px; }
.summary__title { font-size: 17px !important; margin-bottom: 14px; }
.summary__lines { list-style: none; margin: 0 0 6px; padding: 0; }
.summary__lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.summary__event { grid-column: 1 / -1; font-size: 14px; }
.summary__amount { font-weight: 700; white-space: nowrap; }
.summary__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 0; padding: 14px 0 10px; border-top: 1px solid var(--line); font-weight: 700; }
.summary__row > span:first-child { white-space: nowrap; }
.summary__total { font-weight: 800; font-size: clamp(23px, 6.6vw, 28px); white-space: nowrap; margin-left: auto; }
.summary__facevalue { margin: 0 0 8px; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; color: var(--ok); }
.summary__small { margin: 0 0 18px; font-size: 14px; }
.summary__cta { width: 100%; }
.summary__back { display: block; margin-top: 6px; padding: 10px 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.summary__back:hover { color: #fff; }
.empty-state { padding-block: 24px; }
.empty-state p { margin: 0 0 20px; }
.empty-state .dates { margin-top: 24px; }
@media (max-width: 1024px) { .cart-layout { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout .summary { order: -1; }
}
/* Cart lines stack whenever their own column is narrow (not tied to the viewport). */
@container (max-width: 640px) {
  .cart-line { grid-template-columns: auto auto minmax(0, 1fr); }
  .cart-line__info { grid-column: 1 / -1; }
  .cart-line .stepper { grid-column: 1; grid-row: 2; }
  .cart-line .link-btn { grid-column: 2; grid-row: 2; }
  .cart-line__total { grid-column: 3; grid-row: 2; }
}

/* Checkout form */
.form h2 { font-size: 19px; margin-bottom: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 6px; }
.field__req { font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 5px; border: 1px solid var(--line); color: #dcdcdc; white-space: nowrap; }
.field input::placeholder { color: #6f6f6f; font-weight: 400; }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; background: #0d0d0d; border: 1px solid rgba(255,255,255,0.32); color: #fff; font: 600 17px var(--font-body); border-radius: 0; }
.field input:focus-visible { outline-offset: 0; border-color: #fff; }
.field input[aria-invalid="true"] { border-color: #ff8b78; }
.field__hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.field__error { font-size: 14px; font-weight: 700; color: #ff8b78; margin-top: 5px; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 26px 0 0; padding: 18px; border: 1px solid var(--line); background: var(--row); }
.consent input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: #fff; }
.consent label { font-size: 15.5px; color: #e6e6e6; }
.consent .field__error { grid-column: 2; }
.form__errors { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #ff8b78; color: #ff8b78; font-weight: 700; }
.form__submit { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form__submit p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 60ch; }
.callout-nopay { margin: 0 0 28px; padding: 14px 18px; border-left: 3px solid #fff; background: var(--row); font-size: 15.5px; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } .form__submit .btn { width: 100%; } }

/* Confirmation */
.confirmation { max-width: 760px; padding-top: clamp(36px, 6vw, 64px); }
.confirmation h1 { font-size: clamp(28px, 4.6vw, 44px); }
.confirmation h1:focus { outline: none; }
.confirmation__ref { font-size: 19px; margin: 0 0 16px; }
.confirmation__ref strong { display: inline-block; font-weight: 800; letter-spacing: 0.08em; border: 1px solid var(--line); padding: 1px 10px; margin-left: 6px; white-space: nowrap; }
.confirmation__summary { margin: 24px 0; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(0, 0, 0, 0.66); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; display: flex; flex-direction: column; width: min(420px, 92vw); max-width: 100%; background: #0b0b0b; border-left: 1px solid rgba(255,255,255,0.3); box-shadow: -18px 0 50px rgba(0,0,0,0.7); transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.25s ease, visibility 0s; }
.drawer__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { margin: 0; font-size: 22px; }
.drawer__close { flex: none; width: 48px; height: 48px; background: transparent; border: 1px solid var(--line); color: #fff; font: 400 30px/1 var(--font-body); cursor: pointer; }
.drawer__close:hover { background: #fff; color: #000; }
.drawer__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer__lines { list-style: none; margin: 0; padding: 0; }
.dline { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dline:nth-child(odd) { background: var(--row); }
.dline__info { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.dline__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; }
.dline__controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.dline__total { margin-left: auto; font-weight: 800; font-size: 19px; white-space: nowrap; }
.drawer__notice { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); color: #ff8b78; font-size: 14.5px; font-weight: 700; }
.drawer__empty { padding: 36px 20px; text-align: center; }
.drawer__empty p { margin: 0 0 20px; }
.drawer__foot { flex: none; padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,0.3); background: #101010; }
.drawer__foot .summary__row { border-top: 0; padding-top: 0; }
.drawer__limit { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.drawer__cta, .drawer__continue { width: 100%; }
.drawer__continue { margin-top: 10px; }
/* While the drawer is open: lock page scroll, hide the phone purchase bar. */
html.drawer-open { overflow: hidden; }
html.drawer-open .buybar { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Japanese typography + mobile chrome (overrides of base.css where needed) ---------- */
.nowrap { white-space: nowrap; }
.break-anywhere { overflow-wrap: anywhere; }
/* Short UI labels must never orphan a single character on a second line. */
.btn, .badge, .nav a, .price, .summary__amount, .summary__total { white-space: nowrap; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-feature-settings: "palt"; }
:lang(ja) .btn { letter-spacing: 0.08em; font-size: 15px; }
:lang(ja) .badge { letter-spacing: 0.1em; font-size: 12.5px; line-height: 1.5; }
.price__tax { font-size: 0.58em; font-weight: 700; letter-spacing: 0; margin-left: 1px; }
.muted .price__tax, .cart-line__info .price__tax { font-size: 0.85em; font-weight: 400; }
/* Avoid one- or two-character last lines; break headings at phrase boundaries where supported. */
main p, main li, main dd, .field__hint, .field__error, .site-footer .disclaimer { text-wrap: pretty; }
main h1, main h2, main h3, .faq summary, .form__errors, .callout-nopay, .cart-feedback, .dates__note, .section__head p, .page-head > p { text-wrap: balance; word-break: auto-phrase; }
.faq summary { text-wrap: pretty; }

.site-footer .disclaimer { word-break: auto-phrase; }

