/* Storefront refinement. Keep the studio's paper, plum and serif identity. */
:root { --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif; --soft-ink: #786c68; }
button, select, input, textarea { -webkit-tap-highlight-color: transparent; }
select { font: inherit; }
button:disabled { cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-lookup { display: none; }
.hero { min-height: 620px; padding-top: 68px; padding-bottom: 72px; }
.hero-mark { margin-bottom: 1.5rem; }
.hero-index { margin-top: 3rem; }
.collection { padding-top: 95px; padding-bottom: 100px; }
.section-heading { margin-bottom: 36px; }
.collection-toolbar { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 0; border: 0; }
.filter-list { border-bottom: 1px solid var(--line); }
.filter-list button { min-height: 44px; padding: 0 2px 12px; font-family: var(--ui); font-size: 13px; }
.collection-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.stock-field { margin-left: auto; }
.sort-field { min-width: 0; }
.sort-field select { max-width: 100%; }
.catalog-pagination { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 40px 0 0; text-align: center; }
.catalog-pagination p { margin: 0; color: var(--muted); font: 13px/1.7 var(--ui); }
.catalog-pagination button { min-height: 46px; }
.search-field { display: flex; align-items: center; gap: 12px; width: min(100%, 350px); border: 1px solid var(--line); padding: 0 15px; border-radius: 4px; background: #fffaf4; }
.search-field > span[aria-hidden] { font-size: 25px; line-height: 1; }
.search-field input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 0; border: 0; outline: 0; background: transparent; font-family: var(--ui); font-size: 14px; color: var(--ink); }
.search-field:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.sort-field select { min-height: 46px; border: 1px solid var(--line); padding: 8px 32px 8px 12px; border-radius: 4px; background: var(--paper); color: var(--ink); font: 13px var(--ui); }
.collection-status { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 15px; }
#resultCount { font-family: var(--ui); font-size: 12px; letter-spacing: .05em; display: inline; }
.text-action { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; font: 12px var(--ui); }
.catalog-loading { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 240px; font-size: 13px; color: var(--muted); }
.loading-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: breathing 1.4s ease-in-out infinite; }
@keyframes breathing { 50% { opacity: .25; transform: scale(.7); } }
.catalog-notice { border-left: 2px solid var(--gold); background: #eee6da; padding: 12px 16px; font: 13px/1.8 var(--ui); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.product-grid { gap: 48px 28px; }
.product-photo { width: 100%; padding: 0; border: 0; border-radius: 26px 26px 3px 3px; text-align: left; }
.product-photo img { object-position: center 70%; }
.product-photo:focus-visible { outline-offset: 5px; }
.photo-badge, .photo-count, .photo-open { position: absolute; font: 11px/1.5 var(--ui); letter-spacing: .05em; }
.photo-badge { top: 14px; left: 14px; padding: 7px 10px; border-radius: 20px; background: var(--paper); color: var(--purple); }
.photo-count { right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 20px; background: rgba(248,246,241,.94); color: var(--ink); }
.photo-open { bottom: 18px; left: 18px; color: #fff; background: var(--purple); padding: 7px 12px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.product-photo:hover .photo-open, .product-photo:focus-visible .photo-open { opacity: 1; transform: none; }
.product-category { font: 11px/1.6 var(--ui); color: var(--soft-ink); letter-spacing: .12em; margin: 17px 0 7px; }
.product-meta { display: block; }
.product-card h3 { font-size: 17px; line-height: 1.8; min-height: 3.6em; }
.product-title { font: inherit; color: inherit; padding: 0; border: 0; background: transparent; text-align: left; }
.product-title:hover { color: #946f59; }
.product-price { display: block; font: 500 15px/1.7 var(--ui); margin: 5px 0; letter-spacing: .02em; }
.product-options { color: var(--soft-ink); font: 12px/1.8 var(--ui); min-height: 22px; }
.product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; font: 12px/1.9 var(--ui); min-height: 3.8em; margin: 8px 0 14px; }
.product-stock { margin-top: auto; margin-bottom: 12px; font: 11px/1.8 var(--ui); color: #526a57; }
.product-stock.sold-out { color: var(--muted); }
.product-card-actions { display: flex; align-items: center; gap: 14px; }
.card-detail { padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); min-height: 44px; white-space: nowrap; font: 12px var(--ui); }
.collect-button { flex: 1; font-family: var(--ui); font-size: 12px; padding: 10px 12px; letter-spacing: .02em; gap: 8px; }
.reservation-guide { margin-top: 65px; padding-top: 25px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.reservation-guide > span { color: var(--gold); font: 18px var(--english); }
.reservation-guide b { font: 12px var(--ui); color: var(--muted); margin-left: 8px; }
.reservation-guide p { margin: 0; width: 100%; font: 11px/1.8 var(--ui); color: var(--muted); }
.custom { margin-top: 100px; margin-bottom: 100px; }
.mobile-dock { display: none; }
.modal-panel { border-radius: 12px; padding-top: 0; }
.modal-panel:focus { outline: none; }
.modal-toolbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; margin: 0 calc(-1 * clamp(26px,4vw,44px)) 20px; padding: 8px clamp(26px,4vw,44px); background: var(--paper); border-bottom: 1px solid var(--line); }
.modal-toolbar > span { font: 11px var(--ui); letter-spacing: .12em; color: var(--muted); }
.modal-close { position: static; margin: 0; background: var(--paper); border-radius: 50%; }
.modal-close:disabled { opacity: .4; }
.detail-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; width: min(100%, 980px); padding: 0 36px 36px; }
.detail-panel .modal-toolbar { grid-column: 1/-1; grid-row: 1; margin: 0 -36px -8px; padding: 8px 36px; }
.detail-gallery { min-width: 0; }
.detail-gallery { grid-column: 1; grid-row: 2; }
.detail-photo { aspect-ratio: 3/4; background: #eee9e3; overflow: hidden; border-radius: 8px; }
.detail-photo img { width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.gallery-controls button { border: 1px solid var(--line); background: transparent; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.gallery-controls button:disabled { opacity: .25; }
.gallery-controls span { font: 12px var(--ui); color: var(--muted); }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; padding: 3px; }
.gallery-thumbs button { width: 58px; height: 72px; flex: 0 0 58px; padding: 3px; background: transparent; border: 1px solid transparent; border-radius: 4px; }
.gallery-thumbs button[aria-pressed=true] { border-color: var(--purple); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; border-radius: 2px; }
.detail-copy { padding-top: 20px; min-width: 0; grid-column: 2; grid-row: 2; }
.detail-copy h2 { font-size: 28px; line-height: 1.7; }
.detail-copy .eyebrow { font: 12px var(--ui); letter-spacing: .15em; margin-bottom: 14px; }
.detail-price { font: 500 21px var(--ui); margin: 14px 0; }
.detail-stock { font: 12px/1.8 var(--ui); color: #526a57; }
.detail-description { font: 14px/2 var(--ui); color: var(--muted); white-space: pre-line; margin: 25px 0; }
.detail-options { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 18px; font: 13px/1.8 var(--ui); }
.detail-options:empty { display: none; }
.detail-options > div { display: flex; gap: 20px; margin: 5px 0; }
.detail-options dt { flex: 0 0 40px; color: var(--soft-ink); }
.detail-options dd { margin: 0; }
.detail-note { font: 11px/1.9 var(--ui); color: var(--soft-ink); margin: 20px 0; }
#detailReserve { width: 100%; }
#detailReserve:disabled { background: #d7cec4; color: var(--muted); box-shadow: none; transform: none; }
.detail-contact { margin-top: 20px; font: 12px var(--ui); }
.purchase-summary { display: flex; align-items: center; gap: 16px; padding: 16px; background: #efe9e0; border-radius: 6px; margin: 0 0 25px; }
.purchase-thumbnail { width: 66px; height: 80px; flex: 0 0 66px; border-radius: 4px; overflow: hidden; background: #e7ded2; }
.purchase-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.purchase-summary p { margin: 0 0 5px; font-size: 14px; }
.purchase-summary span { font: 12px var(--ui); color: var(--muted); }
.purchase-thumbnail .no-image { font-size: 18px; }
.modal-panel form label:not(.radio), .modal-panel legend { font-family: var(--ui); font-size: 13px; }
.modal-panel input:not([type=radio]):not([type=hidden]), .modal-panel textarea, .modal-panel select { font: 16px/1.6 var(--ui); border: 1px solid var(--line); background: #fffaf4; border-radius: 4px; padding: 12px; min-height: 48px; margin-top: 7px; }
.modal-panel input:focus, .modal-panel select:focus, .modal-panel textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.modal-panel input[readonly] { background: #efe9e0; }
.modal-panel input:disabled, .modal-panel textarea:disabled, .modal-panel select:disabled { opacity: .65; }
.modal-panel small { font-family: var(--ui); display: block; margin-top: 5px; }
.radio { font-family: var(--ui); }
.order-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; font: 13px var(--ui); margin-bottom: 16px; }
.order-total strong { font-size: 20px; font-weight: 500; }
.order-total small { width: 100%; font: 11px/1.8 var(--ui); }
.privacy-note, .form-message { font-family: var(--ui); }
.submission-result { text-align: center; padding: 10px 0; }
.submission-result:focus { outline: none; }
.result-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; background: #e0e9df; color: #38604a; font: 24px var(--ui); }
.submission-result[data-state=uncertain] .result-symbol { background: #efe1cb; color: #856335; }
.submission-result h3 { font-size: 17px; font-weight: 500; }
.submission-result .form-message { overflow-wrap: anywhere; margin-bottom: 20px; }
.submission-result .button, .submission-result .secondary-action, .submission-result .text-action { width: 100%; justify-content: center; margin-top: 10px; }
.secondary-action { border: 1px solid var(--line); min-height: 48px; background: transparent; color: var(--ink); font: 13px var(--ui); padding: 12px; }
.lookup-result h3 { margin: 8px 0; font-size: 16px; font-weight: 500; }
.lookup-result p, .lookup-result dl { font: 12px/1.9 var(--ui); }
.lookup-result dl > div { display: flex; gap: 14px; }
.lookup-result dt { flex: 0 0 54px; color: var(--muted); }
.lookup-result dd { margin: 0; overflow-wrap: anywhere; }
.record-status { display: inline-flex; border: 1px solid var(--line); border-radius: 20px; padding: 4px 9px; font: 11px var(--ui); }
.lookup-empty { text-align: center; padding: 25px 10px; }
.lookup-empty > span { font-size: 34px; color: var(--gold); }
.lookup-empty p { margin-bottom: 7px; }
.lookup-empty small { line-height: 1.8; }
@media (max-width: 900px) {
  .nav-lookup { display: flex; min-height: 48px; align-items: center; padding: 0; border: 0; background: none; color: var(--ink); font: 12px var(--serif); text-align: left; }
  .hero { min-height: auto; padding: 55px 30px 65px; }
  .detail-panel { gap: 25px; padding: 0 30px 30px; }
  .detail-panel .modal-toolbar { margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; }
  .product-grid { gap: 40px 22px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 90px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .announcement { min-height: 32px; }
  .hero { padding: 40px 24px 56px; gap: 32px; }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(30px, 8vw, 43px); line-height: 1.65; }
  .hero-description { line-height: 2; }
  .hero-actions { gap: 18px; }
  .hero-index { margin-top: 25px; font-size: 8px; }
  .hero-visual { width: min(82%, 350px); }
  .hero-photo { aspect-ratio: 1/1; }
  .hero-photo img { object-position: center 60%; }
  .values { grid-template-columns: 1fr; }
  .collection { padding-top: 64px; padding-bottom: 65px; }
  .section-heading h2 { font-size: 26px; }
  .filter-list { gap: 22px; padding-top: 4px; }
  .filter-list button { font-size: 12px; }
  .collection-controls { gap: 10px; flex-wrap: wrap; margin-top: 20px; }
  .search-field { width: 100%; }
  .search-field input, .sort-field select { font-size: 16px; }
  .sort-field { flex: 1 1 140px; margin-left: 0; }
  .sort-field select { width: 100%; }
  .sort-field select { min-height: 44px; padding: 8px 26px 8px 10px; }
  .collection-status { min-height: 56px; }
  #resultCount { font-size: 11px; }
  .product-grid { gap: 34px 14px; }
  .product-photo { border-radius: 17px 17px 2px 2px; }
  .photo-badge { top: 9px; left: 8px; font-size: 10px; padding: 5px 8px; }
  .photo-count { right: 6px; bottom: 6px; font-size: 9px; padding: 4px 7px; }
  .photo-open { display: none; }
  .product-category { font-size: 10px; margin-top: 13px; }
  .product-card h3 { font-size: 14px; }
  .product-price { font-size: 14px; margin-top: 4px; }
  .product-options { font-size: 11px; }
  .product-description { font-size: 11px; }
  .product-stock { font-size: 10px; line-height: 1.7; min-height: 3.4em; }
  .product-card-actions { flex-direction: column; gap: 0; align-items: stretch; }
  .card-detail { align-self: start; border: 0; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
  .collect-button { min-height: 46px; font-size: 11px; padding: 9px 10px; }
  .reservation-guide { margin-top: 40px; gap: 15px; flex-direction: column; }
  .craft { padding-top: 65px; padding-bottom: 65px; }
  .custom { margin-top: 65px; margin-bottom: 65px; }
  .faq { padding-bottom: 65px; }
  .mobile-dock { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; padding: 5px 14px max(5px, env(safe-area-inset-bottom)); background: rgba(248,246,241,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-dock a, .mobile-dock button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 55px; background: none; border: 0; color: var(--ink); font: 10px/1.7 var(--ui); letter-spacing: .03em; }
  .mobile-dock span { font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
  .modal { padding: 12px; }
  .modal-panel { width: 100%; max-height: calc(100dvh - 24px); padding: 0 22px max(26px, env(safe-area-inset-bottom)); border-radius: 10px; }
  .modal-toolbar, .detail-panel .modal-toolbar { margin: 0 -22px 20px; padding: 6px 22px; }
  .detail-panel { display: block; padding: 0 22px 22px; }
  .detail-photo { max-height: 45dvh; aspect-ratio: 3/4; }
  .detail-copy { padding-top: 25px; }
  .detail-copy h2 { font-size: 24px; }
  .detail-description { font-size: 14px; }
  .gallery-thumbs { margin-top: 10px; }
  .gallery-thumbs button { width: 50px; flex-basis: 50px; height: 62px; }
  .modal-panel h2 { font-size: 25px; padding-right: 22px; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-wrap { padding-left: 18px; padding-right: 18px; }
  .product-card h3 { font-size: 13px; }
  .collect-button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .loading-dot { animation: none; } }
