/* =========================================================
   巷口便利 · 梧桐里店
   A normal neighbourhood storefront, for as long as it stays normal.
   ========================================================= */

:root {
  --bg: #f8f4ea;
  --bg-warm: #f2ecdf;
  --paper: #fffdf8;
  --paper-soft: #faf6ed;
  --ink: #22352b;
  --ink-soft: #435346;
  --muted: #7b8478;
  --muted-light: #a3a496;
  --line: #e6dfd1;
  --line-strong: #d4cab8;
  --green: #2f6049;
  --green-deep: #213f32;
  --green-soft: #e8f0e6;
  --green-wash: #dce7d9;
  --orange: #e69a5b;
  --orange-deep: #cc7740;
  --orange-soft: #fbead9;
  --red: #c95645;
  --red-soft: #f8e5df;
  --night: #182924;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-soft: 0 18px 54px rgba(43, 63, 48, 0.08);
  --shadow-card: 0 8px 28px rgba(43, 63, 48, 0.06);
  --radius: 22px;
  --radius-small: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 1.1s ease;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

svg {
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 4px;
}

::placeholder {
  color: var(--muted-light);
  opacity: 1;
}

kbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--paper);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--green-deep);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.micro-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.svg-icon,
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Shared buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(47, 96, 73, 0.16);
}

.button--primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: 0 14px 30px rgba(47, 96, 73, 0.22);
}

.button--quiet {
  color: var(--green);
  background: transparent;
  border-color: var(--line-strong);
}

.button--quiet:hover {
  background: var(--paper);
  border-color: var(--green);
}

.button--wide {
  width: 100%;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--green);
  font-size: 12px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-button:hover {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
}

.round-add,
.add-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  transition:
    background-color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.round-add:hover,
.add-button:hover {
  background: var(--orange-deep);
  transform: translateY(-2px) rotate(4deg);
  box-shadow: 0 7px 16px rgba(204, 119, 64, 0.22);
}

.round-add svg,
.add-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.icon-button:hover {
  color: var(--green);
  background: var(--green-soft);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
}

.price::before {
  content: "¥";
  margin-right: 1px;
  font-family: var(--sans);
  font-size: 0.58em;
  font-weight: 600;
  vertical-align: 0.25em;
}

/* =========================================================
   Top strip
   ========================================================= */

.topbar {
  position: relative;
  z-index: 30;
  color: rgba(255, 250, 239, 0.8);
  background: var(--green-deep);
  font-size: 11px;
  transition: background-color 0.8s ease;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 38px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.topbar__left {
  gap: 14px;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f4f5e8;
  font-size: 11px;
}

.open-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a5d49c;
  box-shadow: 0 0 0 3px rgba(165, 212, 156, 0.12);
}

.topbar__store {
  color: #e9e6d6;
  font-weight: 500;
}

.topbar__hours {
  position: relative;
  padding-left: 14px;
  color: rgba(238, 235, 218, 0.5);
}

.topbar__hours::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: rgba(238, 235, 218, 0.22);
  transform: translateY(-50%);
}

.topbar__divider {
  width: 1px;
  height: 10px;
  background: rgba(238, 235, 218, 0.22);
}

.delivery-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: rgba(255, 250, 239, 0.78);
  font-size: 11px;
  transition: color 0.25s ease;
}

.delivery-address:hover {
  color: var(--paper);
}

.delivery-address > svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.delivery-address .chevr {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}

.delivery-address b {
  font-weight: 500;
  color: #f5ecd4;
  transition: color 0.4s ease;
}

.delivery-address.is-highlight b {
  color: var(--orange);
}

.topbar__link {
  padding: 4px 0;
  color: rgba(238, 235, 218, 0.7);
  font-size: 11px;
  transition: color 0.25s ease;
}

.topbar__link:hover {
  color: var(--paper);
}

body[data-stage="2"] .topbar {
  background: #1b2d28;
}

body[data-stage="2"] .topbar__hours,
body[data-stage="2"] .topbar__divider {
  opacity: 0.5;
}

body[data-stage="2"] .open-badge i {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 154, 91, 0.12);
}

/* =========================================================
   Header / search / cart
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition:
    background-color 0.8s ease,
    border-color 0.8s ease,
    box-shadow 0.5s ease;
}

body[data-stage="2"] .site-header {
  background: rgba(250, 247, 239, 0.96);
  box-shadow: 0 8px 30px rgba(35, 49, 40, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  color: var(--paper);
  background: var(--green);
  box-shadow: 0 7px 18px rgba(47, 96, 73, 0.17);
}

.brand__mark svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__type strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand__type small {
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 496px;
  height: 46px;
  margin-left: clamp(6px, 2vw, 30px);
  padding: 0 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.search:focus-within {
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(47, 96, 73, 0.06);
}

.search__icon {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search input::-webkit-search-cancel-button {
  opacity: 0.5;
}

.search button {
  flex: none;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  font-size: 11px;
  transition: background-color 0.25s ease;
}

.search button:hover {
  background: var(--green-deep);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 4px 6px 10px;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.cart-button:hover {
  color: var(--orange-deep);
}

.cart-button > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--orange-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}

.cart-button.is-pulsing b {
  animation: cartPulse 0.5s var(--ease);
}

body[data-stage="2"] .cart-button b {
  background: var(--red);
}

body[data-stage="2"] .brand__mark {
  background: var(--green-deep);
}

/* =========================================================
   Category navigation
   ========================================================= */

.category-nav {
  position: relative;
  z-index: 20;
  background: rgba(255, 253, 248, 0.85);
  border-bottom: 1px solid var(--line);
}

