:root {
  color-scheme: light;
  --page: #f9f5ed;
  --paper: #fffdf8;
  --ink: #2e231e;
  --muted: #675950;
  --line: #e6dace;
  --red: #702d2b;
  --red-dark: #532320;
  --title: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #47978f; outline-offset: 3px; }
[id] { scroll-margin-top: 22px; }
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.section { padding-block: 70px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

h2 { font-family: var(--title); font-size: clamp(29px, 3.5vw, 45px); font-weight: 800; line-height: 1.23; }
.eyebrow { margin-bottom: 12px; font-size: 13px; font-weight: 750; letter-spacing: .16em; color: var(--red); }

.header { display: flex; min-height: 83px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 850; line-height: 1.18; white-space: nowrap; }
.brand img { width: 47px; height: 47px; object-fit: contain; }
.brand small { display: block; margin-top: 5px; font-size: 10px; font-weight: 650; letter-spacing: .19em; color: var(--muted); }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 14px; font-weight: 650; white-space: nowrap; }
nav a:hover, .nav-member:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-member { border: 0; padding: 8px 0; background: transparent; color: inherit; font-weight: inherit; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 45px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
}
.primary { color: white; background: var(--red); }
.primary:hover { background: var(--red-dark); }
.on-hero { color: var(--red-dark); background: #fff3e2; }
.on-hero:hover { background: white; }

.showcase { margin-top: 14px; margin-bottom: clamp(23px, 4vw, 50px); }
.carousel { overflow: hidden; border-radius: 20px; }
.carousel-track {
  display: flex;
  transform: translateX(calc(-100% * var(--slide-index, 0)));
  transition: transform .42s cubic-bezier(.22, .68, .26, 1);
}
.slide {
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: min(470px, 43vw);
  overflow: hidden;
  border-radius: 20px;
  background: #743832;
  color: #fff7ec;
}
.slide-fleece { background: #544436; }
.slide-cute { background: #65342f; }
.slide-copy { align-self: center; padding: clamp(25px, 5vw, 72px); }
.slide .eyebrow { color: #f3ceb0; }
.slide h1, .slide h2 {
  font-family: var(--title);
  font-size: clamp(39px, 5.65vw, 78px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.slide-copy > p:not(.eyebrow) { max-width: 26em; margin: 21px 0 25px; color: #f6e2d7; font-size: 16px; line-height: 1.75; }
.slide-photo { position: relative; min-height: 310px; background: #e7d7c2; }
.slide-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.slide-water .slide-photo img { object-fit: contain; background: #faf8f5; }
.slide-photo figcaption {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: #fffaf0f2;
  font-size: 12px;
  font-weight: 700;
}
.carousel-controls { display: flex; justify-content: center; padding-top: 8px; }
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.carousel-controls button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a68a7f;
  transition: transform .2s ease, background-color .2s ease;
}
.carousel-controls button:hover::before { background: #80584d; }
.carousel-controls button[aria-pressed="true"]::before {
  transform: scale(1.625);
  background: var(--red);
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.section-note { color: var(--muted); font-size: 14px; line-height: 1.55; }
.bundle-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.bundle-info { padding: 16px; }
.bundle-info h3 { font-size: 17px; line-height: 1.35; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 750; }

.bundle-section { background: #f2e9dc; }
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bundle-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 5px 5px 0; }
.bundle-pair figure { min-width: 0; overflow: hidden; background: #f3ece4; border-radius: 9px 9px 0 0; text-align: center; }
.bundle-photo { position: relative; overflow: hidden; aspect-ratio: 1.34; background: white; }
.bundle-photo img { width: 100%; height: 100%; object-fit: cover; }
.bundle-photo-trim img { position: absolute; inset: auto 0 0; height: auto; }
.bundle-pair figcaption { padding: 6px; font-weight: 650; font-size: 12px; color: var(--muted); }
.bundle-pair > span {
  position: absolute;
  inset: calc(45% - 15px) auto auto calc(50% - 15px);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  font-weight: 750;
  box-shadow: 0 2px 8px #40272024;
}
.bundle-info p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.bundle-info strong { margin-left: 4px; color: var(--red); font-size: 26px; line-height: 1.12; font-variant-numeric: tabular-nums; }
.bundle-info .comparison { font-size: 12px; }
.bundle-foot { display: flex; margin-top: 20px; justify-content: space-between; align-items: center; gap: 14px; }
.bundle-foot p { color: var(--muted); font-size: 13px; line-height: 1.55; }

.member { position: relative; display: grid; grid-template-columns: 1fr 0.72fr; border: 1px solid #e5c5ad; overflow: hidden; border-radius: 19px; background: #efd8c4; }
.member-copy { align-self: center; padding: clamp(24px, 5vw, 42px); }
.member-status { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 6px; color: #fff7ec; background: var(--red); font-size: 12px; font-weight: 750; }
.member-copy > p { margin-top: 12px; color: #51392d; line-height: 1.65; }
.member-benefits { display: flex; gap: clamp(12px, 3vw, 25px); flex-wrap: wrap; list-style: none; padding: 0; margin: 21px 0 17px; }
.member-benefits li { display: grid; gap: 4px; padding-right: 18px; border-right: 1px solid #ccab96; }
.member-benefits li:last-child { border: 0; }
.member-benefits strong { color: var(--red); font: 800 clamp(25px, 3.6vw, 41px)/1.15 var(--title); }
.member-benefits span, .member-fine { font-size: 13px; }
.member-mascot { align-self: stretch; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse, #fff0d7 5%, #f1d9c4 60%, transparent 75%); }
.member-mascot img { width: min(380px, 100%); filter: drop-shadow(8px 12px 16px #662c2724); }

.shop-entry { background: var(--red-dark); color: #fff7ec; }
.shop-entry-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 43px; }
.shop-entry h2 { font-size: clamp(25px, 3vw, 34px); }
.shop-entry p { margin-top: 9px; font-size: 14px; color: #f4d9c9; line-height: 1.65; }
.entry-actions { display: flex; align-items: center; gap: 14px; }
.on-dark { color: #fff2df; padding-block: 9px; }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 12px; font-size: 13px; color: var(--muted); }
.footer span { font-weight: 800; color: var(--ink); }
.mobile-bar { display: none; }

dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 40px); border: 1px solid var(--line); border-radius: 17px; padding: 0; background: var(--paper); color: var(--ink); }
.member-dialog { width: min(680px, calc(100% - 32px)); border: 0; }
.member-dialog h2 { font-size: clamp(27px, 5vw, 42px); }
.catalog-page { min-height: 62vh; padding-block: clamp(23px, 5vw, 67px); }
.catalog-back { display: inline-block; margin-bottom: 16px; color: var(--red); font-size: 14px; font-weight: 700; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; }
.catalog-heading h1 { font: 850 clamp(33px, 6vw, 62px)/1.16 var(--title); }
.catalog-heading p { max-width: 45em; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.catalog-heading button { flex: none; }
.catalog-jump { flex-wrap: wrap; gap: 8px; margin-block: 25px 29px; }
.catalog-jump a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.catalog-category + .catalog-category { margin-top: 34px; }
.catalog-category h2 { margin-bottom: 12px; font-size: clamp(23px, 3.3vw, 34px); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.catalog-filters button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.catalog-filters button:hover, .catalog-filters button[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
}
.catalog-filters button[aria-pressed="true"] { background: #f2e4db; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.35vw, 18px); margin: 0; padding: 0; list-style: none; }
.catalog-card { min-width: 0; }
.catalog-product {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.catalog-product:hover { border-color: #b78975; }
.catalog-product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f2ece4; }
.catalog-card-info { display: grid; gap: 9px; padding: 12px 13px 14px; }
.catalog-card-name { font-size: clamp(14px, 1.35vw, 17px); font-weight: 700; line-height: 1.35; }
.catalog-card-price { display: flex; align-items: baseline; gap: 3px; color: #9a302a; font-size: 13px; font-variant-numeric: tabular-nums; }
.catalog-card-price strong { font-size: clamp(21px, 2vw, 27px); line-height: 1; }
.price-symbol { font-weight: 700; }
#product-dialog { width: min(490px, calc(100% - 28px)); }
.product-detail-photo { width: 100%; height: min(41dvh, 340px); background: #f4eee7; border-radius: 9px; object-fit: contain; }
.product-detail-thumbs { display: flex; gap: 8px; margin: 10px 0 16px; }
.product-detail-thumbs button { width: 52px; height: 52px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.product-detail-thumbs button[aria-pressed="true"] { border: 2px solid var(--red); }
.product-detail-thumbs img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.product-detail #product-price { color: #9a302a; font-size: 16px; font-weight: 700; }
@media (max-width: 950px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .catalog-heading { align-items: start; flex-direction: column; gap: 11px; }
  .catalog-jump { justify-content: start; margin-block: 20px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog-card-info { padding: 9px 8px 11px; }
}
dialog::backdrop { background: #22161299; }
.dialog-body { position: relative; padding: 23px; }
.dialog-body h2 { font-size: clamp(25px, 5vw, 32px); }
.dialog-body p:not(.eyebrow) { margin: 10px 0 16px; color: var(--muted); line-height: 1.6; }
.close-button { position: absolute; top: 10px; right: 10px; z-index: 1; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 19px; }
.full-width { width: 100%; }
.dialog-body label { display: block; padding-top: 13px; font-size: 12px; }
#mini-link { width: 100%; margin-top: 5px; padding: 8px; resize: vertical; border: 1px solid var(--line); border-radius: 5px; font: inherit; background: var(--page); color: var(--ink); }
.toast { position: fixed; z-index: 5; bottom: 17px; left: 50%; width: max-content; max-width: calc(100% - 30px); transform: translateX(-50%); padding: 11px 15px; border-radius: 8px; background: var(--ink); color: white; text-align: center; font-size: 14px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .section { padding-block: 52px; }
  .section-heading { flex-wrap: wrap; }
  .slide-copy { padding-inline: 32px; }
  .bundle-info { padding: 11px; }
  .bundle-info strong { display: inline-block; margin-top: 2px; font-size: 23px; }
  .shop-entry-inner, .entry-actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 26px); }
  .section { padding-block: 41px; }
  .header { min-height: 68px; gap: 6px; }
  .brand { font-size: 16px; gap: 4px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { margin-top: 3px; font-size: 9px; letter-spacing: .1em; }
  nav { justify-content: end; flex-wrap: wrap; gap: 10px; font-size: 11px; }
  .nav-buy { display: none; }
  .showcase { margin-top: 4px; }
  .carousel { border-radius: 15px; }
  .slide { grid-template-columns: 1fr; border-radius: 15px; }
  .slide-copy { padding: 22px 20px 21px; }
  .slide h1, .slide h2 { font-size: clamp(37px, 9.5vw, 58px); }
  .slide-copy > p:not(.eyebrow) { min-height: 3em; margin-block: 12px; font-size: 14px; line-height: 1.55; }
  .slide-photo { min-height: 0; aspect-ratio: 1.78; }
  .slide-photo figcaption { font-size: 11px; bottom: 9px; right: 9px; }
  .bundle-info h3 { font-size: 15px; }
  .bundle-grid { grid-template-columns: 1fr; gap: 11px; }
  .bundle-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .bundle-pair { padding: 5px 0 5px 5px; }
  .bundle-pair figure { border-radius: 7px; }
  .bundle-pair figcaption { padding-inline: 2px; font-size: 11px; }
  .bundle-pair > span { width: 22px; height: 22px; left: calc(50% - 9px); font-size: 13px; }
  .bundle-foot, .shop-entry-inner { align-items: start; flex-direction: column; }
  .member { grid-template-columns: 1fr; }
  .member-copy { padding: 24px 20px 0; }
  .member-mascot { padding-block: 0 12px; }
  .member-mascot img { width: min(180px, 75%); }
  .footer { margin-bottom: calc(61px + env(safe-area-inset-bottom)); }
  .mobile-bar { position: fixed; z-index: 4; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; padding: 7px 13px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 750; }
  .mobile-bar small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
