/* KedushaKids Phase 1: mobile first.
   Shira's rules: body 13px, headers 28px max (hero headline excepted), Akaya Kanadaka + Lato only. */
:root {
  --blue: #00ADEF;
  --ink: #000000;
  --body: #000000;
  --grey: #F2F2F2;
  --white: #FFFFFF;
  --band-text: #FFFFFF;           /* text on the blue "Why we do this" band; black passes contrast, white does not */
  --display: "Akaya Kanadaka", "Comic Sans MS", system-ui, sans-serif;
  --text: "Lato", "Helvetica Neue", Arial, sans-serif;
  --gutter: 19px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 13px/20px var(--text); color: var(--body); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }          /* images keep their own proportions */
h1, h2, p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bar :focus-visible, .why :focus-visible, .gallery :focus-visible { outline-color: var(--white); }

/* buttons: visually 32px like the design, but the tappable area is 44px */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 149px; height: 32px; padding-inline: 14px; border-radius: 5px; font: 700 13px/1 var(--text); text-decoration: none; }
.btn::after { content: ""; position: absolute; inset: -6px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.link { position: relative; display: inline-block; padding-block: 12px; font-weight: 700; color: var(--ink); text-decoration: none; background: linear-gradient(var(--blue), var(--blue)) 0 calc(100% - 10px) / 100% 2px no-repeat; }
.link-on-dark { color: var(--white); background-image: linear-gradient(var(--white), var(--white)); }

/* header */
.bar { background: var(--blue); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font: 400 23px/1 var(--display); color: var(--white); text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-in { position: relative; padding-block: 41px 34px; min-height: 375px; }
.hero-text { position: relative; z-index: 1; max-width: 190px; }
.label { display: inline-block; font: 700 12px/16px var(--text); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--blue); padding-bottom: 2px; margin-bottom: 8px; white-space: nowrap; }
h1 { font: 400 58px/56px var(--display); color: var(--ink); margin-bottom: 16px; }
h1 span span { color: var(--blue); }
.sub { max-width: 168px; color: var(--ink); margin-bottom: 20px; }
.hero-tree { position: absolute; top: calc(14px - 2.565vw); right: -38.46vw; width: 107.7vw; display: block; line-height: 0; }
.hero-tree { height: auto; aspect-ratio: 420 / 473; overflow: visible; pointer-events: none; }

/* grey band: photo + one line, alternating */
.band-grey { background: var(--grey); padding-block: 27px 40px; }
h2 { font: 400 28px/34px var(--display); color: var(--ink); text-wrap: balance; }
.band-grey h2 { max-width: 14em; margin-bottom: 22px; }
.pair { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.pair:last-child { margin-bottom: 0; }
.pair p { flex: 1; min-width: 0; max-width: 170px; }
.pair.rev { flex-direction: row-reverse; }
.squircle { width: clamp(150px, 45vw, 176px); aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border-radius: 30%; flex: none; }

/* notice */
.notice { padding-block: 22px 14px; }
.notice p { max-width: 36em; margin-bottom: 4px; }

/* why band: blue, with the girl on her hill and letters in the right gutter */
.why { --hw: 121.5vw; position: relative; overflow: hidden; z-index: 2; background: var(--blue); color: var(--band-text); padding-block: 40px calc(var(--hw) * 197 / 474 + 40px); }
.why::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--hw) * 113 / 474); background: #000; z-index: 1; }
.why-in { position: relative; }
.why h2 { color: var(--band-text); margin-bottom: 18px; }
.why p { margin-bottom: 14px; padding-right: 52px; }
.why .rule { width: 56px; height: 4px; margin: 24px 0 16px; border: 0; background: var(--band-text); }
.why .quote { font: 400 28px/34px var(--display); margin: 0; }