.category-nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__inner::-webkit-scrollbar {
  display: none;
}

.category-link {
  position: relative;
  flex: none;
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.category-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}

.category-link:hover,
.category-link.is-active {
  color: var(--green);
}

.category-link.is-active::after {
  left: 0;
  right: 0;
}

.category-nav__line {
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: var(--line);
}

.category-link--store {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
}

.category-link--store::after {
  display: none;
}

.category-link--store svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.category-link--store:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 247, 226, 0.9), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(225, 235, 216, 0.48), transparent 30%),
    var(--bg);
  transition: background-color 1.1s ease;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: -160px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(64, 107, 79, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -290px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(211, 150, 91, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 92px);
  padding-top: clamp(52px, 7vw, 94px);
  padding-bottom: clamp(54px, 7vw, 90px);
}

.hero__copy {
  max-width: 540px;
  padding-left: clamp(0px, 1.4vw, 18px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.eyebrow__line {
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.hero h1 {
  min-height: 2.34em;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 5.8vw, 5.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero__title {
  display: block;
}

.hero__title em {
  position: relative;
  font-style: normal;
  color: var(--green);
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 4%;
  bottom: 0.02em;
  height: 9px;
  z-index: -1;
  background: var(--orange-soft);
  border-radius: 50%;
  transform: rotate(-1.4deg);
}

.hero__title--late {
  display: none;
  color: var(--green-deep);
}

.hero__title--late em {
  color: var(--orange-deep);
}

.hero__desc {
  max-width: 31em;
  margin-top: 26px;
  color: #647063;
  font-size: 14px;
  line-height: 2;
  transition: color 0.4s ease;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero__actions .button {
  min-width: 136px;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.hero__notes i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero-frame {
  position: relative;
  aspect-ratio: 1.38;
  min-height: 400px;
  overflow: hidden;
  border-radius: 29px;
  background: #ede6d8;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-frame__day,
.hero-frame__night {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition:
    opacity 1.4s var(--ease),
    filter 1.4s ease,
    transform 1.4s var(--ease);
}

.hero-frame__night {
  opacity: 0;
  transform: scale(1.02);
}

.hero-frame__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(47, 45, 35, 0.17), transparent 28%),
    linear-gradient(0deg, rgba(27, 37, 29, 0.56), transparent 42%);
  pointer-events: none;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(28, 24, 18, 0.08) 3px 4px),
    radial-gradient(ellipse at center, transparent 42%, rgba(15, 19, 16, 0.35));
  transition: opacity 1.3s ease;
}

.hero-frame__sticker {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 252, 242, 0.7);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(33, 63, 50, 0.28);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  backdrop-filter: blur(5px);
  text-align: center;
}

.hero-frame__sticker small {
  display: block;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.18em;
  margin-top: 3px;
}

.hero-frame__live {
  position: absolute;
  z-index: 4;
  left: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 252, 242, 0.9);
  background: rgba(31, 50, 38, 0.58);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.hero-frame__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b3d8a8;
  animation: softPulse 3.2s ease-in-out infinite;
}

.hero-frame__caption {
  position: absolute;
  z-index: 4;
  left: 23px;
  top: 22px;
  color: rgba(255, 252, 242, 0.8);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.hero-frame__caption span {
  color: rgba(255, 252, 242, 0.48);
}

.hero-float {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 22px;
  width: 252px;
  padding: 17px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(255, 252, 244, 0.93);
  box-shadow: 0 20px 40px rgba(31, 44, 33, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), background-color 0.6s ease;
}

.hero-float:hover {
  transform: translateY(-3px);
}

.hero-float__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-float__head .micro-label {
  color: var(--green);
  font-size: 8px;
}

.hero-float__tag {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-size: 8px;
}

.hero-float strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.hero-float p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.hero-float__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 13px;
}

.hero-float .price {
  font-size: 21px;
}

.hero-float .round-add {
  width: 30px;
  height: 30px;
}

.hero-float .round-add svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   Service band / ticker
   ========================================================= */

.service-band {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-band__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 70px;
}

.service-band__inner span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 12px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.service-band__inner span + span {
  border-left: 1px solid var(--line);
}

.service-band__inner svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-band__inner b {
  font-weight: 500;
  transition: color 0.4s ease;
}

.store-marquee {
  background: var(--orange-soft);
  border-bottom: 1px solid rgba(205, 152, 103, 0.16);
  transition: background-color 0.8s ease;
}

.store-marquee__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  overflow: hidden;
}

.store-marquee__label {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--orange-deep);
  border: 1px solid rgba(204, 119, 64, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.store-marquee p {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #8b6145;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.store-marquee p .ticker-late {
  color: var(--red);
}

.store-marquee time {
  flex: none;
  color: rgba(121, 88, 63, 0.55);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

body[data-stage="2"] .store-marquee {
  background: #f0e2d2;
}

body[data-stage="2"] .store-marquee p {
  color: #7a4d3b;
}

/* =========================================================
   Section headings / products
   ========================================================= */

.section-kicker {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-heading__aside {
  padding-bottom: 4px;
  text-align: right;
}

.section-heading__aside span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.section-heading__aside p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.products-section {
  padding: clamp(66px, 8vw, 96px) 0 clamp(72px, 9vw, 112px);
  background: var(--paper-soft);
  transition: background-color 1s ease;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.45s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #d9cfbe;
  box-shadow: var(--shadow-card);
}

.product-art-wrap {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.2;
  overflow: hidden;
  isolation: isolate;
}

.product-art-wrap::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(2px);
}

.product-art-wrap::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(86, 74, 55, 0.08);
  filter: blur(7px);
}

.product-art {
  position: relative;
  z-index: 1;
  width: 76%;
  height: 76%;
  overflow: visible;
  transition:
    transform 0.55s var(--ease),
    filter 0.8s ease;
}

.product-card:hover .product-art {
  transform: translateY(-4px) rotate(-1.4deg);
}

.product-art__num {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: rgba(37, 55, 44, 0.12);
  letter-spacing: -0.08em;
}

.product-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 253, 247, 0.74);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  backdrop-filter: blur(5px);
}

