/* ==========================================================
   THE SHOP · in the study: the same paper, ink and huanghuali as the cabinet and the story.
   Layered over the shop's own layout (shop.css); the cart and checkout keep their behaviour.
   ========================================================== */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../assets/fonts/cormorant.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../assets/fonts/cormorant-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(../assets/fonts/dm-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'Ma Shan Zheng'; font-style: normal; font-weight: 400; font-display: block; src: url(../assets/fonts/seal-tian.woff2) format('woff2'); unicode-range: U+5929; }

:root {
  --ink: #1b1712; --muted: #6b5f52; --cream: #ece6dc; --paper: #f4efe4; --line: rgba(27,23,18,.14);
  --green: #2f5d50; --jade: #8aa898; --wood: #7a4a2a; --wood-lo: #55301a; --linen: #efe9dc;
  --serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', serif;
  --cn: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}
html[lang="zh-CN"] { --sans: 'Noto Serif SC', 'Songti SC', serif; }
body { background: var(--cream); }
b { font-weight: inherit; }

.preview-ribbon { background: #e2d9c9; color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
html[lang="zh-CN"] .preview-ribbon { font: 12px/1.4 var(--cn); letter-spacing: .2em; text-transform: none; }

/* ---------- the crown, as on the cabinet ---------- */
.shop-header { position: sticky; top: 0; z-index: 30; height: 84px; background: rgba(236,230,220,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 500 19px var(--serif); letter-spacing: .14em; }
.seal { display: grid; place-items: center; width: 34px; height: 34px; background: #b8322a; color: #f6e9d8; font: 22px 'Ma Shan Zheng', var(--cn); border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(246,233,216,.35); }
.brand em { display: block; font: 10px var(--cn); font-style: normal; letter-spacing: .6em; color: var(--muted); }
html[lang="en"] .brand em { font: italic 11px var(--serif); letter-spacing: .4em; }
.shop-nav { gap: 28px; }
.shop-nav a { color: var(--muted); font: 13px var(--cn); letter-spacing: .2em; }
html[lang="en"] .shop-nav a { font: 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.shop-nav a[aria-current], .shop-nav a:hover { color: var(--ink); }
.shop-nav a[aria-current] { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.crown__end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(27,23,18,.2); border-radius: 100px; }
.lang button { width: 30px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 100px; font: 10px var(--mono); color: var(--muted); }
.lang button[data-lang="zh"] { font: 12px var(--cn); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #f1ead9; }
.bag-button { border-color: var(--ink); color: var(--ink); font: 13px var(--cn); letter-spacing: .12em; }
html[lang="en"] .bag-button { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.bag-button span { background: var(--ink); color: #f1ead9; }

/* ---------- hero: the same paper and window light as the cabinet ---------- */
.shop-hero { background: radial-gradient(ellipse 70% 70% at 20% 0%, rgba(255,250,236,.95), transparent 60%), linear-gradient(180deg, #ece6dc, #e4dbcb); }
.eyebrow { color: var(--green); font: 10px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
html[lang="zh-CN"] .eyebrow { font: 12px/1.4 var(--cn); letter-spacing: .3em; }
.hero-copy h1 { font: 400 clamp(56px, 5.6vw, 96px)/1.05 var(--serif); letter-spacing: 0; }
html[lang="zh-CN"] .hero-copy h1 { font: 900 clamp(48px, 4.8vw, 82px)/1.2 var(--cn); letter-spacing: .02em; }
.hero-copy h1 em { color: var(--green); font-style: italic; }
html[lang="zh-CN"] .hero-copy h1 em { font-style: normal; }
.hero-description { color: #3a3129; font: 18px/1.75 var(--serif); }
html[lang="zh-CN"] .hero-description { font: 16px/2 var(--cn); }
.primary-link { background: var(--ink); color: #f1ead9; font: 13px var(--cn); letter-spacing: .14em; }
html[lang="en"] .primary-link, html[lang="en"] .secondary-link { font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.primary-link:hover { background: var(--green); }
.secondary-link { border-bottom-color: var(--ink); color: var(--ink); font: 13px var(--cn); letter-spacing: .14em; }
/* the piece stands in a single linen niche of the cabinet */
.hero-orbit { width: min(28vw, 380px); aspect-ratio: .78; border-radius: 0; border: 0;
  background: radial-gradient(ellipse 80% 70% at 30% 20%, rgba(255,253,246,.9), transparent 70%), linear-gradient(180deg, var(--linen), #e1d8c6);
  box-shadow: inset 0 14px 18px -12px rgba(60,35,15,.45), 0 0 0 10px var(--wood), 0 0 0 11px var(--wood-lo), 0 30px 60px -28px rgba(60,35,15,.55); }
.hero-art::after { display: none; }
.hero-art img { width: min(22vw, 300px); max-height: 470px; filter: drop-shadow(0 18px 14px rgba(70,45,20,.3)); }
.hero-index { color: var(--muted); font: 10px var(--mono); }

/* ---------- the collection: each card a niche of linen ---------- */
.collection-section { background: var(--paper); }
.section-heading h2, .journey-section h2 { font: 400 clamp(40px, 4.2vw, 66px) var(--serif); letter-spacing: 0; }
html[lang="zh-CN"] .section-heading h2, html[lang="zh-CN"] .journey-section h2 { font: 900 clamp(34px, 3.6vw, 56px) var(--cn); letter-spacing: .04em; }
.section-heading > p { color: var(--muted); font: 16px/1.7 var(--serif); max-width: 380px; }
html[lang="zh-CN"] .section-heading > p { font: 13px/1.9 var(--cn); }
.filter-list button { border-color: rgba(27,23,18,.2); color: var(--muted); font: 13px var(--cn); letter-spacing: .14em; }
html[lang="en"] .filter-list button { font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.filter-list button span { color: var(--green); opacity: 1; }
.filter-list button:hover, .filter-list button.is-active { background: var(--ink); border-color: var(--ink); color: #f1ead9; }
.filter-list button.is-active span { color: #c9dccf; }
.count-label { color: var(--muted); }
.product-image { background: radial-gradient(ellipse 80% 70% at 30% 20%, rgba(255,253,246,.85), transparent 70%), linear-gradient(180deg, var(--linen), #e1d8c6);
  box-shadow: inset 0 12px 16px -10px rgba(60,35,15,.4), 0 0 0 4px var(--wood), 0 0 0 5px var(--wood-lo); margin: 5px; }
.product-image::after { background: rgba(70,45,20,.6); }
.product-image img { width: 74%; height: 74%; filter: drop-shadow(0 12px 10px rgba(70,45,20,.25)); }
.product-index { color: var(--muted); }
.product-card-copy p { color: var(--muted); font: 10px var(--mono); }
.product-card-copy h3 { font: 500 24px var(--serif); }
html[lang="zh-CN"] .product-card-copy h3 { font: 600 20px var(--cn); letter-spacing: .06em; }
.product-card-copy span { color: #3a3129; font: 15px/1.6 var(--serif); }
html[lang="zh-CN"] .product-card-copy span { font: 12px/1.8 var(--cn); }
.archive-link, .add-button { color: var(--ink); font: 12px var(--cn); letter-spacing: .1em; }
html[lang="en"] .archive-link, html[lang="en"] .add-button { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.add-button { color: var(--green); }

/* ---------- the journey and the footer ---------- */
.journey-section { background: #e6ddcc; }
.journey-section li { border-top-color: rgba(27,23,18,.2); }
.journey-section li:last-child { border-bottom-color: rgba(27,23,18,.2); }
.journey-section li > span { color: var(--green); }
.journey-section h3 { font: 500 24px var(--serif); }
html[lang="zh-CN"] .journey-section h3 { font: 600 19px var(--cn); }
.journey-section li p { color: var(--muted); font: 15px/1.7 var(--serif); }
html[lang="zh-CN"] .journey-section li p { font: 13px/1.8 var(--cn); }
.shop-footer { background: var(--ink); color: #e9e1d0; }
.shop-footer p { font: italic 16px var(--serif); }
html[lang="zh-CN"] .shop-footer p { font: 14px var(--cn); font-style: normal; letter-spacing: .2em; }

/* ---------- selection drawer and checkout preview: same behaviour, the study's colours ---------- */
.drawer-backdrop { background: rgba(27,23,18,.4); }
.cart-drawer, .checkout-dialog { background: var(--paper); }
.checkout-dialog::backdrop { background: rgba(27,23,18,.5); }
.drawer-heading h2, .checkout-dialog h2 { font: 400 34px var(--serif); }
html[lang="zh-CN"] .drawer-heading h2, html[lang="zh-CN"] .checkout-dialog h2 { font: 900 28px var(--cn); }
.drawer-heading h2 span { color: var(--green); }
.icon-button { border-color: rgba(27,23,18,.3); color: var(--ink); }
.drawer-notice, .checkout-intro, .checkout-steps p, .amount-placeholder, .empty-cart { color: var(--muted); }
.cart-item img { background: var(--linen); }
.cart-item p { color: var(--muted); }
.quantity-row button { border-color: rgba(27,23,18,.25); }
.drawer-primary { background: var(--ink); }
.checkout-steps section > span { color: var(--green); }
.checkout-summary { background: #ece4d4; }
.checkout-summary > p, .checkout-summary > div { color: var(--muted); }
.checkout-summary .checkout-total { border-top-color: rgba(27,23,18,.2); }
.checkout-summary button { background: #b7ab98; }

@media (max-width: 1000px) {
  .shop-header { grid-template-columns: auto 1fr auto; }
  .shop-nav { gap: 18px; }
}
@media (max-width: 700px) {
  .shop-header { height: auto; position: sticky; padding: 12px 16px; grid-template-columns: 1fr auto; }
  .brand { font-size: 16px; letter-spacing: .08em; white-space: nowrap; gap: 9px; }
  .seal { width: 30px; height: 30px; font-size: 19px; }
  .brand em { display: none; }
  .crown__end { grid-column: 2; grid-row: 1; gap: 8px; }
  .shop-nav { grid-column: 1 / -1; grid-row: 2; gap: 20px; }
  .shop-nav a.to-story { display: none; }
  .bag-button { padding: 5px 6px 5px 11px; }
  .hero-orbit { width: 62vw; }
  .hero-art img { width: 46vw; height: 330px; }
  .product-image { margin: 4px; }
}

/* ---------- live store: ship-to, prices, the real checkout ---------- */
#checkout-live [hidden], #checkout-live[hidden], #checkout-preview[hidden], .ship-to[hidden] { display: none !important; }
.toolbar-end { display: flex; align-items: center; gap: 18px; }
.ship-to { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 12px var(--cn); letter-spacing: .1em; }
html[lang="en"] .ship-to { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ship-to select { padding: 7px 28px 7px 12px; border: 1px solid rgba(27,23,18,.25); border-radius: 30px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231b1712'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); font: 13px var(--serif); letter-spacing: 0; text-transform: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.product-price { display: block; margin-top: 6px; color: var(--green); font: 500 18px var(--serif); font-variant-numeric: tabular-nums; }
.product-price.is-launch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 0; }
.product-price.is-launch strong { color: #a3302a; font: 500 20px var(--serif); }
.product-price.is-launch s { color: var(--muted); opacity: .7; font: 14px var(--serif); text-decoration-thickness: 1px; }
.product-price.is-launch em { padding: 2px 7px; border: 1px solid rgba(163,48,42,.4); border-radius: 2px; color: #a3302a; font: normal 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
html[lang="zh-CN"] .product-price.is-launch em { font: 11px var(--cn); letter-spacing: .1em; }
.add-button:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

.address-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.address-form h3, .payment-step h3 { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; padding-top: 16px; border-top: 1px solid var(--line); font: 500 20px var(--serif); }
html[lang="zh-CN"] .address-form h3, html[lang="zh-CN"] .payment-step h3 { font: 600 17px var(--cn); }
.address-form h3 span, .payment-step h3 span { color: var(--green); font: 10px var(--mono); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field span { color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
html[lang="zh-CN"] .field span { font: 12px var(--cn); letter-spacing: .08em; text-transform: none; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid rgba(27,23,18,.22); border-radius: 2px; background: #fbf8f1; color: var(--ink); font: 15px var(--serif); }
.field input:focus { outline: 2px solid var(--jade); outline-offset: 0; border-color: var(--green); }
.field input[readonly] { background: #ece4d4; color: var(--muted); }
.address-form .drawer-primary { grid-column: 1 / -1; margin-top: 6px; }
.payment-step { display: flex; flex-direction: column; gap: 14px; }
.shipping-line { margin: 0; color: var(--muted); font: 14px/1.6 var(--serif); }
html[lang="zh-CN"] .shipping-line { font: 13px/1.8 var(--cn); }
#payment-element { min-height: 60px; }
.drawer-primary:disabled { opacity: .5; cursor: progress; }
.text-button { align-self: start; border: 0; background: none; padding: 4px 0; color: var(--muted); font: 12px var(--cn); text-decoration: underline; cursor: pointer; }
.checkout-error { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid #b8322a; background: rgba(184,50,42,.07); color: #8a2620; font: 13px/1.6 var(--cn); }
#live-summary > div span { min-width: 0; }
.order-done { padding: 30px 0 10px; text-align: center; }
.order-done h3 { margin: 14px 0 10px; font: 400 34px var(--serif); }
html[lang="zh-CN"] .order-done h3 { font: 900 26px var(--cn); }
.order-done p { color: var(--muted); font: 15px/1.7 var(--serif); }
.order-done .order-total { color: var(--green); font: 500 18px var(--serif); font-variant-numeric: tabular-nums; }
.order-done .drawer-primary { max-width: 320px; margin: 22px auto 0; }
@media (max-width: 700px) {
  .collection-toolbar { flex-wrap: wrap; }
  .toolbar-end { width: 100%; justify-content: space-between; }
  .address-form { grid-template-columns: 1fr; }
}

.consent { margin: 0; color: var(--muted); font: 13px/1.7 var(--serif); }
html[lang="zh-CN"] .consent { font: 12px/1.9 var(--cn); }
.consent a { color: var(--green); }
.shop-footer .policy-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.shop-footer .policy-links a { color: #e9e1d0; text-decoration: none; border-bottom: 1px solid rgba(233,225,208,.35); }
