:root {
  --red: #b34716;
  --orange: #f47700;
  --deep: #20160f;
  --gold: #bd8840;
  --cream: #fff3df;
  --paper: #fffaf1;
  --muted: #756553;
  --line: #eadfce;
  --shadow: 0 18px 50px rgba(65, 35, 16, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 241, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  min-width: 0;
}
.brand span { line-height: 1.1; }
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: uppercase;
}
.logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: serif;
  font-size: 24px;
  flex: 0 0 auto;
}
.topbar nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.topbar nav a { line-height: 1.1; text-align: center; }
.topbar nav small { display: block; font-size: 11px; color: var(--muted); }

.hero {
  min-height: 520px;
  max-width: 1120px;
  margin: auto;
  padding: 42px 20px 34px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 34px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
}
h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.12;
  margin: 14px 0 18px;
  letter-spacing: 0;
}
h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  margin: 8px 0 12px;
  letter-spacing: 0;
}
h2 span,
dialog h2 span {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: .44em;
  font-weight: 700;
  color: var(--muted);
}
.hero-copy > p:not(.eyebrow) {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}
.hero-copy > p span,
.section-heading > p span,
.poster-card p span {
  display: block;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  line-height: 1.15;
}
.button small {
  font-weight: 600;
  opacity: .78;
}
.primary { background: var(--orange); color: #fff; }
.ghost { border: 1px solid var(--line); background: #fff; }
.dark { background: var(--deep); color: #fff; }
.full { width: 100%; }
.text-link { font-weight: 900; color: var(--orange); }

.hero-art {
  aspect-ratio: 1.48;
  border-radius: 8px;
  background: #f8ead8;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art img,
.feature-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-strip {
  background: #fbefe0;
  color: var(--deep);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px max(16px, calc((100% - 1120px) / 2));
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promo-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #d8c7ad;
}
.promo-strip div:last-child { border-right: 0; }
.promo-strip strong { color: #8d4f12; }
.promo-strip span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.section {
  max-width: 1120px;
  margin: auto;
  padding: 58px 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
  gap: 24px;
}
.section-heading.compact { margin-bottom: 18px; }
.section-heading > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 430px;
}

.poster-showcase { padding-top: 46px; }
.poster-grid {
  display: grid;
  grid-template-columns: 1.35fr .82fr .82fr;
  gap: 14px;
}
.poster-card {
  min-height: 250px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  position: relative;
}
.feature-poster {
  background: var(--cream);
  box-shadow: var(--shadow);
}
.poster-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff3df 100%);
}
.poster-copy.store-note { background: #fffaf1; }
.poster-card span {
  font-size: 12px;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
}
.poster-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin: 10px 0;
}
.poster-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .92fr .92fr;
  gap: 16px;
  align-items: stretch;
  padding-top: 34px;
}
.entry-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entry-card.strong {
  background: var(--cream);
  border-color: #efd7b6;
}
.entry-card span {
  font-weight: 900;
  color: var(--orange);
  font-size: 13px;
}
.entry-card h3 {
  font-size: 20px;
  margin: 0;
}
.entry-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}
.entry-card .button {
  width: max-content;
  margin-top: auto;
}

.order-shell {
  max-width: none;
  background: var(--cream);
  padding-top: 54px;
  scroll-margin-top: 120px;
}
.order-shell > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.store-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.store-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.store-card.active {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(244, 119, 0, .14);
}
.store-card strong,
.store-card small { display: block; }
.store-card strong span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.store-card small {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 16px;
  padding-bottom: 2px;
}
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  white-space: nowrap;
  cursor: pointer;
}
.tab.active {
  background: var(--deep);
  color: #fff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.product {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(231, 222, 211, .62);
}
.product-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ddc9af, #f5e8d7);
  display: grid;
  place-items: center;
  color: #94765c;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.product-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}