.product-badge--soft {
  color: var(--muted);
  background: rgba(255, 253, 247, 0.58);
}

.product-badge--lost {
  color: var(--paper);
  background: rgba(40, 62, 51, 0.72);
}

.tone-peach {
  background: #f3ddc9;
}

.tone-cream {
  background: #f1e9d5;
}

.tone-mint {
  background: #dbe9de;
}

.tone-lime {
  background: #e4e9c9;
}

.tone-strawberry {
  background: #f0d6cf;
}

.tone-butter {
  background: #f2e0b8;
}

.tone-sky {
  background: #d9e5e7;
}

.tone-sand {
  background: #e9dfd0;
}

.tone-mist {
  background: #dbe4e1;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 15px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
}

.product-stock {
  color: var(--green);
}

.product-body h3 {
  margin-top: 9px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.product-body > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.product-whisper {
  display: none;
  color: var(--red) !important;
  font-size: 10px !important;
  transition: opacity 0.6s ease;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}

.product-foot .price {
  font-size: 20px;
}

.product-foot .add-button {
  width: 34px;
  height: 34px;
}

.lost-button {
  padding: 5px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.lost-button:hover {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
}

.stage2-card {
  display: none;
}

.product-card--lost {
  border-style: dashed;
  background: #f8f6ef;
}

.product-card--lost .product-art-wrap::before {
  background: rgba(255, 255, 255, 0.18);
}

.products-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--muted-light);
  font-size: 10px;
}

.products-note svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.no-results {
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.no-results__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange-deep);
  font-family: var(--serif);
  font-size: 24px;
}

.no-results p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.no-results .text-button {
  margin-top: 16px;
}

/* =========================================================
   Store section
   ========================================================= */

.store-section {
  position: relative;
  padding: clamp(72px, 9vw, 112px) 0;
  background:
    radial-gradient(circle at 5% 25%, rgba(255, 250, 235, 0.55), transparent 30%),
    #eaf0e5;
  border-top: 1px solid #dfe7db;
  border-bottom: 1px solid #dfe7db;
  transition: background-color 1.1s ease, border-color 1.1s ease;
}

.store__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.store__media {
  min-width: 0;
}

.store-photo {
  position: relative;
  aspect-ratio: 1.42;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe7db;
  box-shadow: var(--shadow-soft);
}

.store-photo__day,
.store-photo__night {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.store-photo__night {
  opacity: 0;
}

.store-photo__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 47, 37, 0.28), transparent 40%);
  pointer-events: none;
}

