@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/thai-400.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/thai-500.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/thai-600.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/thai-700.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  color-scheme: light;
  --ink: #29271f;
  --muted: #676253;
  --paper: #f8f5eb;
  --line: #dcd5c5;
  --green: #302c23;
  --pale: #ece5d6;
  --font: 'Noto Sans Thai', system-ui, sans-serif;
  font: 400 1rem/1.65 var(--font);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, p, h1, h2, h3, dl, dd, ul { margin: 0; }
body { min-width: 280px; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img { display: block; width: 100%; }
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: #873623; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a5412c; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.3; }
h2 { font-size: 1.28rem; }
.wrap { width: min(1296px, 100% - clamp(32px, 8vw, 128px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; padding: .6rem 1rem; background: white; transform: translateY(-140%); }
.skip:focus { transform: translateY(0); }
.header { border-bottom: 1px solid var(--line); }
.nav, .nav nav, .bag, .brand, .footer-inner { display: flex; align-items: center; }
.nav, .footer-inner { justify-content: space-between; gap: 12px; }
.nav { min-height: 76px; }
.nav nav { gap: clamp(14px, 4vw, 46px); }
.nav a, .footer a, .product-card, .button { text-decoration: none; }
.brand { gap: 10px; font-weight: 700; font-size: clamp(.87rem, 2.8vw, 1.14rem); white-space: nowrap; }
.brand-mark { width: 22px; aspect-ratio: 1.06; background: var(--green); border-radius: 55% 55% 20% 20%; position: relative; }
.brand-mark::after { content: ''; position: absolute; width: 7px; height: 9px; background: var(--paper); border-radius: 100% 100% 0 0; bottom: 0; left: 7px; }
.bag { gap: 7px; }
.bag #cart-count { min-width: 26px; padding: 1px 5px; text-align: center; border-radius: 20px; background: var(--pale); font-size: .78rem; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; min-height: 48px; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: 5px; background: var(--green); color: white; font-weight: 600; }
.button:hover { color: white; background: #594033; }
.full { width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

.breadcrumbs { margin-block: 22px; font-size: .87rem; color: var(--muted); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(26px, 5vw, 78px); margin-bottom: clamp(36px, 7vw, 100px); align-items: start; }
.stage { position: relative; aspect-ratio: 1120 / 940; border-radius: 8px; background: var(--pale); overflow: hidden; }
.stage > img { height: 100%; object-fit: cover; }
.views { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.view { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: transparent; min-width: 0; font-size: clamp(.66rem, 1.8vw, .85rem); }
.view img { aspect-ratio: 1.5; object-fit: cover; border-radius: 2px; }
.view > span:last-child { padding: 3px 0; }
.view:hover, .view[aria-pressed="true"] { background: var(--pale); border-color: var(--green); }
.model-tab { background: var(--pale); }
.model-icon { display: grid; place-items: center; flex: 1; font-size: clamp(1.2rem, 3vw, 2rem); }
#viewer { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: radial-gradient(ellipse at 48% 49%, #faf3e5, #d9c9af); }
.model-canvas { min-width: 0; min-height: 0; }
.model-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.model-canvas canvas:focus-visible { outline-offset: -4px; }
.model-canvas canvas:active { cursor: grabbing; }
.model-bar { padding: 7px 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 10px; font-size: .76rem; background: #f8f5eb; }
.model-actions { display: flex; gap: 5px; }
.model-actions button { min-height: 44px; min-width: 44px; padding-inline: 8px; background: var(--paper); border: 1px solid #baaf9d; border-radius: 4px; }
.viewer-message { margin: auto; text-align: center; padding: 1rem; }
.product-info { min-width: 0; }
.product-name { font-size: clamp(3rem, 6.1vw, 6rem); font-weight: 600; letter-spacing: -.064em; line-height: 1.06; margin: 8px 0 12px; }
.description { max-width: 42ch; color: var(--muted); margin-bottom: 24px; }
.product-info h2 { font-size: 1rem; margin-bottom: 7px; }
.dimensions { margin-bottom: 19px; border-top: 1px solid var(--line); }
.dimensions div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.dimensions dd { text-align: right; }
.dimensions small { display: block; color: var(--muted); font-size: .74rem; }
.swatches { list-style: none; padding: 0; display: flex; gap: 7px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.swatches li { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.swatches li span { width: 18px; height: 18px; border-radius: 50%; background: var(--swatch); border: 1px solid #29271f40; }
.add-form { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.add-form label { font-weight: 600; }
.add-form label span { font-weight: 400; }
input { background: #fff; border: 1px solid #b8ac98; border-radius: 5px; }
#engraving { margin-top: 5px; width: 100%; padding: .6rem .8rem; }
#engraving-hint { display: flex; justify-content: space-between; margin: 5px 0 12px; }
.feedback:not(:empty) { margin-top: 8px; color: var(--green); }
#go-cart { display: inline-block; margin-top: 4px; font-weight: 600; }

.order-page { padding-block: clamp(30px, 5vw, 65px); }
.order-page h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin: 12px 0 26px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .47fr); align-items: start; gap: 28px; }
.order-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.order-item { display: grid; grid-template-columns: minmax(85px, 150px) minmax(0, 1fr); gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.order-item img { border-radius: 5px; }
.order-item h2 a { text-decoration: none; }
.order-item p { font-size: .9rem; overflow-wrap: anywhere; }
.item-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.item-controls input { width: 62px; min-height: 44px; padding-inline: 6px; }
.text-button { min-height: 44px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 10px; }
.order-summary, .empty { background: var(--pale); border-radius: 6px; padding: clamp(16px, 3vw, 30px); }
.order-summary p:not(.small) { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #d5cbba; padding-block: 10px; }
.order-summary .button, .order-summary .small, .empty .button { margin-top: 14px; }
#cart-status:not(:empty) { margin-top: 8px; font-size: .88rem; }
/* The catalogue uses the type and paper palette of the product's cast nameplate. */
:root { --red: #92392d; --gutter: clamp(22px, 4.7vw, 88px); --serif: Georgia, 'Times New Roman', serif; }
.wrap { width: min(1440px, calc(100% - 2 * var(--gutter))); }
figure { margin: 0; }
.header { background: var(--paper); position: relative; z-index: 4; }
.nav { min-height: clamp(66px, 5.8vw, 86px); }
.brand { width: fit-content; gap: 7px; }
.logo-icon { width: 38px; line-height: 0; color: var(--red); }
.logo-type { font: 700 1.85rem/1 Georgia, serif; letter-spacing: -.095em; }
.nav nav { gap: clamp(18px, 2.6vw, 48px); font-size: .88rem; font-weight: 500; }
.nav nav > a { min-height: 44px; display: inline-flex; align-items: center; }
.nav .bag { gap: 7px; border-left: 1px solid var(--line); padding-left: clamp(15px, 2vw, 34px); }
.bag #cart-count { background: var(--ink); color: var(--paper); min-width: 22px; line-height: 22px; padding: 0 4px; }
.button { border-radius: 100px; padding: .75rem 1.3rem; font-size: .92rem; }
.button svg { flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: .7em; font-size: .9rem; font-weight: 500; text-decoration-thickness: 1px; }
.text-link span { font-family: Arial, sans-serif; font-size: 1.2em; }
.cover { display: grid; grid-template-columns: 38% 62%; min-height: min(49vw, 760px); background: #ece6d7; }
.cover-copy { align-self: center; padding: 55px clamp(18px, 2.8vw, 56px) 55px max(var(--gutter), calc((100vw - 1440px)/2)); }
.collection-note { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: #554c3c; font-weight: 500; }
.collection-note i { width: 15px; height: 2px; display: inline-block; background: var(--red); }
.cover h1 { font: 400 clamp(76px, 7.7vw, 142px)/1.02 var(--serif); letter-spacing: -.078em; white-space: nowrap; margin: clamp(20px, 2.2vw, 36px) 0 22px; }
.cover h1 em { font-weight: 400; color: var(--red); }
.cover h2 { font-size: clamp(22px, 1.95vw, 34px); font-weight: 600; letter-spacing: -.04em; }
.cover-desc, .story-copy > p:not(.collection-note) { color: #605846; line-height: 1.83; max-width: 34ch; margin-top: 12px; font-size: clamp(.92rem, 1.02vw, 1.09rem); }
.cover-actions { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; }
.cover-photo { min-width: 0; position: relative; }
.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 54%; }
.spec-strip { border-bottom: 1px solid var(--line); padding-block: 13px; }
.spec-strip .wrap { display: flex; align-items: center; gap: 14px; font-size: .82rem; }
.spec-strip .wrap > :first-child { font-weight: 600; }
.strip-dot { width: 3px; height: 3px; background: #6e6555; border-radius: 50%; }
.spec-strip a { font-weight: 500; margin-left: auto; text-decoration: none; }
.spec-strip a span { padding-left: 5px; }
.dimension-story, .engrave-story { padding-block: clamp(44px, 6.9vw, 112px); display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(28px, 6vw, 108px); align-items: center; }
.story-copy h2, .gallery-title h2 { font-size: clamp(32px, 3.8vw, 71px); font-weight: 500; letter-spacing: -.05em; line-height: 1.25; margin-top: 16px; }
.story-copy { max-width: 490px; }
.measure-list { margin-top: 22px; border-block: 1px solid var(--line); }
.measure-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 11px 0; }
.measure-list > div + div { border-top: 1px solid var(--line); }
.measure-list dt { color: var(--muted); font-size: .81rem; }
.measure-list dd { font-weight: 600; font-size: .98rem; white-space: nowrap; }
.measure-photo { position: relative; }
.measure-photo img { aspect-ratio: 1120/940; }
.dim-horizontal, .dim-vertical { position: absolute; display: grid; place-items: center; color: #fff7e5; pointer-events: none; }
.dim-horizontal { width: 69.77%; left: 15.12%; height: 1.5px; background: currentColor; top: 7%; }
.dim-vertical { height: 69.28%; top: 12.65%; width: 1.5px; background: currentColor; left: 8.1%; }
.dim-horizontal b, .dim-vertical b { position: absolute; font-size: clamp(10px, 1.2vw, 18px); font-weight: 600; white-space: nowrap; border-radius: 99px; padding: .1em .85em; background: #f1c75c; color: #322c22; }
.dim-vertical b { transform: rotate(-90deg); }
.dim-vertical::before, .dim-vertical::after, .dim-horizontal::before, .dim-horizontal::after { content: ''; position: absolute; background: currentColor; }
.dim-vertical::before, .dim-vertical::after { width: 10px; height: 1.5px; }
.dim-horizontal::before, .dim-horizontal::after { height: 10px; width: 1.5px; }
.dim-vertical::before { top: 0; }.dim-vertical::after { bottom: 0; }
.dim-horizontal::before { left: 0; }.dim-horizontal::after { right: 0; }
.lookbook { border-block: 1px solid #dbd1bd; background: #eee8db; padding-block: clamp(38px, 5.8vw, 90px); }
.gallery-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: clamp(22px, 2.8vw, 45px); }
.gallery-title h2 { margin-top: 7px; }
.angle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 35px); }
.angle-grid a { text-decoration: none; }
.angle-grid a > span { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #c8bdab; padding: 12px 0; font-weight: 500; }
.angle-frame { overflow: hidden; }
.angle-frame img { aspect-ratio: 1.23; object-fit: cover; transition: transform .28s; }
@media(hover:hover) { .angle-grid a:hover img { transform: scale(1.035); } }
.engrave-story { grid-template-columns: 1.24fr .76fr; }
.engrave-photo { position: relative; overflow: hidden; aspect-ratio: 1.4; background: #d7c4a4; }
.engrave-photo img { position: absolute; width: 190%; left: -45%; top: 50%; transform: translateY(-44%); }
.story-copy .button { margin-top: 22px; }
.footer { background: #2d2b23; color: #f8efde; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(30px, 7.8vw, 140px); padding-block: clamp(40px, 6vw, 90px); }
.footer-brand .logo-icon { color: #e2b98c; width: clamp(36px, 4vw, 70px); }
.footer-brand .logo-type { font-size: clamp(2.6rem, 5vw, 6.2rem); }
.footer-top p { color: #d6ccbc; font-size: .88rem; margin-top: 12px; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer nav h2 { font-size: .85rem; color: #bdb29f; font-weight: 400; margin-bottom: 4px; }
.footer nav a { font-size: .91rem; }
.footer a:hover { color: #d8af80; }
.footer-bottom { border-top: 1px solid #575246; display: flex; align-items: center; justify-content: space-between; min-height: 61px; gap: 16px; font-size: .76rem; color: #d1c8b7; }
.product-name { font: 400 clamp(54px, 6vw, 98px)/1.08 var(--serif); letter-spacing: -.07em; }
.stage, .order-summary, .empty { border-radius: 2px; }
.view[aria-pressed=true] { outline: 1px solid var(--ink); outline-offset: 1px; }
#name-preview { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; padding: 3px 18px; margin: 8px 0; background: #dbc59f; color: #4a3927; border: 1px solid #b79967; border-radius: 50px; }
#engraving { scroll-margin-top: 18px; }
@media(max-width: 860px) {
  .cover { grid-template-columns: 43% 57%; }
  .cover h1 { font-size: clamp(62px, 8.8vw, 76px); }
  .cover-actions { gap: 12px; }
  .dimension-story, .engrave-story { gap: 28px; }
}
@media(max-width: 700px) {
  :root { --gutter: clamp(18px, 5.2vw, 34px); }
  .nav { min-height: 63px; }
  .nav nav { gap: 12px; font-size: .8rem; }
  .nav .size-nav { display: none; }
  .nav .bag { padding-left: 12px; }
  .brand { gap: 5px; }
  .logo-icon { width: 30px; }.logo-type { font-size: 1.55rem; }
  .cover { display: flex; flex-direction: column; }
  .cover-photo { order: -1; }
  .cover-photo img { position: static; aspect-ratio: 1.42; height: auto; max-height: 465px; object-position: 55% 55%; }
  .cover-copy { align-self: stretch; padding: 24px var(--gutter) 31px; }
  .cover h1 { font-size: clamp(64px, 14vw, 86px); margin: 7px 0 8px; }
  .cover h2 { font-size: 22px; }
  .cover-desc, .story-copy > p:not(.collection-note) { max-width: 42ch; line-height: 1.7; margin-top: 6px; }
  .cover-actions { margin-top: 19px; gap: 18px; }
  .spec-strip .wrap { gap: 9px; font-size: .76rem; }
  .dimension-story, .engrave-story, .product-layout, .order-layout { grid-template-columns: minmax(0, 1fr); }
  .dimension-story, .engrave-story { gap: 22px; }
  .dimension-story .story-copy, .engrave-story .story-copy { max-width: none; }
  .story-copy h2 br { display: none; }
  .story-copy h2 { margin: 7px 0; }
  .measure-list { margin-top: 15px; }
  .gallery-title { align-items: start; flex-direction: column; gap: 9px; }
  .angle-grid { gap: 8px; }
  .angle-frame img { aspect-ratio: .95; }
  .angle-grid a > span { font-size: .8rem; padding: 7px 0; }
  .angle-grid a > span svg { width: 16px; }
  .engrave-photo { order: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top > div { grid-column: 1/-1; }
  .product-layout { gap: 23px; }
  .order-layout { gap: 16px; }
}
@media(max-width: 365px) {
  .nav .bag > span:nth-child(2) { display: none; }
  .nav { gap: 6px; }.nav nav { gap: 8px; }
  .order-item { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
}
@media(prefers-reduced-motion: reduce) { .angle-frame img { transition: none; } }
