/* Blueprint to Warmth — site styles
   Brand: Jost (display) + Manrope (text). Ink and Paper do most of the work; one warm accent at a time. */

:root {
  --ink: #1D1D1F;
  --ink-2: #424245;
  --graphite: #6E6E73;
  --hairline: rgba(0, 0, 0, 0.08);
  --paper: #F5F5F7;
  --white: #FFFFFF;
  --night: #08090B;

  --deep-blueprint: #1F3F6E;
  --blueprint: #2F5B9A;
  --sky-line: #6F93C9;
  --gold: #F2B661;
  --amber: #E8954A;
  --ember: #D9774B;
  --ember-type: #C2653A;
  --ember-dark: #A8532C;

  --font-display: 'Jost', 'Futura', 'Avenir Next', Arial, sans-serif;
  --font-text: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:not(.is-shop) { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.is-shop body { background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Wordmark (E): Jost, italic ember "to" padded 0.32em before / 0.18em after ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wm-to {
  font-style: italic;
  color: var(--ember-type);
  padding: 0 0.18em 0 0.32em;
}

/* =====================================================================
   Intro
   ===================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 70% at 50% 0%, #101216 0%, var(--night) 60%) var(--night);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
html.is-shop .intro { display: none; }

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
}
.intro-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(111, 147, 201, .5); }

.intro-name {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, 0);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.1;
  cursor: pointer;
  z-index: 1;
}
.intro-name .wordmark { display: block; }
.intro-name-base { color: #16181C; }
.intro-name-base .wm-to { color: #1E1915; }
.intro-name-lit {
  position: absolute;
  inset: 0;
  color: #F6EEE3;
  opacity: 0;
  text-shadow: 0 0 24px rgba(242, 182, 97, .28);
  -webkit-mask-image: radial-gradient(var(--rx, 120px) calc(var(--rx, 120px) * .9) at var(--lx, 50%) 30%, #000 0%, rgba(0, 0, 0, .75) 40%, transparent 100%);
          mask-image: radial-gradient(var(--rx, 120px) calc(var(--rx, 120px) * .9) at var(--lx, 50%) 30%, #000 0%, rgba(0, 0, 0, .75) 40%, transparent 100%);
}
.intro-name-lit .wm-to { color: var(--amber); }

.intro-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: max(32px, env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(246, 238, 227, .42);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.intro.show-hint .intro-hint { opacity: 1; transform: none; }
.intro.is-leaving .intro-hint { opacity: 0; transition-duration: .3s; }
.hint-coarse { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-coarse { display: inline; } }

.skip-intro {
  position: absolute;
  top: 16px; left: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #F6EEE3;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-intro:focus-visible { transform: none; }

/* The light pours out of the bulb... */
.intro-flood {
  position: absolute;
  left: 50%; top: 40%;
  width: 200vmax; height: 200vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.01);
  background: radial-gradient(closest-side, #FFF6E6 0%, #FCE3BC 30%, rgba(242, 182, 97, .55) 55%, rgba(242, 182, 97, 0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
html.is-entering .intro-flood {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
  transition: transform 1.25s cubic-bezier(.6, 0, .25, 1), opacity .35s linear;
}

/* =====================================================================
   Shop shell + reveal transition
   ===================================================================== */
.shop {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow-y: auto;
  background: var(--paper);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 40%));
}
html.is-entering .shop {
  clip-path: circle(var(--or, 150vmax) at var(--ox, 50%) var(--oy, 40%));
  transition: clip-path 1.25s cubic-bezier(.62, 0, .22, 1) .12s;
}
html.is-shop .shop {
  position: relative;
  inset: auto;
  overflow: visible;
  clip-path: none;
}
@media (prefers-reduced-motion: reduce) {
  .shop { clip-path: none; opacity: 0; }
  html.is-entering .shop { clip-path: none; opacity: 1; transition: opacity .4s linear; }
  html.is-shop .shop { opacity: 1; }
  html.is-entering .intro-flood { transition: none; opacity: 0; }
}

/* Hero content settles in as the light finishes pouring. */
.hero-anim { opacity: 0; transform: translateY(18px); }
html.is-entering .hero-anim,
html.is-shop .hero-anim {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(.75s + var(--d, 0) * .09s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .reveal { opacity: 1; transform: none; animation: none !important; transition: none; }
}

/* =====================================================================
   Nav
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  margin-right: auto;
}
.nav-brand img { width: 26px; height: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-shop {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover, .nav-shop:hover { color: var(--ink); }
.nav-shop { display: none; }
.nav-bag {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
}
.nav-bag[hidden] { display: none; }
.bag-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
}
.bag-count:empty { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-shop { display: block; }
  .nav-brand { font-size: 17px; }
}

/* =====================================================================
   Type + buttons
   ===================================================================== */
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ember-dark);
}
.eyebrow--warm { color: var(--gold); }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  outline: none;
}
.heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.heading em, .display em { font-style: italic; font-weight: 400; color: var(--ember-type); }
.heading--light { color: #F6EEE3; }
.heading--light em { color: var(--gold); }
.lede {
  max-width: 34em;
  margin: 22px auto 0;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--graphite);
}
.subhead {
  margin: 10px 0 0;
  max-width: 36em;
  font-size: 18px;
  color: var(--graphite);
}
.subhead--light { color: rgba(246, 238, 227, .7); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #000; }
.btn-primary:disabled { background: #D2D2D7; color: #86868B; cursor: not-allowed; }
.btn-small { height: 36px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-busy { opacity: .6; pointer-events: none; }

.btn-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blueprint);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-link--chev { font-size: 17px; }
.btn-link--chev::after { content: ' ›'; }

/* =====================================================================
   Sections
   ===================================================================== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter) 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter) 0;
  text-align: center;
}
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  margin-top: clamp(48px, 7vw, 80px);
}
.trio-item { margin: 0; }
.trio-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}
.trio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.trio-media:hover img { transform: scale(1.035); }
.trio-item figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
@media (max-width: 600px) {
  .trio-media { border-radius: var(--radius-sm); }
  .trio-item figcaption { font-size: 12px; gap: 5px; }
  .dot { width: 8px; height: 8px; }
}

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: rgba(0, 0, 0, .2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.card:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .18); transform: translateY(-2px); }
.card-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #E8E8EA;
  cursor: pointer;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media--tile, .category--tile .category-media {
  display: grid;
  place-items: center;
  cursor: default;
  background:
    radial-gradient(70% 60% at 50% 80%, rgba(242, 182, 97, .18), transparent 70%),
    linear-gradient(180deg, #ECECEE, #E3E3E6);
}
.card-media .tile-mark, .category-media .tile-mark {
  width: 34%;
  height: auto;
  object-fit: contain;
  opacity: .55;
  filter: saturate(.6);
  transform: none !important;
}
.badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: var(--ember-dark);
}
.badge--quiet { color: var(--graphite); }
.card-body { display: flex; flex-direction: column; padding: 18px 20px 20px; flex: 1; }
.card-type { margin: 0; font-size: 13px; color: var(--graphite); }
.card-name {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.card-variant { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.price { font-size: 17px; font-weight: 600; }
.card-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.card--placeholder .card-name { color: var(--ink-2); }

.stock { margin: 0; font-size: 13px; font-weight: 500; text-align: right; }
.stock--in   { color: #2E7D4F; }
.stock--low  { color: var(--ember-dark); }
.stock--made { color: var(--graphite); }
.stock--out, .stock--soon { color: #86868B; }

.swatches { display: flex; gap: 8px; margin-top: 12px; }
.swatch {
  width: 22px; height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: box-shadow .2s;
}
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--white), 0 0 0 3.5px var(--ink); }
.swatches--large .swatch { width: 30px; height: 30px; }
.swatches--large { gap: 12px; margin: 10px 0 18px; }

/* ---------- Carousel ---------- */
.section--bleed { max-width: none; padding-left: 0; padding-right: 0; }
.section--bleed .section-head { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.carousel-nav { display: flex; gap: 10px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: #E8E8ED;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.round-btn:hover { background: #DCDCE1; }
.round-btn:disabled { opacity: .35; cursor: default; }
.carousel {
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--inset);
  padding: 4px var(--inset) 24px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging .slide { pointer-events: none; }
.slide {
  flex: 0 0 clamp(250px, 30vw, 380px);
  margin: 0;
  scroll-snap-align: start;
}
.slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #E1E1E4;
  user-select: none;
}
.slide figcaption { margin-top: 14px; font-size: 15px; color: var(--graphite); }
.slide figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .category-grid { gap: 12px; } }
.category {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}
.category-media { position: absolute; inset: 0; }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.category:hover .category-media img { transform: scale(1.04); }
.category--tile .tile-mark { width: 42%; margin-top: -18%; }
.category-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background: linear-gradient(to top, rgba(255, 255, 255, .94) 55%, rgba(255, 255, 255, 0));
}
.category-name { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.category-blurb { font-size: 14px; color: var(--graphite); }
.category-count { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blueprint); }
@media (max-width: 480px) {
  .category-text { padding: 12px 14px 14px; }
  .category-name { font-size: 20px; }
  .category-blurb { display: none; }
}

/* ---------- Switched-on band ---------- */
.lit-band {
  margin: clamp(72px, 10vw, 128px) var(--gutter) 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(90% 90% at 80% 60%, #4A3D30 0%, #2A241F 45%, #161412 100%);
  overflow: hidden;
}
.lit-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
}
.lit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lit-photos img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.lit-photos img:last-child { transform: translateY(12%); }
@media (max-width: 800px) {
  .lit-inner { grid-template-columns: 1fr; }
  .lit-photos img:last-child { transform: none; }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.process-photo { margin: 0; }
.process-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.step-n { font-family: var(--font-display); font-size: 15px; color: var(--sky-line); padding-top: 3px; }
.steps h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.steps p { margin: 4px 0 0; color: var(--graphite); font-size: 16px; }
@media (max-width: 800px) { .process { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter) max(32px, env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--graphite);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--ink); font-size: 22px; }
.footer-line { margin: 4px 0; }
.footer-muted { color: #86868B; }
.footer-links { display: flex; gap: 20px; margin-top: 18px; }
.footer-links:empty { display: none; }
.footer-links a { color: var(--blueprint); text-decoration: none; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.lights-off { color: var(--ink-2); text-decoration: none; }
.lights-off::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--gold);
  vertical-align: 1px;
}
.lights-off:hover { color: var(--ink); }

/* =====================================================================
   Product sheet + bag dialogs
   ===================================================================== */
dialog { padding: 0; border: 0; background: none; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 20, 22, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-dialog[open] { animation: sheet-in .5s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }

.sheet {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
}
.sheet-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(232, 232, 237, .9);
  cursor: pointer;
}
.sheet-media {
  position: sticky;
  top: 0;
  align-self: start;
  height: min(calc(100dvh - 48px), 760px);
  background: #E8E8EA;
}
.sheet-main { width: 100%; height: 100%; object-fit: cover; }
.sheet-thumbs { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.thumb {
  width: 54px; height: 72px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
  opacity: .7;
}
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--white); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet-info { padding: clamp(28px, 4vw, 48px); }
.sheet-title { margin: 2px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 44px; letter-spacing: -0.02em; }
.sheet-tagline { margin: 4px 0 0; color: var(--graphite); font-size: 18px; }
.sheet-price { margin: 18px 0 22px; font-size: 22px; font-weight: 600; }
.sheet-label { margin: 0; font-size: 14px; color: var(--graphite); }
.sheet-variant { color: var(--ink); font-weight: 500; }
.sheet-info .stock { text-align: left; margin-bottom: 14px; }
.sheet-copy { margin: 22px 0 0; color: var(--ink-2); font-size: 16px; }
.specs { margin: 28px 0 0; border-top: 1px solid var(--hairline); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.specs dt { color: var(--graphite); }
.specs dd { margin: 0; }
@media (max-width: 760px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet-media { position: relative; height: auto; aspect-ratio: 4 / 4.2; }
  .sheet-title { font-size: 36px; }
}

.bag-dialog { margin: 0 0 0 auto; height: 100dvh; }
.bag-dialog[open] { animation: bag-in .45s var(--ease-out); }
@keyframes bag-in { from { transform: translateX(40px); opacity: 0; } }
.bag-panel {
  width: min(420px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--hairline); }
.bag-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.bag-head .sheet-close { position: static; }
.bag-lines { list-style: none; margin: 0; padding: 8px 24px; flex: 1; overflow: auto; }
.bag-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.bag-line img { border-radius: 10px; object-fit: cover; aspect-ratio: 3 / 4; }
.bag-line span { display: block; color: var(--graphite); }
.bag-empty { padding: 32px 0; color: var(--graphite); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--hairline); border-radius: 50%; background: none; cursor: pointer; }
.bag-foot { padding: 20px 24px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.bag-total { display: flex; justify-content: space-between; font-size: 17px; }
.bag-note { margin: 4px 0 16px; font-size: 13px; color: var(--graphite); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(29, 29, 31, .92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 14px;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { color: var(--gold); }
