/* Marlboro Banya — extra pages (shop, menu, thank-you). Loaded after styles.css and uses its tokens. */

/* ---------- Page hero: a real photo band under the transparent header ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  min-height: clamp(360px, 52vh, 540px); display: flex; align-items: flex-end;
  color: var(--birch); background: var(--espresso);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 15, 11, 0.62) 0%, rgba(20, 15, 11, 0.2) 38%, rgba(20, 15, 11, 0.86) 100%),
    linear-gradient(90deg, rgba(20, 15, 11, 0.55) 0%, rgba(20, 15, 11, 0) 70%);
}
.page-hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(30px, 5vw, 56px); }
.page-hero .eyebrow { color: var(--lamp); text-shadow: 0 1px 3px rgba(20, 15, 11, 0.7); }
.page-hero h1 { margin: 8px 0 12px; max-width: 14ch; }
.page-hero h1 .wonk { color: var(--lamp); }
.page-hero .lead { color: rgba(250, 247, 242, 0.88); max-width: 34em; margin: 0; text-shadow: 0 1px 12px rgba(20, 15, 11, 0.5); }
.page-hero__note { margin: 14px 0 0; font-size: var(--fs-small); color: rgba(250, 247, 242, 0.78); display: flex; align-items: center; gap: 8px; }
.page-hero__note svg { width: 16px; height: 16px; color: var(--lamp); }

/* ---------- Sticky tab bar (menu tabs, shop sections) ---------- */
.tabbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(250, 247, 242, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: top 0.3s var(--ease-out);
}
html.header-is-hidden .tabbar { top: 0; }
/* Pages with the sticky tab bar: anything scrolled to (Buy links, tabs, keyboard focus) lands below header + tabs.
   One offset for everything — no extra scroll-margin on sections, which used to stack on top of this. */
html:has(.tabbar) { scroll-padding-top: calc(var(--header-h) + 80px); }
@media (max-width: 1023px) {
  html:has(.bag-bar:not([hidden])) { scroll-padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 80px); }
}
.tabs { display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; flex: none;
  border-radius: var(--pill); font-weight: 600; font-size: 0.95rem; color: var(--driftwood); text-decoration: none; white-space: nowrap;
}
.tab:hover { color: var(--bark); }
.tab[aria-selected="true"], .tab.is-current { background: var(--espresso); color: var(--birch); }
@media (max-width: 699px) { .tab { padding: 0 14px; font-size: 0.9rem; } }
/* the shop's four section tabs fit on phones from 360px wide (the fade below covers smaller screens) */
@media (max-width: 479px) {
  [data-shopnav] .tabs { gap: 0; justify-content: space-between; }
  [data-shopnav] .tab { padding: 0 9px; font-size: 0.875rem; }
}
@media (max-width: 374px) {
  [data-shopnav] .tab { padding: 0 7px; font-size: 0.8125rem; }
  [data-tabbar] .tab { padding: 0 10px; font-size: 0.85rem; }   /* both menu tabs fit at 320px */
}
/* more tabs off to the right (phones): fade the edge so it reads as "scroll for more" */
.tabs.has-more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}