/* gallery (black, continues the hill's ground) */
.gallery { background: #000; color: var(--white); padding-block: 22px 44px; position: relative; }
.gallery h2 { color: var(--white); margin-top: 40px; }
.gal-sub { margin: 6px 0 16px; color: var(--white); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { position: relative; min-width: 46px; height: 28px; padding-inline: 12px; border-radius: 5px; border: 1px solid var(--white); background: transparent; color: var(--white); font: 700 13px/1 var(--text); cursor: pointer; }
.tab::after { content: ""; position: absolute; inset: -8px -2px; }
.tab.on { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.tiles { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; }
.tile a { display: block; text-decoration: none; color: var(--white); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border-radius: 20%; }
.tile .nm { display: block; margin-top: 8px; font-weight: 700; }
.tile .nm::after { content: " →"; }
.tile:first-child { grid-column: 1 / -1; }
.tile[hidden] { display: none; }
.more { position: relative; display: block; margin: 0 0 12px; padding: 12px 0; border: 0; background: none; color: var(--white); font: 700 13px/20px var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.more[hidden] { display: none; }

/* ordering */
.order { background: var(--grey); padding-block: 36px; }
.steps { list-style: none; margin: 20px 0 14px; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--ink); }
.n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--ink); font: 400 22px/1 var(--display); }
.pay { margin-bottom: 16px; }

/* footer */
.foot { background: var(--blue); color: var(--ink); padding-block: 28px; }
.foot p { margin-bottom: 0; }
.foot-mark { font: 400 22px/28px var(--display); margin-bottom: 8px !important; }
.foot a { color: var(--ink); }

/* computer layout: its own arrangement, not a stretched phone */
@media (min-width: 900px) {
  body { font-size: 14px; line-height: 22px; }                 /* 13px stays the phone size */
  .bar-in { height: 76px; }
  .wordmark { font-size: 28px; }
  .hero-in { min-height: 560px; padding-block: 90px 80px; }
  .hero-text { max-width: 520px; }
  h1 { font-size: 104px; line-height: 100px; margin-bottom: 28px; }
  .label { font-size: 13px; margin-bottom: 20px; }
  .sub { max-width: 340px; font-size: 16px; line-height: 24px; margin-bottom: 28px; }
  .band-grey { padding-block: 64px; }
  .band-grey .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 32px; }
  .band-grey h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .pair, .pair.rev { flex-direction: row; margin: 0; }
  .squircle { width: 220px; }
  .notice { padding-block: 40px 28px; }
  .why { padding-block: 70px 190px; }
  .why p, .why h2 { max-width: 560px; padding-right: 0; }
  .gallery { padding-block: 26px 64px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
  .tile:first-child { grid-column: span 2; grid-row: span 2; }
  .order .wrap { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* load-in and scroll-in animation (only when JS is on; off for people who prefer reduced motion) */
.js .intro { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0ms); }
.js .intro.fade { transform: none; animation-name: fade-in; }
.js .intro.from-right { transform: translateX(26px); animation-name: rise-x; animation-duration: 1.4s; }
.js h1 .line { display: block; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-x { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .intro, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* falling leaves (hero) and aleph beis rising from the girl (why band) */
@media (prefers-reduced-motion: reduce) {
}

/* ---------- product modal ---------- */
body.modal-open { overflow: hidden; }
.tile a { cursor: pointer; }
dialog#design { padding: 0; border: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; background: var(--white); color: var(--body); overflow: hidden; }
dialog#design::backdrop { background: rgba(0, 0, 0, .72); }
.d-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.d-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 5; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); cursor: pointer; }
.d-grid { display: block; }
.d-main { position: relative; background: var(--white); }
.d-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.d-track::-webkit-scrollbar { display: none; }
.d-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; scroll-snap-align: center; background: var(--white); cursor: zoom-in; }
.d-prev, .d-next { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(11, 15, 18, .78); color: var(--white); cursor: pointer; }
.d-prev { left: 8px; } .d-next { right: 8px; }
.d-prev[hidden], .d-next[hidden] { display: none; }
.d-count { position: absolute; left: 12px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(11, 15, 18, .78); color: var(--white); font: 700 12px/18px var(--text); }
.d-tip { position: absolute; right: 12px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(11, 15, 18, .78); color: var(--white); font: 700 12px/18px var(--text); }
.d-thumbs { display: flex; gap: 8px; padding: 10px var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
.d-thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--white); overflow: hidden; cursor: pointer; }
.d-thumbs button[aria-current="true"] { border-color: var(--ink); }
.d-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.d-thumbs[hidden] { display: none; }
.d-info { padding: 20px var(--gutter) 40px; }
.d-info h2 { margin-bottom: 10px; }
.d-desc { margin-bottom: 14px; }
.d-opts { margin-bottom: 14px; }
.d-opt { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.chip { display: inline-block; margin: 0 6px 4px 0; padding: 2px 10px; border: 1px solid var(--ink); border-radius: 99px; font-weight: 400; color: var(--ink); }
.d-facts { margin: 0 0 14px; display: grid; gap: 4px; }
.d-facts div { display: flex; gap: 8px; }
.d-facts dt { flex: none; min-width: 96px; font-weight: 700; color: var(--ink); }
.d-facts dd { margin: 0; }
.d-bullets { margin: 0 0 20px; padding-left: 18px; display: grid; gap: 6px; }
.d-note { margin-top: 12px; color: var(--body); }
.d-cta { min-width: 189px; }
[hidden] { display: none !important; }

/* zoom view */
.zoom { position: fixed; inset: 0; z-index: 10; background: #000; display: flex; flex-direction: column; }
.z-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; display: grid; place-items: center; }
.zoom.is-zoomed .z-stage { cursor: grab; }
.z-stage img { width: 100%; height: 100%; object-fit: contain; background: #fff; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none; will-change: transform; }
.z-bar { position: absolute; right: 12px; top: max(12px, env(safe-area-inset-top)); display: flex; gap: 8px; }
.z-bar button { min-width: 44px; height: 44px; padding-inline: 14px; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); font: 700 18px/1 var(--text); cursor: pointer; }
.z-hint { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: var(--white); font-size: 12px; text-shadow: 0 1px 3px #000; pointer-events: none; }
@media (min-width: 900px) {
  dialog#design { width: min(1040px, 92vw); max-width: 1040px; height: min(760px, 90vh); max-height: 90vh; margin: auto; border-radius: 22px; }
  .d-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; min-height: 100%; }
  .d-media { padding: 28px 0 28px 28px; position: sticky; top: 0; }
  .d-main { border-radius: 18px; overflow: hidden; border: 1px solid #e3e3e3; }
  .d-thumbs { padding-left: 0; }
  .d-info { padding: 40px 36px 40px 32px; }
  .d-close { position: absolute; }
  .d-track img { cursor: zoom-in; }
}
@media (prefers-reduced-motion: reduce) { .d-track { scroll-behavior: auto; } }

/* ---------- computer layout: Shira's sizes (16px body, 36px titles, 20px uppercase subtitles) and her header/tree placement ---------- */
@media (min-width: 900px) {
  .wrap { max-width: 1158px; }                  /* content column is exactly 1120px: left edge at 160px on a 1440px screen, like your layout */
  body { font-size: 16px; line-height: 24px; }
  h2, .why .quote { font-size: 36px; line-height: 44px; }
  .label { font-size: 20px; line-height: 26px; letter-spacing: 0; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 3px; }
  .sub { font-size: 16px; line-height: 24px; max-width: 360px; }
  .bar-in { height: 80px; }
  .btn { min-width: 168px; height: 36px; font-size: 14px; }
  .bar .btn { min-width: 168px; }
  .hero-in { min-height: 680px; padding-block: 90px 60px; }
  .hero-tree { top: 0; right: -20px; width: 694px; }
  .tile .nm, .d-facts, .d-bullets, .d-desc, .d-opts, .gal-sub, .pay, .notice p, .pair p, .why p, .steps li { font-size: 16px; line-height: 24px; }
  .tab { font-size: 14px; }
  .d-info h2 { font-size: 36px; line-height: 44px; }
}

/* ---------- tree letters: float off the tree and fade upward, under the header ---------- */
/* letters start on the branches; when the hero is in view they rise one at a time and stay gone (script.js sets the timing) */
.tl { opacity: 1; }
.tree-letters.play .tl { animation: letter-up var(--dur) linear var(--delay) 1 both; }
@keyframes letter-up { 0% { opacity: 1; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--rise) * -1)); } }