.product .en {
  font-size: 11px;
  color: var(--muted);
  min-height: 42px;
  margin: 5px 0 10px;
  line-height: 1.35;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.product-footer strong {
  color: var(--orange);
  font-size: 13px;
  white-space: nowrap;
}
.qty {
  display: flex;
  align-items: center;
  gap: 7px;
}
.qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.qty .minus {
  background: var(--cream);
  color: var(--deep);
}

.hidden { display: none !important; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.form-panel {
  display: grid;
  gap: 13px;
}
.form-panel label {
  font-size: 13px;
  font-weight: 700;
}
.form-panel input,
.form-panel select,
.form-panel textarea,
.lookup input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 6px;
  background: #fff;
  font: inherit;
}
.consent {
  display: flex;
  gap: 8px;
  line-height: 1.45;
}
.consent small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.consent input {
  width: auto;
  margin: 2px 0;
  flex: 0 0 auto;
}
.lookup {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}
.order-result {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}
.outlets { background: #fff; }
.outlet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.outlet {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.outlet h3 { margin-top: 0; }
.outlet p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.cartbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(620px, calc(100% - 24px));
  background: var(--deep);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.cartbar button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  cursor: pointer;
}
.cartbar b {
  background: var(--orange);
  border-radius: 99px;
  padding: 2px 7px;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(30, 15, 13, .65); }
.success-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e0f1e4;
  color: #2a7540;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: auto;
}
.notice {
  background: var(--cream);
  padding: 12px;
  border-radius: 8px;
}
footer {
  background: var(--deep);
  color: #fff;
  padding: 38px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer span,
footer small { opacity: .64; }
footer a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .poster-grid { grid-template-columns: 1fr 1fr; }
  .feature-poster { grid-column: 1 / -1; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid > div { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 10px;
  }
  .brand {
    min-width: 220px;
  }
  .brand small { display: none; }
  .topbar nav {
    gap: 12px;
    font-size: 12px;
    padding-top: 7px;
  }
  .topbar nav small { font-size: 10px; }
  .hero {
    padding-top: 30px;
    min-height: auto;
    gap: 24px;
  }
  .hero-art {
    aspect-ratio: 16 / 10;
    max-height: 300px;
  }
  .promo-strip { font-size: 13px; }
  .poster-grid,
  .intro-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .poster-card { min-height: 210px; }
  .section { padding: 42px 16px; }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .store-picker { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .outlet-grid { grid-template-columns: 1fr; }
  .lookup { grid-template-columns: 1fr; }
  .product-body { padding: 12px; }
  .product h3 { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .entry-card .button { width: 100%; }
  .cartbar button {
    font-size: 13px;
    align-items: center;
  }
  .cartbar strong { white-space: nowrap; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .topbar { display: block; }
  .topbar nav {
    margin-top: 8px;
    justify-content: space-between;
  }
}

@media (min-width: 361px) and (max-width: 430px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image { aspect-ratio: 1 / .78; }
}

/* Mobile preorder flow refinements */
.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-carousel img {
  min-width: 100%;
  scroll-snap-align: start;
}
.home-only {
  border-bottom: 10px solid #f4e4cf;
}
.order-shell {
  border-top: 10px solid #f4e4cf;
}
.product-image {
  position: relative;
  overflow: hidden;
}
.product-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  border-radius: 999px;
  background: rgba(244, 119, 0, .94);
  color: #fff;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

@media (max-width: 800px) {
  body {
    background: #fffaf1;
  }
  .topbar {
    position: sticky;
    align-items: center;
  }
  .brand {
    flex: 1 1 auto;
  }
  .topbar nav {
    flex: 1 0 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 28px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.65;
  }
  .hero-actions {
    position: sticky;
    top: 112px;
    z-index: 10;
  }
  .hero-art {
    width: 100%;
    aspect-ratio: 1.42;
  }
  .promo-strip {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px 10px;
    gap: 0;
  }
  .promo-strip strong {
    font-size: 13px;
  }
  .promo-strip span {
    font-size: 9px;
  }
  .poster-showcase {
    padding-top: 34px;
  }
  .poster-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .poster-card {
    min-width: 84%;
    scroll-snap-align: start;
  }
  .feature-poster {
    min-width: 92%;
  }
  .order-shell {
    padding-top: 34px;
  }
  .order-shell .section-heading {
    margin-bottom: 16px;
  }
  .store-card {
    padding: 12px 14px;
  }
  .category-tabs {
    position: sticky;
    top: 106px;
    z-index: 12;
    background: var(--cream);
    margin-left: -16px;
    margin-right: -16px;
    padding: 8px 16px 10px;
    border-top: 1px solid #ecd6b8;
    border-bottom: 1px solid #ecd6b8;
  }
  .tab {
    flex: 1 0 auto;
    text-align: center;
    font-weight: 900;
  }
  .product-grid {
    gap: 10px;
  }
  .product {
    border-radius: 10px;
  }
  .product-image {
    aspect-ratio: 1 / .82;
  }
  .product .en {
    min-height: 58px;
  }
  .product-footer {
    align-items: flex-end;
  }
  .qty button {
    width: 34px;
    height: 34px;
  }
  .checkout {
    padding-bottom: 96px;
  }
  .cartbar {
    bottom: 10px;
    width: calc(100% - 20px);
  }
}