.store-photo__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 9px;
  border-radius: 4px;
  color: rgba(255, 252, 242, 0.8);
  background: rgba(31, 53, 41, 0.36);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.store-photo__grain {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.store-photo__caption {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.store-photo__caption span {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted-light);
  font-family: var(--sans);
  font-size: 9px;
}

.store__copy {
  max-width: 520px;
}

.store__copy h2 {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.1vw, 3.7rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.store__intro {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.store-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin-top: 26px;
  border-top: 1px solid #d5e0d1;
}

.store-facts div {
  padding: 13px 0 12px;
  border-bottom: 1px solid #d5e0d1;
}

.store-facts dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.store-facts dd {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.store__actions .button {
  min-height: 45px;
  padding-inline: 19px;
  font-size: 11px;
}

.store__late {
  display: none;
  margin-top: 20px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
}

/* =========================================================
   Reviews
   ========================================================= */

.reviews-section {
  padding: clamp(66px, 8vw, 96px) 0;
  background: var(--paper-soft);
}

.section-heading--reviews {
  margin-bottom: 28px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 25px 26px 22px;
  background: var(--paper-soft);
}

.review::before {
  content: "“";
  display: block;
  height: 24px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.8;
}

.review blockquote {
  max-width: 30ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.review figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 21px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.review figcaption span:first-child {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
}

.review--quiet blockquote {
  color: var(--muted-light);
  transition: color 0.6s ease;
}

body[data-stage="2"] .review--quiet blockquote {
  color: var(--red);
}

body[data-stage="2"] .review--quiet figcaption span:last-child {
  color: var(--red);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 68px 0 24px;
  color: rgba(244, 241, 226, 0.76);
  background: var(--green-deep);
  transition: background-color 1s ease;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 70px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(244, 241, 226, 0.14);
}

.brand--footer {
  color: var(--paper);
}

.brand--footer .brand__mark {
  color: var(--green-deep);
  background: var(--paper);
}

.brand--footer .brand__type strong {
  color: var(--paper);
}

.brand--footer .brand__type small {
  color: rgba(244, 241, 226, 0.45);
}

.footer__slogan {
  margin-top: 20px;
  color: rgba(244, 241, 226, 0.43);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.footer__columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 50px;
  width: min(620px, 100%);
}

.footer__label {
  display: block;
  margin-bottom: 10px;
  color: rgba(244, 241, 226, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.footer__columns p,
.footer__columns a,
.footer__columns button {
  display: block;
  color: rgba(244, 241, 226, 0.68);
  font-size: 11px;
  line-height: 1.9;
}

.footer__link {
  padding: 0;
  color: rgba(244, 241, 226, 0.68) !important;
  text-align: left;
  transition: color 0.25s ease;
}

.footer__link:hover {
  color: var(--paper) !important;
}

.footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  color: rgba(244, 241, 226, 0.3);
}

.footer__bottom > p:first-child {
  flex: none;
}

.footer__disclaimer {
  max-width: 540px;
  text-align: right;
}

body[data-stage="2"] .site-footer {
  background: #192d26;
}

body[data-stage="2"] .footer__disclaimer {
  color: rgba(244, 241, 226, 0.44);
}

/* =========================================================
   Chat
   ========================================================= */

.chat-launcher {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 16px 7px 7px;
  border: 1px solid rgba(211, 203, 187, 0.8);
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  box-shadow: 0 14px 34px rgba(33, 63, 50, 0.22);
  transition:
    background-color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.chat-launcher:hover {
  background: var(--green-deep);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(33, 63, 50, 0.28);
}

.chat-launcher[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.chat-launcher__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
}

.chat-launcher__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}

.chat-launcher__text strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.chat-launcher__text small {
  color: rgba(255, 250, 238, 0.54);
  font-family: var(--mono);
  font-size: 7px;
}

.chat-launcher__dot {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(230, 154, 91, 0.24);
}

.chat-panel {
  position: fixed;
  right: 26px;
  bottom: 92px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  height: min(530px, calc(100vh - 130px));
  overflow: hidden;
  border: 1px solid rgba(226, 218, 203, 0.9);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(31, 48, 38, 0.26);
  animation: chatIn 0.4s var(--ease);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  color: var(--paper);
  background: var(--green);
}

.chat-panel__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
}

.chat-panel__head > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-panel__head strong {
  font-size: 12px;
  font-weight: 600;
}

.chat-panel__head small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 250, 238, 0.56);
  font-family: var(--mono);
  font-size: 7px;
}

.chat-panel__head small i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a6d8a1;
}

.chat-panel__head .icon-button {
  margin-left: auto;
  color: rgba(255, 250, 238, 0.6);
}

.chat-panel__head .icon-button:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background:
    linear-gradient(0deg, rgba(244, 239, 229, 0.28), transparent 30%),
    var(--paper-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  margin-bottom: 14px;
  animation: messageIn 0.35s var(--ease);
}

.chat-message__who {
  margin-bottom: 4px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.chat-message p {
  padding: 10px 12px;
  border-radius: 4px 14px 14px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid rgba(230, 223, 209, 0.84);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-line;
}

.chat-message--user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message--user .chat-message__who {
  margin-right: 2px;
}

.chat-message--user p {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
  border-radius: 14px 4px 14px 14px;
}

.chat-typing {
  display: flex;
  gap: 3px;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: var(--paper);
}

.chat-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: typing 1.1s ease-in-out infinite;
}

.chat-typing i:nth-child(2) {
  animation-delay: 0.14s;
}

.chat-typing i:nth-child(3) {
  animation-delay: 0.28s;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.chat-quick button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 9px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.chat-quick button:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: var(--paper-soft);
  font-size: 11px;
}

.chat-form input:focus {
  border-color: var(--green);
  background: var(--paper);
}

.chat-form button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  transition: background-color 0.2s ease;
}

.chat-form button:hover {
  background: var(--green-deep);
}

.chat-form button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-stage="2"] .chat-panel__head {
  background: #1c332b;
}

body[data-stage="2"] .chat-panel {
  border-color: #b9b19f;
}

/* =========================================================
   Dialog foundations
   ========================================================= */

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(23, 38, 30, 0.52);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(445px, 100vw);
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  box-shadow: -20px 0 70px rgba(26, 40, 31, 0.16);
}

.drawer[open] {
  animation: drawerIn 0.45s var(--ease);
}

.drawer::backdrop {
  background: rgba(23, 38, 30, 0.42);
  backdrop-filter: blur(3px);
}

.drawer__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.drawer__head,
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px 19px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2,
.modal__head h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.drawer__head .micro-label,
.modal__head .micro-label {
  font-size: 8px;
}

.drawer__scroll {
  overflow-y: auto;
  padding: 20px 26px 28px;
  background: var(--paper-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  padding: 30px;
  text-align: center;
}

.cart-empty__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted-light);
}

.cart-empty__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.cart-items li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--orange-soft);
}

.cart-thumb svg {
  width: 45px;
  height: 45px;
}

