:root {
  color-scheme: light;
  --canvas: #fcfaf6;
  --ink: #27231f;
  --muted: #625b56;
  --line: #e5dfd6;
  --accent: #4d3b69;
  --accent-deep: #39294f;
  --tint: #f2eef6;
  --panel: #fffdfa;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-behavior: smooth; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #9581b0; outline-offset: 3px; }
p { line-height: 1.55; }
.wrap { width: min(100% - 88px, 1180px); margin-inline: auto; }
.utility {
  display: flex; justify-content: center; align-items: center; gap: 9px;
  padding: 9px 12px; min-height: 35px; background: #e9e1ef; color: #473756;
  font-size: .8125rem; font-weight: 600; letter-spacing: .025em;
}
.utility-dot, .preview-badge i { width: 6px; height: 6px; color: #695383; border-radius: 50%; background: currentColor; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 75px; }
.wordmark { font-family: Georgia, serif; font-weight: 600; font-size: 2rem; letter-spacing: -.075em; line-height: 1; }
.wordmark i { color: #73548e; font-style: normal; }
.header-end { display: flex; align-items: center; gap: 25px; font-size: .875rem; font-weight: 600; }
.header-end .store-language { width: auto; min-height: 38px; font-size: .875rem; padding: 6px 29px 6px 9px; }
.market { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.nav-order { border: 1px solid var(--line); padding: 9px 14px; border-radius: 8px; display: flex; align-items: center; gap: 9px; }
.nav-order:hover { background: var(--tint); }
.icon { display: inline-block; position: relative; }
.bag-icon { width: 12px; height: 12px; border: 1.4px solid currentColor; margin-top: 3px; border-radius: 2px; }
.bag-icon::before { content: ""; position: absolute; width: 6px; height: 5px; left: 1.6px; bottom: 9px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.product { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(45px, 7vw, 112px); padding-block: 45px 64px; }
.gallery, .product-info, .summary { min-width: 0; }
.hero-photo, .thumb, .summary-photo { background-color: #dcc8b1; background-image: url("/assets/pendant.webp"); background-size: 300% auto; background-repeat: no-repeat; }
.hero-photo { aspect-ratio: .88; max-height: 650px; border-radius: 16px; }
.photo-0 { background-position: 0% 41%; }
.photo-1 { background-position: 50% 43%; }
.photo-2 { background-position: 100% 52%; }
.real-photo { background-size: cover; background-position: center; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 64px; height: 61px; border-radius: 7px; border: 0; }
.thumb[aria-pressed="true"] { outline: 1px solid var(--accent); outline-offset: 3px; }
.thumb:first-child { margin-left: 4px; }
.product-info { padding-block: 4px 48px; }
.preview-badge { display: inline-flex; gap: 8px; align-items: center; border-radius: 999px; background: #eee6f2; color: #4c3a5e; padding: 5px 12px; font-size: .8125rem; font-weight: 650; margin: 0 0 14px; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; line-height: 1.02; }
h1 { font-size: clamp(3.3rem, 6.25vw, 6rem); max-width: 8.5ch; }
h2 { font-size: clamp(2.65rem, 5vw, 4rem); }
html[lang^="zh-"] h1, html[lang^="zh-"] h2 {
  font-family: "Noto Serif CJK TC", "Songti TC", PMingLiU, Georgia, serif;
  letter-spacing: -.035em; line-height: 1.12;
}
html[lang^="zh-"] h1 { max-width: 4.6em; font-size: clamp(2.8rem, 4.75vw, 4.5rem); }
h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.description { font-size: 1.06rem; color: var(--muted); margin: 17px 0 16px; max-width: 35ch; overflow-wrap: anywhere; }
.price { font-size: 1.63rem; font-weight: 650; margin: 0 0 23px; }
.package-picker { min-width: 0; padding: 0; margin: 0 0 16px; border: 0; }
.package-picker legend { padding: 0; margin-bottom: 8px; font-size: .875rem; font-weight: 650; }
.package-options { display: grid; gap: 8px; }
.package-option {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center;
  gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.package-option:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.package-option:has(input:disabled) { cursor: default; }
.package-option input { appearance: auto; min-height: 0; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--accent); }
.package-option strong { font-size: .9375rem; overflow-wrap: anywhere; }
.package-option small { display: block; color: var(--muted); font-size: .875rem; }
.package-option .package-amount { color: var(--accent-deep); white-space: nowrap; }
.package-picker:not([hidden]) + .purchasing { border-top: 0; padding-top: 0; }
.purchasing { display: flex; gap: 19px; align-items: end; padding-top: 19px; border-top: 1px solid var(--line); margin-bottom: 20px; }
.purchase-label { display: block; font-size: .875rem; margin-bottom: 8px; font-weight: 650; }
.variant, .quantity { display: flex; align-items: center; border: 1px solid var(--line); min-height: 45px; border-radius: 7px; font-size: .875rem; font-weight: 600; }
.variant { gap: 8px; padding: 8px 13px; overflow-wrap: anywhere; }
.variant i { width: 15px; height: 15px; background: #946b3d; border-radius: 50%; flex: none; }
.quantity button { width: 40px; height: 43px; padding: 0; background: none; border: 0; font-size: 1.2rem; }
.quantity button:disabled { color: #7d746d; }
.quantity button:hover:enabled { background: var(--tint); border-radius: 6px; }
.quantity output { min-width: 22px; text-align: center; }
.button {
  min-height: 47px; padding: 10px 18px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; gap: 10px; font-weight: 650;
  border: 1px solid transparent; line-height: 1.3; text-align: center;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-deep); }
.primary:disabled { opacity: .6; }
.secondary { background: transparent; border-color: var(--line); }
.secondary:hover { background: var(--tint); }
.buy { width: 100%; justify-content: space-between; min-height: 56px; padding-inline: 19px; }
.buy #buy-price { opacity: .86; }
.shop-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: .875rem; }
.whatsapp-widget {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10; display: grid; justify-items: end; gap: 9px;
}
.whatsapp-toggle, .whatsapp-action { background: #176b44; color: #fff; }
.whatsapp-toggle {
  padding: 8px 13px 8px 9px; border: 0; border-radius: 999px; min-height: 44px;
  display: flex; align-items: center; gap: 7px; font-weight: 700; box-shadow: 0 3px 14px #23231f30;
}
.whatsapp-toggle:hover, .whatsapp-action:hover { background: #105235; }
.whatsapp-icon { width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.whatsapp-panel {
  width: min(290px, calc(100vw - 28px)); padding: 16px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); box-shadow: 0 6px 30px #23231f30;
}
.whatsapp-panel header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.whatsapp-panel h3 { margin: 0; font-size: 1rem; }
.whatsapp-panel header button { min-width: 34px; min-height: 34px; padding: 0; border-radius: 6px; border: 0; background: transparent; font-size: 1.35rem; }
.whatsapp-panel header button:hover { background: var(--tint); }
.whatsapp-panel p { margin: 6px 0 12px; color: var(--muted); font-size: .9rem; }
.whatsapp-action { display: flex; }
.site-footer:has(~ .whatsapp-widget:not([hidden])) { padding-bottom: 70px; }
.photo-empty { background-color: var(--tint); background-image: none; }
.catalog { padding-bottom: 43px; scroll-margin: 85px; }
.catalog h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 15px; }
.catalog-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.catalog-card {
  padding: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; line-height: 1.4;
  display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 9px; align-items: center; overflow-wrap: anywhere;
}
.catalog-card:hover, .catalog-card[aria-current="page"] { background: var(--tint); border-color: var(--accent); }
.catalog-image { display: block; width: 45px; height: 45px; border-radius: 6px; overflow: hidden; background: var(--tint); }
.catalog-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-notes > div, .summary-payment { display: flex; gap: 8px; align-items: center; }
.note-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #eee6f2; font-size: .82rem; flex: none; }
.checkout { background: #f0ebf3; padding-block: 58px 75px; scroll-margin: 85px; }
.checkout-heading { margin-bottom: 25px; }
.checkout-heading p { margin: 9px 0 0; color: var(--muted); }
.checkout-grid { display: grid; grid-template-columns: 1.45fr 1fr; align-items: start; gap: 24px; }
.panel { border: 1px solid #e7dfea; background: var(--panel); border-radius: 14px; padding: clamp(18px, 3vw, 32px); }
.checkout-form h3 { margin-bottom: 18px; }
.test-notice { font-size: .875rem; background: var(--tint); padding: 10px 12px; border-radius: 7px; margin: 0 0 16px; color: #514360; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: grid; align-content: start; gap: 7px; font-weight: 600; font-size: .875rem; }
.full-row { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); background: #fff;
  border: 1px solid #d9d1c8; border-radius: 7px; min-height: 44px; font-size: 1rem;
}
input[readonly] { background: #f6f2ed; color: var(--muted); }
input::placeholder, textarea::placeholder { color: #746b63; }
select {
  appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, #655970 50%), linear-gradient(135deg, #655970 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.submit { margin-top: 21px; width: 100%; min-height: 52px; }
.payment-note { font-size: .875rem; text-align: center; color: var(--muted); margin: 10px 0 0; }
.order-status { color: #8f2f37; font-size: .9rem; margin: 13px 0 0; }
.summary-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 13px; align-items: center; margin-block: 17px 19px; overflow-wrap: anywhere; }
.summary-photo { border-radius: 6px; width: 64px; height: 68px; }
.summary small { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.breakdown, .receipt-details { margin: 0; }
.breakdown > div, .receipt-details > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; }
.breakdown dt, .receipt-details dt { color: var(--muted); }
dd { margin: 0; text-align: right; white-space: nowrap; }
.breakdown .total { font-size: 1.2rem; font-weight: 700; padding-top: 15px; border-top: 1px solid var(--line); margin-top: 9px; }
.total dt { color: var(--ink); }
.regional-shipping { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.summary-payment { background: #f5f0f7; border-radius: 8px; padding: 12px; margin-top: 13px; align-items: start; }
.summary-payment strong { font-size: .9rem; }
.receipt { grid-column: 1; grid-row: 1; }
.receipt h3 { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.receipt-details { margin-bottom: 13px; }
.success-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e5eee6; color: #335b3d; font-size: 1.2rem; margin-bottom: 12px; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 26px; color: var(--muted); font-size: .875rem; }
.site-footer .wordmark { color: var(--ink); font-size: 1.7rem; }
.site-footer b { font-weight: 400; padding-inline: 2px; }
.plain-button { border: 0; padding: 0; margin-left: auto; background: none; text-decoration: underline; }
.consent { width: min(430px, calc(100% - 32px)); color: var(--ink); }
.consent::backdrop { background: #241b3370; }
.consent p { color: var(--muted); }
.consent-options { display: flex; justify-content: end; gap: 9px; }
@media (max-width: 930px) {
  .wrap { width: min(100% - 48px, 1180px); }
  .product { gap: 33px; }
  .product-info { padding-bottom: 0; }
  .checkout-grid { gap: 14px; }
  .summary-product { grid-template-columns: 45px 1fr auto; gap: 9px; }
  .summary-photo { width: 45px; height: 53px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 32px); }
  .utility { min-height: 34px; font-size: .75rem; }
  .header-inner { min-height: 61px; }
  .header-end { gap: 10px; font-size: .8rem; }
  .header-end .market { display: none; }
  .header-end .store-language { font-size: .8rem; }
  .nav-order { padding: 7px 9px; }
  .product { grid-template-columns: 1fr; gap: 24px; padding-block: 17px 34px; }
  .hero-photo { border-radius: 12px; }
  h1 { max-width: none; font-size: clamp(2.85rem, 10vw, 4.25rem); }
  html[lang^="zh-"] h1 { max-width: none; font-size: clamp(2.15rem, 9vw, 3.6rem); }
  .thumb { width: 53px; height: 50px; }
  .description { margin-block: 11px; }
  .price { margin-bottom: 15px; }
  .purchasing { padding-top: 13px; }
  .checkout { padding-block: 35px 45px; }
  .checkout-heading { margin-bottom: 16px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { grid-row: 1; }
  .receipt { grid-row: 2; }
  .order-status { margin-top: 10px; }
}
@media (max-width: 360px) {
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .shop-notes { gap: 6px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
