:root {
  color-scheme: light;
  --ink: #233036;
  --muted: #546064;
  --cream: #f8f6ef;
  --paper: #fffdf7;
  --accent: #dce9e1;
  --line: #dedbd1;
  --serif: "Instrument Serif", Georgia, "Songti SC", serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 66px);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 2px solid #6559ad; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; background: var(--accent); padding: 12px; }
.loading { min-height: 56vh; display: grid; place-content: center; font: 54px var(--serif); }
.section { max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.announcement { background: var(--accent); text-align: center; padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: .025em; min-height: 33px; }
.site-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 71px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.nav-links, .nav-actions { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 32px); }
.nav-links a, .nav-actions { font-size: 13px; font-weight: 600; }
.nav-links a:hover, .footer-links a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav-actions { justify-content: end; gap: clamp(8px, 1.35vw, 20px); }
.wordmark { font-size: clamp(31px, 3.4vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.09em; white-space: nowrap; padding-right: .09em; }
.wordmark span { color: #386657; }
.menu-select { appearance: none; border: 0; background: none; padding: 8px 13px 8px 3px; font-size: 12px; font-weight: 700; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 3px 3px; background-position: calc(100% - 6px) center, calc(100% - 3px) center; background-repeat: no-repeat; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 34px; border: 0; padding: 4px; background: transparent; }
.bag-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(460px, 45vw, 720px); padding: 64px clamp(32px, 7vw, 118px); overflow: hidden; background: #f8f4eb; }
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 auto; height: 100%; width: auto; max-width: none; mask-image: linear-gradient(90deg, transparent, #000 29%); }
.hero-content { width: min(43%, 570px); }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 15px; }
.hero h1 { font: 400 clamp(59px, 7vw, 112px)/.9 var(--serif); letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 em { display: block; font-weight: 400; color: #8d4a3e; }
.hero p:not(.eyebrow) { font-size: clamp(14px, 1.4vw, 18px); max-width: 36ch; line-height: 1.55; margin-bottom: 24px; }
.hero .button { min-width: 153px; }
.button { min-height: 45px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border-radius: 5px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; text-align: center; transition: background .16s, color .16s; }
.button:hover:not(:disabled) { background: #3c5159; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover:not(:disabled) { background: #ebe8db; }
.button .icon { width: 16px; height: 16px; }
.button.wide { width: 100%; }
.collection { padding-block: clamp(42px, 5.6vw, 91px); }
.section-title { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.section-title h2, .page-title { font: 400 clamp(48px, 5.4vw, 88px)/.95 var(--serif); margin: 0; letter-spacing: -.025em; }
.section-title .eyebrow { margin-bottom: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; min-height: 34px; }
.text-link .icon { width: 15px; height: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px 14px; }
.product-card { min-width: 0; }
.product-media { position: relative; }
.product-tile { display: block; position: relative; aspect-ratio: 1 / 1; background: #ede9df; border-radius: 8px; overflow: hidden; }
.product-tile img { width: 100%; height: 100%; object-fit: contain; }
.product-label { position: absolute; top: 11px; left: 11px; border-radius: 999px; background: var(--paper); padding: 5px 9px; font-size: 11px; font-weight: 700; }
.quick-add { position: absolute; right: 11px; bottom: 11px; display: grid; place-content: center; width: 37px; height: 37px; border: 1px solid #fff8; border-radius: 50%; background: var(--paper); }
.quick-add:hover { background: var(--accent); }
.product-meta { padding-top: 12px; display: grid; gap: 4px; font-size: 14px; }
.product-meta h3 { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.product-meta span { color: var(--muted); white-space: nowrap; }
.product-tag { display: inline-block; max-width: 100%; margin-top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.product-summary { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: #efede4; padding-block: 38px 27px; }
.footer-main { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 600; font-size: 13px; padding-top: 8px; }
.footer-bottom { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font-size: 12px; }
.page-head { padding-block: 49px 28px; }
.page-head p { margin: 15px 0 0; color: var(--muted); line-height: 1.6; }
.catalog-area { padding-bottom: 70px; }
.catalog-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 8px 15px; min-height: 36px; font-size: 13px; font-weight: 600; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.catalog-tools input, .catalog-tools select { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); padding: 8px; font-size: 13px; max-width: 160px; }
.catalog-count { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.product-page { padding-block: 24px 75px; }
.breadcrumbs { margin-bottom: 17px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.breadcrumbs a:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0, .88fr); align-items: start; gap: clamp(24px, 6vw, 105px); }
.detail-image { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: #ece9df; }
.detail-copy { padding-block: clamp(10px, 2.8vw, 50px) 0; }
.detail-copy .page-title { font-size: clamp(42px, 4.7vw, 74px); margin-bottom: 12px; overflow-wrap: anywhere; }
.detail-tag { margin: 0 0 12px; }
.detail-price { font-size: 20px; font-weight: 700; margin-bottom: 17px; }
.detail-intro { max-width: 56ch; color: var(--muted); line-height: 1.65; margin-bottom: 25px; white-space: pre-line; }
.detail-description { max-width: 62ch; white-space: pre-line; }
.bundle-box { background: #f0ede4; padding: 15px; border-radius: 7px; margin: 20px 0 16px; }
.bundle-box p { font-size: 13px; font-weight: 700; margin: 0 0 9px; }
.purchase-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 5px; min-height: 42px; background: transparent; }
.quantity button { border: 0; background: transparent; min-width: 33px; font-size: 17px; }
.quantity output { display: grid; place-content: center; min-width: 25px; font-variant-numeric: tabular-nums; }
.stock-note { margin: 11px 0 22px; color: var(--muted); font-size: 13px; }
.details-row { border-top: 1px solid var(--line); }
.details-row:last-child { border-bottom: 1px solid var(--line); }
.details-row summary { padding: 16px 0; font-weight: 700; font-size: 14px; cursor: pointer; }
.details-row p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.related { margin-top: 48px; }
.related h2 { font: 400 47px/.95 var(--serif); margin-bottom: 20px; }
.related .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.narrow { max-width: 820px; min-height: 52vh; padding-bottom: 60px; }
.empty-state { min-height: 200px; display: grid; align-content: center; justify-items: start; gap: 12px; }
.empty-state p { margin: 0; color: var(--muted); }
.bag-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; border: 0; width: min(100%, 470px); max-width: 100%; height: 100%; max-height: none; padding: 0; background: var(--cream); color: var(--ink); }
.bag-dialog[open] { display: flex; flex-direction: column; }
.bag-dialog::backdrop { background: #24251e66; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px 15px; border-bottom: 1px solid var(--line); }
.bag-head h2 { margin: 0; font: 400 42px/.95 var(--serif); }
.bag-body { padding: 16px 22px; overflow: auto; flex: 1; }
.bag-bottom { border-top: 1px solid var(--line); padding: 17px 22px 23px; }
.bag-line { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: start; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.bag-line img { width: 76px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #ede9df; }
.bag-line h3 { font-size: 14px; margin: 1px 0 8px; overflow-wrap: anywhere; }
.bag-line .quantity { min-height: 31px; }
.bag-line .quantity button { min-width: 26px; }
.bag-line .quantity output { min-width: 20px; font-size: 12px; }
.bag-line-price { text-align: right; white-space: nowrap; font-size: 13px; }
.remove-item { display: block; margin: 7px 0 0 auto; padding: 3px 0; border: 0; background: none; text-decoration: underline; color: var(--muted); font-size: 12px; }
.price-list { margin: 0 0 13px; }
.price-list div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.price-list dd { margin: 0; text-align: end; white-space: nowrap; }
.price-list .total { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 10px; font-weight: 700; }
.cart-page .bag-line { grid-template-columns: 90px minmax(0,1fr) auto; }
.cart-page .bag-line img { width: 90px; }
.cart-summary { margin: 24px 0 0 auto; max-width: 370px; }
.checkout-layout { padding-bottom: 62px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(22px, 6vw, 90px); align-items: start; }
.form-card, .summary-card, .order-result { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(16px, 3vw, 33px); }
.form-card h2, .summary-card h2, .order-result h2 { font: 400 35px/.95 var(--serif); margin: 0 0 16px; }
.form-card fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.field.full { grid-column: 1 / -1; }
.field input, .field select { width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px; background: #fffdf9; border: 1px solid #d5d2c5; border-radius: 5px; font-weight: 400; }
.form-card .button { margin-top: 17px; }
.form-note { margin: 11px 0 0; line-height: 1.5; font-size: 13px; color: var(--muted); }
.form-message { color: #a02e20; font-size: 13px; margin: 12px 0 0; line-height: 1.5; }
.summary-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-lines li { display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 10px; padding-block: 7px; font-size: 13px; overflow-wrap: anywhere; }
.summary-lines img { width: 47px; aspect-ratio: 1; border-radius: 5px; object-fit: cover; background: #ede9df; }
.summary-lines small { display: block; color: var(--muted); }
.order-result { margin-top: 18px; overflow-wrap: anywhere; }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.order-status { border-radius: 999px; padding: 5px 9px; background: #eee8d4; font-size: 12px; font-weight: 700; }
.order-result p { line-height: 1.5; }
.timeline { margin: 19px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.timeline li { border-top: 3px solid var(--line); padding: 8px 0; color: var(--muted); font-size: 12px; }
.timeline li.done { border-color: #7a814d; color: var(--ink); font-weight: 700; }
.contact-mail { display: inline-block; font: 400 clamp(24px, 4vw, 45px)/1.1 var(--serif); text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.error-page { min-height: 45vh; padding-block: 70px; }
.error-page p { color: var(--muted); margin-top: 20px; }
html[lang="zh-CN"] .hero h1 { font-size: clamp(40px, 4.65vw, 76px); line-height: 1.12; }
html[lang="zh-CN"] .hero h1 em { font-style: normal; }
html[lang="zh-CN"] .page-title, html[lang="zh-CN"] .section-title h2 { font-size: clamp(34px, 4vw, 65px); line-height: 1.08; }
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .site-nav { grid-template-columns: auto 1fr; gap: 0 15px; padding-top: 12px; }
  .wordmark { grid-row: 1; grid-column: 1; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; min-height: 38px; gap: 20px; }
  .hero { display: block; min-height: 0; padding: 0; }
  .hero-content { width: 100%; padding: 38px var(--gutter) 14px; }
  .hero-media { position: relative; z-index: auto; inset: auto; width: 100%; height: clamp(300px, 85vw, 500px); object-fit: cover; object-position: right center; mask-image: none; }
  .hero h1 { font-size: clamp(51px, 9.6vw, 80px); }
  .related .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .site-nav { padding-top: 8px; }
  .nav-links a, .nav-actions { font-size: 12px; }
  .hero-content { padding-top: 31px; }
  .hero h1 { margin-bottom: 14px; }
  .hero p:not(.eyebrow) { margin-bottom: 16px; }
  .hero .eyebrow { margin-bottom: 9px; }
  .section-title { align-items: start; gap: 8px; }
  .section-title h2 { font-size: clamp(36px, 10vw, 47px); }
  .section-title .text-link { white-space: nowrap; }
  .product-grid { gap: 25px 10px; }
  .quick-add { width: 44px; height: 44px; right: 8px; bottom: 8px; }
  .product-meta { gap: 3px; padding-top: 8px; }
  .footer-main { flex-direction: column; gap: 12px; }
  .footer-links { gap: 10px 15px; }
  .detail-grid, .checkout-layout { grid-template-columns: minmax(0,1fr); }
  #order-form .fields { grid-template-columns: minmax(0,1fr); }
  .field input, .field select, .catalog-tools input, .catalog-tools select { font-size: 16px; }
  .detail-copy { padding: 0; }
}
@media (max-width: 380px) {
  .cart-page .bag-line { grid-template-columns: 64px minmax(0,1fr) auto; }
  .cart-page .bag-line img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
.bag-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[data-checkout-link][aria-disabled="true"] { opacity: .55; cursor: default; }