.cart-item__name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cart-item__price {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-qty button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cart-qty button:hover {
  color: var(--orange-deep);
  border-color: var(--orange-deep);
}

.cart-qty button svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.cart-qty span {
  min-width: 13px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}

.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.cart-item__side strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.cart-remove {
  padding: 2px;
  color: var(--muted-light);
  transition: color 0.2s ease;
}

.cart-remove:hover {
  color: var(--red);
}

.cart-remove svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.cart-gift {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px dashed #d8b894;
  border-radius: 10px;
  background: #fdf6ea;
}

.cart-gift[hidden] {
  display: none;
}

.cart-gift__tag {
  flex: none;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-family: var(--mono);
  font-size: 8px;
}

.cart-gift div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.cart-gift strong {
  font-size: 11px;
  font-weight: 600;
}

.cart-gift small {
  color: var(--muted);
  font-size: 9px;
}

.cart-gift > span:last-child {
  color: var(--orange-deep);
  font-family: var(--mono);
  font-size: 9px;
}

.delivery-card {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.delivery-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.delivery-card__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.delivery-card__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-card__head > div {
  flex: 1;
  min-width: 0;
}

.delivery-card__head strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.delivery-card__auto {
  display: none;
  flex: none;
  margin-top: 2px;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--orange-deep);
  background: var(--orange-soft);
  font-family: var(--mono);
  font-size: 7px;
}

.delivery-card > p {
  margin: 9px 0 0 41px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.cart-note {
  margin-top: 14px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
}

.cart-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
}

.cart-total > span {
  color: var(--muted);
  font-size: 10px;
}

.cart-total strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.cart-total strong::before {
  content: "¥";
  font-family: var(--sans);
  font-size: 0.6em;
  vertical-align: 0.22em;
}

.cart-total small {
  flex-basis: 100%;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

.drawer__foot .button {
  min-width: 145px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 12px;
}

.drawer__foot .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

/* Generic modal */

.modal {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88vh, 880px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(20, 35, 27, 0.3);
}

.modal[open] {
  animation: modalIn 0.38s var(--ease);
}

.modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(88vh, 880px);
}

.modal__scroll {
  overflow-y: auto;
  padding: 24px 26px;
  background: var(--paper-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 26px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.modal__foot .button {
  min-height: 46px;
  border-radius: 12px;
}

.checkout-modal {
  width: min(640px, calc(100vw - 32px));
}

.checkout-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.checkout-address__icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.checkout-address__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-address > div {
  flex: 1;
}

.checkout-address strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.6;
}

.checkout-address p {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.checkout-address__locked {
  align-self: center;
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--muted);
  background: var(--bg-warm);
  font-family: var(--mono);
  font-size: 8px;
}

.checkout-items {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.checkout-items li span:first-child {
  flex: 1;
  color: var(--ink-soft);
}

.checkout-items li span:nth-child(2) {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.checkout-items li span:last-child {
  min-width: 55px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 13px;
  text-align: right;
}

.checkout-fees {
  margin-top: 7px;
}

.checkout-fees div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 10px;
}

.checkout-fees dd {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.checkout-fees__total {
  margin-top: 5px;
  padding-top: 12px !important;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 12px !important;
}

.checkout-fees__total dd {
  color: var(--green);
  font-family: var(--serif);
  font-size: 19px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.checkout-row b {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.payment {
  margin-top: 18px;
  padding: 0;
  border: 0;
}

.payment legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.payment__option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 10px;
  cursor: pointer;
}

.payment__option:has(input:checked) {
  border-color: var(--green);
  background: #f7fbf5;
}

.payment__option input {
  width: 13px;
  height: 13px;
  accent-color: var(--green);
}

.payment__option span {
  flex: 1;
}

.payment__option i {
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--green);
  background: var(--green-soft);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
}

.checkout-footnote {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
}

/* Login modal */

.login-modal {
  width: min(480px, calc(100vw - 32px));
}

.login__body {
  min-height: 290px;
}

.login__intro {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.field {
  display: block;
  margin-top: 15px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
}

.field input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--paper);
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 96, 73, 0.07);
}

.field__row {
  display: flex;
  gap: 8px;
}

.field__row input {
  flex: 1;
  min-width: 0;
}

.field__code {
  flex: none;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--green);
  background: var(--paper);
  font-size: 10px;
  transition: background-color 0.2s ease;
}

.field__code:hover {
  background: var(--green-soft);
}

.field__hint {
  margin-top: 8px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
}

.login__body .button {
  margin-top: 18px;
  min-height: 46px;
  border-radius: 8px;
}

.login__terms {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.login-result {
  padding: 14px 0 2px;
}

.login-result:focus,
.login-result:focus-visible,
.receipt h2:focus,
.receipt h2:focus-visible {
  outline: none;
}

.login-result__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.login-result__mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-result h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.login-result__facts {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.login-result__facts div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.login-result__facts dt {
  color: var(--muted);
}

.login-result__facts dd {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.login-result__copy {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.login-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.login-result__actions .button {
  min-height: 43px;
  margin-top: 0;
  border-radius: 8px;
}

/* Note modal */

.note-modal {
  width: min(530px, calc(100vw - 32px));
}

.note-copy p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 2;
}

.note-copy .button {
  margin-top: 8px;
  min-height: 43px;
  border-radius: 8px;
}

/* =========================================================
   Finale
   ========================================================= */

.finale {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: #0e1a16;
  color: var(--paper);
}

.finale[open] {
  animation: finaleIn 1.2s var(--ease);
}

.finale::backdrop {
  background: #0e1a16;
}

.finale__background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(14, 26, 22, 0.9), rgba(14, 26, 22, 0.63) 55%, rgba(14, 26, 22, 0.9)),
    url("assets/store-night.jpg") center 52% / cover no-repeat;
  filter: saturate(0.7) brightness(0.55);
  transform: scale(1.03);
}

.finale__noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.22) 3px 4px),
    radial-gradient(ellipse at center, transparent 38%, rgba(5, 10, 8, 0.62) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

.finale__close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 238, 0.23);
  border-radius: 50%;
  color: rgba(255, 250, 238, 0.64);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.finale__close:hover {
  color: var(--paper);
  border-color: rgba(255, 250, 238, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.finale__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.finale__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: clamp(68px, 9vh, 110px) 20px 38px;
}

.receipt {
  position: relative;
  width: min(540px, 100%);
  padding: 26px 30px 25px;
  color: #302f26;
  background:
    repeating-linear-gradient(0deg, rgba(91, 77, 49, 0.025) 0, rgba(91, 77, 49, 0.025) 1px, transparent 1px, transparent 4px),
    #f1e9d7;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.42);
}

.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background:
    linear-gradient(135deg, transparent 4px, #f1e9d7 0) 0 0 / 8px 8px repeat-x,
    linear-gradient(45deg, #f1e9d7 4px, transparent 0) 0 0 / 8px 8px repeat-x;
  pointer-events: none;
}

.receipt::before {
  top: -7px;
}

.receipt::after {
  bottom: -7px;
  transform: rotate(180deg);
}

.receipt__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px dashed rgba(48, 47, 38, 0.34);
  color: rgba(48, 47, 38, 0.56);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.receipt__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 24px auto 10px;
  color: var(--green);
  opacity: 0.65;
}

.receipt__mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
}