/* ---------- a couple of leaves drift down the whole screen and fade out at the bottom ---------- */
.drift { position: absolute; top: 0; left: 0; width: 100%; height: 100svh; z-index: 40; overflow: hidden; pointer-events: none; }
.drift-leaf { position: absolute; left: var(--x); top: 150px; height: auto; opacity: 0; animation: drift-down var(--dur) linear var(--delay) infinite, drift-sway 7s ease-in-out var(--delay) infinite alternate, drift-spin 9s ease-in-out var(--delay) infinite alternate; }
@keyframes drift-down { 0% { opacity: 0; transform: translateY(0); } 6% { opacity: .95; } 50% { opacity: .95; } 100% { opacity: 0; transform: translateY(calc(100svh - 170px)); } }
@keyframes drift-sway { from { translate: -34px 0; } to { translate: 38px 0; } }
@keyframes drift-spin { from { rotate: -35deg; } to { rotate: 40deg; } }

/* ---------- girl on the hill: hill and ground are one piece, the girl is her own piece so she can be moved and resized ---------- */
.hill-wrap { position: absolute; z-index: 2; right: -23.6vw; bottom: 0; width: var(--hw); }
.hill-img { display: block; width: 100%; height: auto; }
.girl { position: absolute; left: 63.7%; top: 0; width: 8.65%; height: auto; }
.hand-letters { position: absolute; left: 71.9%; top: 16.7%; width: 0; height: 0; pointer-events: none; --rise: 300px; }
.hand-letter { position: absolute; left: 0; top: 0; height: 26px; width: auto; opacity: 0; transform-origin: 50% 50%; animation: hand-letter var(--dur) cubic-bezier(.3, .1, .6, 1) var(--delay) infinite; }
@keyframes hand-letter { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.05); } 5% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - var(--rise))) scale(var(--grow)); } }
@media (min-width: 900px) {
  .hero-tree { top: -21px; right: -103px; width: 872px; }
  .why { --hw: 760px; }
  .hill-wrap { right: -80px; }
}
@media (prefers-reduced-motion: reduce) {
  .drift { display: none; }
  .tree-letters.play .tl { animation: none; opacity: 1; transform: none; }
  .hand-letter { animation: none; opacity: 1; transform: translate(-50%, -50%) scale(.9); }
  .hand-letter:nth-child(2) { transform: translate(calc(-50% + 14px), calc(-50% - 46px)) scale(1.1); }
  .hand-letter:nth-child(3) { transform: translate(calc(-50% - 8px), calc(-50% - 100px)) scale(1.3); }
}