/* ---------- Menu ---------- */
.menu-panel { padding: clamp(40px, 6vw, 84px) 0; }
.menu-panel[hidden] { display: none; }
.menu-cols { display: grid; gap: 0 72px; }
@media (min-width: 900px) { .menu-cols { grid-template-columns: 1fr 1fr; } }
.dish-group { margin-bottom: clamp(40px, 5vw, 60px); }
.dish-group h2 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); padding-bottom: 12px; margin: 0 0 4px; border-bottom: 1px solid var(--bark);
}
.dish-group__price { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--cedar-ink); white-space: nowrap; }
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dish__text { flex: 1; display: grid; gap: 3px; min-width: 0; }
.dish__name { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 500; font-size: 1.12rem; line-height: 1.3; color: var(--bark); }
.dish__desc { font-size: 0.92rem; line-height: 1.45; color: var(--driftwood); }
.dish__price { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.1rem; color: var(--cedar-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tea { display: grid; gap: 5px; margin-top: 8px; font-size: 0.88rem; line-height: 1.45; color: var(--driftwood); }
.tea strong { color: var(--bark); font-weight: 600; margin-right: 6px; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.dish-tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--snow); color: var(--bark); font-size: 0.95rem; white-space: nowrap; }
.dish-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.dish-photos figure { margin: 0; }
.dish-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.dish-photos figcaption { margin-top: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--driftwood); }
.dish-photos--strip { margin: 0 0 clamp(40px, 5vw, 64px); }
@media (min-width: 700px) { .dish-photos--strip { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.menu-notes { display: grid; gap: 6px; margin-top: 8px; padding: 24px; border-radius: var(--radius); background: var(--linen); text-align: center; }
.menu-notes p { margin: 0; }
.menu-notes__small { font-size: 0.88rem; color: var(--driftwood); }

/* Private party packages */
.party-intro { max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.party-intro .lead { margin: 10px 0 0; }
.packages { display: grid; gap: 22px; }
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.package { padding: 28px 24px 26px; border-radius: var(--radius-lg); background: var(--snow); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.package__head { padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.package h3 { margin: 0 0 4px; font-size: 1.5rem; }
.package__price { margin: 0; color: var(--driftwood); }
.package__price .num { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 2.3rem; color: var(--cedar-ink); margin-right: 4px; }
.package__lead { margin: 8px 0 0; font-weight: 600; }
.package__group h4 { margin: 20px 0 10px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cedar-ink); }
.package__group h4 span { margin-left: 6px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--driftwood); }
.package ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.package li { line-height: 1.45; padding-left: 16px; position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--cedar); }
.package li strong { font-weight: 600; }
.package p { margin: 0; line-height: 1.5; }
.package--plus { background: var(--espresso); color: var(--birch); border-color: transparent; }
.package--plus .package__head { border-bottom-color: rgba(250, 247, 242, 0.16); }
.package--plus h3, .package--plus .package__lead { color: var(--birch); }
.package--plus .package__price { color: var(--mist); }
.package--plus .package__price .num, .package--plus .package__group h4 { color: var(--lamp); }
.package--plus .package__group h4 span { color: var(--mist); }
.package--plus li::before { background: var(--lamp); }
.party-add { max-width: 720px; margin: clamp(44px, 6vw, 72px) auto 0; }
.party-add h3 { margin: 0 0 8px; text-align: center; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.party-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 36px; }

/* ---------- Shop ---------- */
.shop { padding-top: clamp(32px, 5vw, 64px); }
.shop__layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .shop__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.shop-group { margin-bottom: clamp(48px, 6vw, 80px); }
.shop-group__head { margin-bottom: 22px; }
.shop-group__head h2 { margin: 0 0 6px; }
.shop-group__head p { margin: 0; color: var(--driftwood); }

.product { background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.product__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 24px 22px 22px; }
.product--feature { display: grid; }
.product--feature .product__media { aspect-ratio: 16 / 9; }
/* phones: the passes and prices come first, the real sauna photo follows (the hero above is already a sauna) */
@media (max-width: 759px) {
  .product--feature .product__media { order: 2; }
  .page-shop .shop { padding-top: 20px; }
}
@media (min-width: 760px) {
  .product--feature { grid-template-columns: 5fr 6fr; }
  .product--feature .product__media { aspect-ratio: auto; min-height: 100%; }
  .product--feature .product__body { padding: 32px 30px 28px; }
}
@media (min-width: 1024px) { .product--feature { grid-template-columns: 4fr 7fr; } }
.product__title { margin: 0 0 6px; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); }
.product__desc { margin: 0 0 18px; color: var(--driftwood); }
.product__price { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.6rem; color: var(--cedar-ink); line-height: 1; }

/* option rows with steppers (day pass) */
.options { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.option { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.option__label { font-weight: 600; line-height: 1.3; }
.option__label small { display: block; font-weight: 500; font-size: 0.85rem; color: var(--driftwood); }
.option__price { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.25rem; color: var(--cedar-ink); font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: var(--pill); background: var(--birch); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--bark); cursor: pointer; }
.stepper button:hover { background: var(--linen); }
/* at 0 or the maximum the button is aria-disabled (not disabled), so keyboard focus stays on it */
.stepper button:disabled, .stepper button[aria-disabled="true"] { color: var(--field); cursor: default; background: transparent; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--sm button { width: 36px; height: 36px; font-size: 1.1rem; }
/* the smallest phones: the stepper gets its own line under the name and price */
@media (max-width: 359px) {
  .product .option { grid-template-columns: 1fr auto; row-gap: 8px; }
  .product .option .stepper { grid-column: 1 / -1; justify-self: end; }
}

/* product tiles (memberships, massage, gifts) */
.tiles { display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.tile h3 { margin: 0; font-size: 1.25rem; }
.tile__desc { margin: 0; flex: 1; color: var(--driftwood); font-size: 0.95rem; line-height: 1.5; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.tile .btn { min-height: 46px; padding: 0 18px; }
.tile--photo { padding: 0; overflow: hidden; }
.tile--photo .tile__media img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.tile--photo .tile__inner { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 20px; flex: 1; }
.tile--photo .tile__foot { margin-top: auto; padding-top: 6px; }
.tile--photo .tile__desc { flex: none; }
.tile ul { margin: 0; padding-left: 18px; color: var(--driftwood); font-size: 0.95rem; line-height: 1.5; }

.shop-help { margin: 0; color: var(--driftwood); text-align: center; }
.shop-noscript { margin: 0 0 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--linen); color: var(--bark); }
/* option rows inside tiles (massage lengths, gift certificates) */
.tile .options { margin: 4px 0 0; padding: 0; color: var(--bark); font-size: 1rem; }
.tile .option { grid-template-columns: 1fr auto; }
.tile .option:last-child { border-bottom: 0; padding-bottom: 0; }
.tile .option__price:empty { display: none; }
.tile .options--priced .option { grid-template-columns: 1fr auto auto; }
.tile--list { padding-top: 8px; padding-bottom: 14px; }
.tile--list > .options { margin: 0; border-top: 0; }

/* "added" feedback + highlight when arriving from a Buy link */
.btn.is-added { background: var(--pine); color: #fff; }
.btn:disabled { background: var(--linen); color: var(--driftwood); border-color: transparent; box-shadow: none; cursor: not-allowed; }
.is-target { outline: 2px solid var(--cedar); outline-offset: 4px; }

/* ---------- Bag ---------- */
.bag { position: sticky; top: calc(var(--header-h) + 84px); padding: 24px 22px; background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.bag h2 { margin: 0 0 14px; font-size: 1.5rem; }
.bag__empty { margin: 0 0 16px; color: var(--driftwood); }
.bag-items { list-style: none; margin: 0 0 14px; padding: 0; }
.bag-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-item__name { font-weight: 600; line-height: 1.35; }
.bag-item__unit { font-size: 0.85rem; font-weight: 500; color: var(--driftwood); margin-right: auto; }
.bag-item__total { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.1rem; color: var(--bark); text-align: right; font-variant-numeric: tabular-nums; }
.bag-item__controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .bag .bag-item { padding: 10px 0; } .bag .bag-item__remove { min-height: 36px; } }
.bag-item__remove { border: 0; background: none; color: var(--driftwood); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 44px; padding: 0 4px; }
.bag-item__remove:hover { color: var(--error); }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 4px; font-weight: 700; }
.bag__total span:last-child { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-size: 1.6rem; font-weight: 400; color: var(--cedar-ink); }
.bag__note { margin: 0 0 16px; font-size: 0.85rem; color: var(--driftwood); line-height: 1.45; }
.bag__pay { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 0.85rem; color: var(--driftwood); text-align: center; }
.bag__pay svg { width: 16px; height: 16px; flex: none; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
@media (max-width: 1023px) { .shop__layout > .bag { display: none; } }
/* a long bag scrolls inside the panel, so the total and Checkout always stay on screen */
@media (min-width: 1024px) {
  .bag { display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 108px); }
  .bag [data-bag-body] { display: flex; flex-direction: column; min-height: 0; }
  .bag .bag-items {
    overflow-y: auto; min-height: 90px; overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent);
  }
}

/* phones & tablets: a slim bag bar above the dock, and the bag in a sheet */
.bag-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 45; }
.bag-bar[hidden] { display: none; }
.bag-bar button {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px;
  border: 0; border-radius: var(--pill); background: var(--espresso); color: var(--birch); font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(242, 207, 156, 0.32), 0 18px 40px -18px rgba(0, 0, 0, 0.6);   /* the ring keeps it distinct over the dark footer */
}
.bag-bar strong { color: var(--lamp); font-weight: 700; }
@media (min-width: 1024px) { .bag-bar { display: none !important; } }
/* the bag bar floats above the dock: give the dark footer that much more room so its last lines stay visible
   (the body already reserves the dock's height, safe area included) */
@media (max-width: 1023px) {
  body.page-shop:has(.bag-bar:not([hidden])) .site-footer { padding-bottom: calc(40px + 76px); }
}
/* phones held sideways: let the section tabs scroll away and slim the bag bar, to leave room for the shop */
@media (max-height: 500px) and (max-width: 1023px) {
  .tabbar { position: static; }
  html:has(.tabbar) { scroll-padding-top: calc(var(--header-h) + 12px); }
  .bag-bar { bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 6px); }
  .bag-bar button { min-height: 44px; }
}

dialog.sheet-dialog {
  width: min(100%, 560px); max-width: 100%; max-height: min(88svh, 760px); margin: auto auto 0; padding: 0; border: 0; overflow: hidden;
  border-radius: 24px 24px 0 0; background: var(--birch); color: var(--bark); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5);
}
@media (min-width: 700px) { dialog.sheet-dialog { margin: auto; border-radius: var(--radius-lg); } }
dialog.sheet-dialog::backdrop { background: rgba(27, 21, 17, 0.55); }
.sheet-dialog__inner { position: relative; padding: 20px 22px calc(22px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; max-height: inherit; }
/* light sheets use the site's usual pine focus ring (the lamp ring is for dark dialogs) */
.sheet-dialog :focus-visible { outline-color: var(--pine); }
/* a long bag scrolls inside the sheet; the heading, Subtotal and Checkout stay on screen */
[data-bag-dialog] .sheet-dialog__inner { display: flex; flex-direction: column; overflow: hidden; }
[data-bag-dialog] [data-bag-body] { display: flex; flex-direction: column; min-height: 0; }
[data-bag-dialog] .bag-items {
  overflow-y: auto; min-height: 120px; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent);
}
.sheet-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sheet-dialog__head h2 { margin: 0; font-size: 1.5rem; }
.sheet-dialog .icon-btn { color: var(--bark); background: var(--linen); }
.fallback-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 10px; }
.fallback-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--snow); color: var(--bark); text-decoration: none; font-weight: 600; }
.fallback-list a:hover { border-color: var(--field); }
.fallback-list a span:last-child { color: var(--pine); white-space: nowrap; }
.fallback-list a small { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 500; color: var(--driftwood); }
.fallback-done { margin: 6px 0 10px; }
@media (max-width: 479px) {
  .fallback-list a { flex-direction: column; align-items: flex-start; gap: 2px; }
  .fallback-list a span:last-child { font-size: 0.92rem; }
}

/* ---------- Thank-you ---------- */
.thanks { padding: clamp(48px, 8vw, 96px) 0; text-align: center; }
.thanks .lead { max-width: 34em; margin: 12px auto 28px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; }