.receipt__kicker {
  color: rgba(48, 47, 38, 0.5);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
}

.receipt h2 {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
  text-align: center;
}

.receipt__lead {
  max-width: 32ch;
  margin: 13px auto 0;
  color: #6c6252;
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
}

.receipt__details {
  margin-top: 23px;
  border-top: 1px dashed rgba(48, 47, 38, 0.3);
  border-bottom: 1px dashed rgba(48, 47, 38, 0.3);
}

.receipt__details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  font-size: 10px;
}

.receipt__details div + div {
  border-top: 1px solid rgba(48, 47, 38, 0.1);
}

.receipt__details dt {
  color: rgba(48, 47, 38, 0.55);
  font-family: var(--mono);
  font-size: 8px;
}

.receipt__details dd {
  color: #312f26;
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.receipt__note {
  margin-top: 19px;
  color: #584c3a;
  font-family: "KaiTi", "STKaiti", var(--serif);
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  transform: rotate(-1.3deg);
}

.receipt__barcode {
  width: 150px;
  height: 32px;
  margin: 19px auto 20px;
  opacity: 0.58;
  background:
    repeating-linear-gradient(90deg, #302f26 0 2px, transparent 2px 4px, #302f26 4px 5px, transparent 5px 8px, #302f26 8px 11px, transparent 11px 13px);
}

.receipt__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt__actions .button {
  min-height: 43px;
  border-radius: 8px;
  font-size: 11px;
}

.receipt__actions .button--primary {
  color: var(--paper);
  background: var(--green);
}

.receipt__actions .button--quiet {
  color: var(--ink-soft);
  border-color: rgba(48, 47, 38, 0.26);
}

.receipt__fine {
  margin-top: 20px;
  color: rgba(48, 47, 38, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.7;
  text-align: center;
}

.finale__micro {
  margin-top: 26px;
  color: rgba(255, 250, 238, 0.28);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 29px;
  z-index: 1200;
  max-width: min(460px, calc(100vw - 36px));
  padding: 11px 17px;
  border: 1px solid rgba(211, 203, 187, 0.6);
  border-radius: 9px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 14px 38px rgba(33, 49, 38, 0.14);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease),
    visibility 0.3s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

body[data-stage="2"] .toast {
  border-color: rgba(128, 110, 87, 0.45);
}

/* =========================================================
   Stage 1 / stage 2 shifts
   ========================================================= */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(31, 39, 31, 0.13) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body[data-stage="1"] .atmosphere {
  opacity: 0.28;
}

body[data-stage="2"] .atmosphere {
  opacity: 0.52;
}

body[data-stage="2"] {
  --bg: #f1ede3;
  --paper: #fcf9f1;
  --paper-soft: #f5f1e7;
  --line: #ded7c8;
  --line-strong: #cbc1af;
}

body[data-stage="2"] .hero {
  background:
    radial-gradient(circle at 78% 15%, rgba(250, 232, 207, 0.48), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(204, 215, 197, 0.35), transparent 30%),
    #efe9de;
}

body[data-stage="2"] .hero__title--normal {
  display: none;
}

body[data-stage="2"] .hero__title--late {
  display: block;
}

body[data-stage="2"] .hero__desc {
  color: #6e6c60;
}

body[data-stage="2"] .hero-frame {
  box-shadow: 0 25px 65px rgba(31, 43, 34, 0.18);
}

body[data-stage="2"] .hero-frame__night {
  opacity: 1;
  transform: none;
}

body[data-stage="2"] .hero-frame__day {
  opacity: 0;
  transform: scale(1.02);
}

body[data-stage="2"] .hero-frame::after {
  opacity: 1;
}

body[data-stage="2"] .hero-frame__sticker {
  color: var(--paper);
  background: rgba(19, 38, 31, 0.58);
}

body[data-stage="2"] .hero-frame__live i {
  background: var(--orange);
  animation-duration: 1.8s;
}

body[data-stage="2"] .hero-float {
  background: rgba(246, 238, 224, 0.94);
}

body[data-stage="2"] .hero__notes {
  border-top-color: #d6cfc1;
}

body[data-stage="2"] .service-band {
  background: #f8f4ea;
}

body[data-stage="2"] .category-nav {
  background: rgba(250, 247, 239, 0.9);
}

body[data-stage="2"] .products-section {
  background: var(--paper-soft);
}

body[data-stage="2"] .product-art {
  filter: saturate(0.68) sepia(0.06);
}

body[data-stage="2"] .product-whisper {
  display: block;
}

body[data-stage="2"] .stage2-card {
  display: flex;
  animation: cardAppear 0.9s var(--ease);
}

body[data-stage="2"] .delivery-card__auto {
  display: inline-block;
}

body[data-stage="2"] .store-section {
  background:
    radial-gradient(circle at 5% 25%, rgba(237, 233, 219, 0.5), transparent 30%),
    #e4e9e0;
  border-color: #d3dcd2;
}

body[data-stage="2"] .store-photo__night {
  opacity: 1;
}

body[data-stage="2"] .store-photo__day {
  opacity: 0;
}

body[data-stage="2"] .store-facts {
  border-top-color: #cdd8cc;
}

body[data-stage="2"] .store-facts div {
  border-bottom-color: #cdd8cc;
}

body[data-stage="2"] .store__late {
  display: block;
}

body[data-stage="2"] .reviews-section {
  background: var(--paper-soft);
}

body[data-stage="2"] .section-heading__aside span {
  color: var(--orange-deep);
}

body[data-stage="2"] .chat-launcher {
  background: #1b352b;
}

body[data-stage="3"] {
  background: #0e1a16;
}

/* =========================================================
   No-JS + helper states
   ========================================================= */

.noscript {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes drawerIn {
  from { transform: translateX(100%); opacity: 0.4; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes modalIn {
  from { transform: translateY(18px) scale(0.985); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes chatIn {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes messageIn {
  from { transform: translateY(7px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes finaleIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .header__inner {
    gap: 22px;
  }

  .search {
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 5.8vw, 4.5rem);
  }

  .hero-float {
    width: 232px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store__grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .topbar__hours {
    display: none;
  }

  .header__inner {
    flex-wrap: wrap;
    padding: 14px 0;
    row-gap: 12px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }

  .header__tools {
    margin-left: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .hero__copy {
    max-width: 620px;
    padding-left: 0;
  }

  .hero h1 {
    min-height: 0;
    font-size: clamp(3.5rem, 8.5vw, 4.8rem);
  }

  .hero-frame {
    aspect-ratio: 1.55;
    min-height: 0;
  }

  .hero-float {
    width: 245px;
  }

  .service-band__inner {
    grid-template-columns: 1fr 1fr;
  }

  .service-band__inner span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-band__inner span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .store__copy {
    max-width: 100%;
  }

  .store__media {
    max-width: 650px;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

  .review {
    min-height: 0;
  }

  .review + .review {
    border-top: 1px solid var(--line);
  }

  .footer__top {
    flex-direction: column;
    gap: 38px;
  }

  .footer__columns {
    width: 100%;
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer__disclaimer {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --radius: 18px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .topbar__inner {
    min-height: 34px;
    gap: 12px;
  }

  .topbar__left {
    gap: 8px;
  }

  .topbar__store {
    max-width: 132px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
  }

  .topbar__right {
    gap: 9px;
  }

  .delivery-address {
    max-width: 154px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
  }

  .delivery-address b {
    display: inline-block;
    max-width: 108px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  .delivery-address .chevr {
    display: none;
  }

  .topbar__divider,
  .topbar__link {
    display: none;
  }

  .header__inner {
    min-height: 0;
    padding: 13px 0 12px;
  }

  .brand__mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }

  .brand__mark svg {
    width: 27px;
    height: 27px;
  }

  .brand__type strong {
    font-size: 19px;
  }

  .brand__type small {
    font-size: 6px;
  }

  .cart-button span {
    display: none;
  }

  .cart-button {
    padding-left: 8px;
  }

  .search {
    height: 42px;
  }

  .search button {
    height: 32px;
    padding-inline: 12px;
  }

  .category-nav__inner {
    min-height: 48px;
    gap: 22px;
  }

  .category-link {
    padding: 13px 0;
    font-size: 11px;
  }

  .category-nav__line {
    display: none;
  }

  .category-link--store {
    margin-left: auto;
  }

  .hero__inner {
    padding-top: 38px;
    padding-bottom: 42px;
    gap: 32px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.3vw, 4rem);
    line-height: 1.18;
  }

  .hero__desc {
    margin-top: 19px;
    font-size: 13px;
    line-height: 1.9;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__actions .button {
    flex: 1;
    min-width: 0;
  }

  .hero__notes {
    gap: 9px 18px;
    margin-top: 25px;
    padding-top: 17px;
  }

  .hero__notes span {
    font-size: 9px;
  }

  .hero-frame {
    aspect-ratio: 1.22;
    border-radius: 20px;
  }

  .hero-frame__sticker {
    top: 15px;
    right: 15px;
    width: 57px;
    height: 57px;
    font-size: 18px;
  }

  .hero-frame__sticker small {
    font-size: 5px;
  }

  .hero-frame__live {
    left: 14px;
    bottom: 14px;
    padding: 6px 9px;
    font-size: 7px;
  }

  .hero-frame__caption {
    top: 16px;
    left: 15px;
    font-size: 7px;
  }

  .hero-frame__caption span {
    display: none;
  }

  .hero-float {
    right: 12px;
    bottom: 12px;
    width: 207px;
    padding: 12px 13px;
    border-radius: 12px;
  }

  .hero-float strong {
    margin-top: 5px;
    font-size: 12px;
  }

  .hero-float p {
    display: none;
  }

  .hero-float__foot {
    margin-top: 8px;
  }

  .hero-float .price {
    font-size: 18px;
  }

  .hero-float .round-add {
    width: 27px;
    height: 27px;
  }

  .service-band__inner {
    min-height: 0;
  }

  .service-band__inner span {
    justify-content: flex-start;
    padding: 12px 10px;
    font-size: 9px;
  }

  .store-marquee__inner {
    min-height: 38px;
    gap: 10px;
  }

  .store-marquee__label {
    font-size: 7px;
  }

  .store-marquee p {
    font-size: 9px;
  }

  .store-marquee time {
    display: none;
  }

  .products-section {
    padding: 50px 0 60px;
  }

  .section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .section-heading__aside {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .section-heading__aside p {
    margin-top: 0;
  }

  .section-kicker {
    margin-bottom: 9px;
    font-size: 8px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-art-wrap {
    aspect-ratio: 1.05;
  }

  .product-art {
    width: 82%;
    height: 82%;
  }

  .product-badge {
    top: 9px;
    left: 9px;
    padding: 3px 6px;
    font-size: 7px;
  }

  .product-art__num {
    right: 8px;
    bottom: 5px;
    font-size: 22px;
  }

  .product-body {
    padding: 11px 11px 12px;
  }

  .product-meta {
    font-size: 7px;
  }

  .product-body h3 {
    margin-top: 6px;
    font-size: 13px;
  }

  .product-body > p {
    font-size: 9px;
    line-height: 1.6;
  }

  .product-whisper {
    font-size: 9px !important;
    margin-top: 5px;
  }

  .product-foot {
    padding-top: 10px;
  }

  .product-foot .price {
    font-size: 17px;
  }

  .product-foot .add-button {
    width: 29px;
    height: 29px;
  }

  .product-foot .add-button svg {
    width: 13px;
    height: 13px;
  }

  .lost-button {
    font-size: 8px;
  }

  .products-note {
    align-items: flex-start;
    margin-top: 17px;
    font-size: 9px;
    line-height: 1.7;
  }

  .store-section {
    padding: 54px 0;
  }

  .store__grid {
    gap: 28px;
  }

  .store-photo {
    aspect-ratio: 1.35;
  }

  .store-photo__caption {
    margin-top: 11px;
    font-size: 12px;
  }

  .store__copy h2 {
    font-size: 2.25rem;
  }

  .store__intro {
    margin-top: 14px;
    font-size: 12px;
  }

  .store-facts {
    gap: 0 18px;
    margin-top: 20px;
  }

  .store-facts div {
    padding: 10px 0;
  }

  .store-facts dd {
    font-size: 11px;
  }

  .store__actions .button {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
    font-size: 10px;
  }

  .reviews-section {
    padding: 52px 0;
  }

  .review-list {
    margin-inline: 0;
  }

  .review {
    padding: 20px 18px 17px;
  }

  .review blockquote {
    font-size: 14px;
  }

  .footer {
    font-size: 12px;
  }

  .site-footer {
    padding: 46px 0 20px;
  }

  .footer__top {
    gap: 26px;
    padding-bottom: 29px;
  }

  .footer__slogan {
    margin-top: 15px;
    font-size: 17px;
  }

  .footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }

  .footer__columns > div:last-child {
    grid-column: 1 / -1;
  }

  .footer__columns p,
  .footer__columns a,
  .footer__columns button {
    font-size: 10px;
  }

  .footer__link {
    display: inline-block;
    margin-right: 18px;
  }

  .footer__bottom {
    font-size: 7px;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 6px;
    border-radius: 50%;
  }

  .chat-launcher__avatar {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .chat-launcher__text {
    display: none;
  }

  .chat-launcher__dot {
    position: absolute;
    top: 7px;
    right: 7px;
    margin: 0;
  }

  .chat-panel {
    right: 14px;
    bottom: 76px;
    width: calc(100vw - 28px);
    height: min(500px, calc(100vh - 100px));
  }

  .drawer {
    width: 100vw;
  }

  .drawer__head,
  .modal__head {
    padding: 20px 18px 15px;
  }

  .drawer__head h2,
  .modal__head h2 {
    font-size: 22px;
  }

  .drawer__scroll {
    padding: 15px 18px 22px;
  }

  .drawer__foot {
    padding: 12px 18px 18px;
    gap: 10px;
  }

  .drawer__foot .button {
    min-width: 125px;
  }

  .cart-total strong {
    font-size: 21px;
  }

  .modal {
    width: calc(100vw - 20px);
    max-height: 90svh;
    border-radius: 16px;
  }

  .modal__panel {
    max-height: 90svh;
  }

  .modal__scroll {
    padding: 18px;
  }

  .modal__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 12px 18px 17px;
  }

  .modal__foot .checkout-footnote {
    text-align: center;
  }

  .checkout-footnote {
    order: 2;
  }

  .login__body .button {
    min-height: 44px;
  }

  .finale__inner {
    padding: 58px 12px 28px;
  }

  .finale__close {
    top: 12px;
    right: 12px;
  }

  .receipt {
    padding: 20px 19px 18px;
  }

  .receipt::before,
  .receipt::after {
    display: none;
  }

  .receipt__head {
    flex-direction: column;
    gap: 3px;
  }

  .receipt h2 {
    font-size: 2.8rem;
  }

  .receipt__lead {
    font-size: 10px;
  }

  .receipt__details div {
    gap: 10px;
    font-size: 9px;
  }

  .receipt__details dd {
    font-size: 8px;
  }

  .receipt__note {
    font-size: 21px;
  }

  .receipt__actions {
    flex-direction: column;
  }

  .receipt__actions .button {
    width: 100%;
  }

  .toast {
    bottom: 78px;
    max-width: calc(100vw - 28px);
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .brand__type small {
    display: none;
  }

  .hero-float {
    width: 190px;
  }

  .hero-float__tag {
    display: none;
  }

  .topbar__store {
    max-width: 105px;
  }

  .delivery-address {
    max-width: 138px;
  }

  .delivery-address b {
    max-width: 90px;
  }

  .product-body h3 {
    font-size: 12px;
  }

  .product-body > p {
    font-size: 8px;
  }

  .product-meta {
    font-size: 6px;
  }

  .product-foot .price {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-frame__day,
  .hero-frame__night,
  .store-photo__day,
  .store-photo__night {
    transition: none;
  }

  .atmosphere {
    display: none;
  }
}