html, body { overflow-x: clip; }
@media (min-width: 900px) { .why { padding-block: 70px calc(var(--hw) * 113 / 474 + 64px); } }
@media (min-width: 900px) {
  .order .wrap { max-width: 1158px; }                       /* same left edge as every other section */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 28px 0 24px; }
}

/* footer: contact details on the left, the all-white logo on the right */
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot-logo { flex: none; width: 112px; height: auto; }
@media (min-width: 900px) { .foot { padding-block: 40px; } .foot-logo { width: 190px; } }

.offscreen .hand-letter, .drift.offscreen .drift-leaf { animation-play-state: paused; }

/* footer links: 44px of space around each link without making them look bigger */
.foot-line { display: flex; align-items: center; min-height: 44px; }
.foot-line a { padding-block: 10px; }

/* good to know: timing and policy */
.facts { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 10px; }
.facts b { display: block; }
.fine { margin: 0 0 20px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 20px; } }

/* customer quotes (from the old store's homepage) */
.loved { background: var(--white); padding-block: 40px 36px; }
.loved h2 { margin-bottom: 20px; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.quotes blockquote { margin: 0; }
.quotes p { margin: 0 0 6px; }
.quotes footer { font-weight: 700; }
.quotes footer::before { content: "— "; font-weight: 400; }
@media (min-width: 900px) { .loved { padding-block: 64px 56px; } .quotes { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* prices (only appear when switched on in the price manager) */
.tile .price { display: block; margin-top: 2px; font-weight: 400; }
.d-price { margin: -4px 0 12px; font-weight: 700; }

/* hover colors (computer only; touch screens skip these so nothing gets stuck highlighted) */
@media (hover: hover) and (pointer: fine) {
  .btn, .tab, .more, .link, .tile .nm, .d-close, .d-prev, .d-next, .z-bar button, .d-thumbs button, .foot a, .wordmark { transition: background-color .15s ease, color .15s ease, border-color .15s ease, background-size .2s ease; }
  .btn-dark:hover { background: var(--blue); color: #000; }
  .btn-light:hover { background: #000; color: #fff; }
  .link:hover { background-size: 100% 100%; color: #000; }                     /* the underline fills in blue behind black text */
  .link-on-dark:hover { color: var(--blue); background-image: linear-gradient(var(--blue), var(--blue)); background-size: 100% 2px; }
  .tab:not(.on):hover { background: var(--blue); border-color: var(--blue); color: #000; }
  .tab.on:hover { background: #fff; border-color: #fff; }
  .more:hover { color: var(--blue); }
  .tile a:hover .nm { color: var(--blue); }
  .tile a:hover img { box-shadow: 0 0 0 3px var(--blue); }
  .foot a:hover { background: #fff; text-decoration: none; }
  .wordmark:hover { text-decoration: underline; text-underline-offset: 5px; }
  .d-close:hover, .d-prev:hover, .d-next:hover { background: var(--blue); color: #000; }
  .z-bar button:hover { background: var(--blue); }
  .d-thumbs button:hover { border-color: var(--blue); }
}
@media (prefers-reduced-motion: reduce) { .btn, .tab, .more, .link, .tile .nm, .foot a { transition: none; } }

/* sort control */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.controls .tabs { margin-bottom: 0; }
.sort { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); }
.sort select { min-height: 44px; padding: 0 38px 0 14px; border: 1px solid var(--white); border-radius: 5px; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--white); font: 400 13px/1 var(--text); -webkit-appearance: none; appearance: none; cursor: pointer; }

/* small screens: a filter icon at the right of the tabs opens the Filter & sort sheet */
.filter-btn { display: none; }
@media (max-width: 899px) {
  .controls { flex-wrap: nowrap; gap: 12px; }
  .controls .tabs { flex: 1; min-width: 0; }
  .sort { display: none; }
  .filter-btn { display: block; flex: none; width: 44px; height: 44px; border: 1px solid var(--white); border-radius: 5px; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3Ccircle cx='15' cy='6' r='2.4' fill='black'/%3E%3Ccircle cx='8' cy='12' r='2.4' fill='black'/%3E%3Ccircle cx='15' cy='18' r='2.4' fill='black'/%3E%3C/svg%3E") no-repeat center / 24px; cursor: pointer; }
}
dialog#fs { padding: 0; border: 0; width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88dvh; border-radius: 20px 20px 0 0; background: var(--white); color: #000; overflow: hidden; }
dialog#fs[open] { display: flex; flex-direction: column; }
dialog#fs::backdrop { background: rgba(0, 0, 0, .6); }
.fs-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; flex: none; }
.fs-head h2 { font: 400 22px/28px var(--display); color: #000; }
.fs-x { position: absolute; right: 8px; top: 10px; width: 44px; height: 44px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M3 3l14 14M17 3L3 17' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center; cursor: pointer; }
.fs-body { flex: 1; overflow-y: auto; padding: 0 var(--gutter); overscroll-behavior: contain; }
.fs-row { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; padding: 0; border: 0; border-top: 1px solid #d9d9d9; background: none; color: #000; font: 700 13px/20px var(--text); text-align: left; cursor: pointer; }
.fs-row span { font-weight: 400; margin-left: auto; padding-right: 12px; }
.fs-row::after { content: ""; width: 12px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; transition: transform .2s; }
.fs-row[aria-expanded="true"]::after { transform: rotate(180deg); }
.fs-opts { margin: 0 0 8px; padding: 0; list-style: none; }
.fs-opts[hidden] { display: none; }
.fs-opts label { display: flex; align-items: center; gap: 12px; min-height: 48px; font: 400 13px/20px var(--text); cursor: pointer; }
.fs-opts input { width: 20px; height: 20px; accent-color: #00ADEF; }
.fs-foot { flex: none; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #d9d9d9; }
.fs-show { width: 100%; min-height: 52px; border: 0; border-radius: 8px; background: #000; color: var(--white); font: 700 13px/20px var(--text); cursor: pointer; }
@media (min-width: 900px) { dialog#fs { display: none !important; } }
@media (min-width: 900px) { .sort select { font-size: 16px; } }
@media (hover: hover) and (pointer: fine) { .sort select:hover { border-color: var(--blue); color: var(--blue); } }

/* ---------- product window, reworked (B&H-style: key features, buy box, tabs, related) ---------- */
.d-info { padding: 14px var(--gutter) 6px; }
.d-crumb { margin: 0 0 6px; font-size: 12px; line-height: 16px; }
.d-sub { margin: 0 0 12px; }
.d-h { font: 700 14px/20px var(--text); margin: 14px 0 6px; color: var(--ink); }
.d-feat { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 4px; }
.d-opts { margin: 0 0 14px; }
.buy { border: 1px solid var(--ink); border-radius: 14px; padding: 16px; }
.buy .d-price { margin: 0; font: 700 28px/32px var(--text); }
.d-made { margin: 0 0 12px; }
.buy .btn { width: 100%; min-width: 0; height: auto; min-height: 44px; margin-bottom: 8px; text-align: center; }
.buy .btn::after { display: none; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.svc { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid #ddd; display: grid; gap: 6px; }
.svc b { display: inline-block; min-width: 104px; }
.d-below { padding: 6px var(--gutter) 100px; }
.dtabs { display: block; border-top: 1px solid var(--ink); margin-top: 8px; }
.dt { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font: 700 13px/20px var(--text); text-align: left; cursor: pointer; }
.dt::after { content: "+"; font-size: 20px; }
.dt.on::after { content: "\2212"; }
.dp { padding: 12px 0 8px; }
.dp[hidden] { display: none; }
.dp p { margin: 0 0 10px; }
.dp-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dp-table { border-collapse: collapse; width: 100%; }
.dp-table th { text-align: left; width: 38%; padding: 7px 10px 7px 0; vertical-align: top; }
.dp-table td { padding: 7px 0; }
.dp-table tr + tr { border-top: 1px solid #e5e5e5; }
.dp-size { display: block; width: min(320px, 100%); padding: 0; border: 1px solid #e3e3e3; border-radius: 16px; background: var(--white); overflow: hidden; cursor: zoom-in; }
.dp-size img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.dp-note { margin-top: 8px; }
.dp blockquote { margin: 0 0 12px; }
.dp blockquote cite { display: block; font-style: normal; font-weight: 700; }
.d-rel-h { margin-top: 22px; }
.rels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rel { color: var(--ink); text-decoration: none; display: block; }
.rel img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border: 1px solid #e3e3e3; border-radius: 20%; }
.rel span { display: block; margin-top: 6px; font-weight: 700; }
.rel em { display: block; font-style: normal; }
.d-sticky { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--ink); }
.d-sticky .sp { font: 700 20px/24px var(--text); }
.d-sticky .btn { flex: 1; max-width: 230px; margin-left: auto; }
.d-media { display: block; }
@media (min-width: 900px) {
  .d-media { display: flex; gap: 10px; }
  .d-thumbs { order: -1; flex-direction: column; padding: 0; overflow: visible; }
  .d-main { flex: 1; }
  .d-info { padding: 40px 36px 20px 8px; }
  .d-crumb { font-size: 14px; line-height: 20px; }
  .d-h, .dt { font-size: 16px; }
  .d-below { padding: 6px 28px 36px; }
  .dtabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-top: 0; border-bottom: 1px solid var(--ink); margin-top: 0; }
  .dt { width: auto; border-bottom: 3px solid transparent; justify-content: flex-start; order: 0; }
  .dt::after { content: none !important; }
  .dt.on { border-bottom-color: var(--blue); }
  .dp { order: 1; flex: 1 0 100%; padding: 18px 0 12px; }
  .rels { grid-template-columns: repeat(4, 1fr); }
  .d-sticky { display: none; }
  .d-opts, .buy { max-width: 440px; }
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--ink); color: var(--white); }
  .dt:hover { color: #000; background: var(--blue); }
  .rel:hover span { background: var(--blue); }
  .dp-size:hover { border-color: var(--blue); }
}
