:root {
  color-scheme: light;
  --ink: #241f19;
  --muted: #62594d;
  --line: #e8e2d7;
  --paper: #fffdfa;
  --cream: #efebe2;
  --gold: #e7c46d;
  --gold-ink: #795521;
  --sans: "Aptos", "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #835811; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 96px, 1320px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; padding: 12px; background: white; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 107px; gap: 16px; }
.header-note { color: var(--muted); font-size: .88rem; }
.brand img { width: 176px; height: auto; }
.tools { display: flex; align-items: center; justify-content: end; gap: 24px; }
.text-button { border: 0; padding: 0; background: transparent; }
.tools button { min-height: 42px; font-size: .9rem; font-weight: 650; white-space: nowrap; }
#bag-count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 4px; border-radius: 100%; color: var(--ink); background: var(--gold); }
.navigation { display: flex; justify-content: center; gap: clamp(18px, 4vw, 54px); align-items: center; border-top: 1px solid var(--line); min-height: 60px; font-size: .92rem; font-weight: 650; }
.navigation a { display: grid; align-items: center; min-height: 42px; }
.navigation a:hover, .navigation a[aria-current] { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 5px; }
.hero { overflow: hidden; background: var(--cream); }
.hero-inner { display: grid; grid-template-columns: .96fr 1fr; min-height: clamp(490px, 48vw, 640px); }
.hero-copy { align-self: center; padding: 54px 28px 58px 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, .collection-title h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.06em; }
h1 { font-size: clamp(4rem, 7.3vw, 7.8rem); line-height: .94; }
.hero-copy p { margin: 28px 0 32px; max-width: 32ch; font-size: clamp(1rem, 1.55vw, 1.2rem); color: var(--muted); }
.primary, .outline { display: inline-flex; align-items: center; gap: 26px; min-height: 50px; padding: 11px 22px; border: 1px solid transparent; font-weight: 700; }
.primary { background: var(--gold); color: var(--ink); }
.primary:hover { background: #ddb556; }
.primary:disabled { cursor: default; opacity: .65; }
.outline { background: transparent; border-color: var(--line); }
.hero-photo { position: relative; min-height: 100%; background: #e7e2d8; overflow: hidden; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; }
.collection { padding-block: 79px 96px; scroll-margin-top: 20px; }
.collection-title { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.collection-title h2 { font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1.08; }
#catalog-status { font-size: .88rem; color: var(--muted); text-align: right; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; margin: 30px 0 29px; border-bottom: 1px solid var(--line); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 0 23px; }
.category-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; min-height: 47px; padding: 7px 0; font-weight: 650; font-size: .91rem; }
.category-tabs button[aria-pressed="true"] { color: var(--gold-ink); border-color: var(--gold-ink); }
.search input { width: min(220px, 24vw); min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 13px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 33px 22px; }
.card-image { width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; display: grid; place-items: center; background: #f2eee7; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.card-information { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 9px; padding-top: 11px; }
.card-category { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.card-name, .card-price { font-size: .92rem; line-height: 1.35; font-weight: 650; }
.card-name { text-align: left; }
.card-name:hover { text-decoration: underline; }
.footer { border-top: 1px solid var(--line); background: #f5f1e9; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; min-height: 100px; }
.footer-brand { font: 1.42rem var(--display); color: var(--gold-ink); }
.footer .wrap { padding-block: 18px; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { padding-block: 7px; text-decoration: underline; text-underline-offset: 0.2em; }
.policy { max-width: 70ch; margin-inline: auto; padding-block: 44px 72px; }
.policy h1 { font: clamp(2.25rem, 7vw, 4rem)/1.08 var(--display); margin-block: 0 18px; }
.policy h2 { font: 1.6rem var(--display); margin-block: 28px 8px; }
.policy a { text-decoration: underline; text-underline-offset: 0.2em; }
dialog { max-height: 90dvh; max-width: min(660px, calc(100% - 28px)); width: 100%; padding: 24px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(32 26 18 / 57%); }
.dialog-bar { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 15px; }
.dialog-bar h2 { font: 400 clamp(1.7rem, 5vw, 2.5rem)/1.1 var(--display); }
.dialog-bar button { background: transparent; border: 0; min-width: 42px; min-height: 42px; font-size: 1.6rem; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--cream); }
.card-image img.styling-photo, .detail-gallery img.styling-photo { object-fit: cover; }
.detail-gallery:has(> :only-child) { grid-template-columns: 1fr; }
.detail-gallery > img:only-child { max-height: 49dvh; }
.detail-copy { margin: 13px 0; }
.detail-copy p + p { margin-top: 5px; }
.styling-note { color: var(--muted); font-size: .83rem; }
.bag-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.bag-actions button { min-width: 39px; min-height: 39px; padding: 0; background: transparent; border: 1px solid var(--line); }
.bag-message { margin-top: 16px; color: var(--muted); }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { grid-template-columns: 1fr auto; min-height: 78px; }
  .header-note { display: none; }
  .brand img { width: 125px; }
  .tools { gap: 13px; }
  .navigation { justify-content: space-between; gap: 10px; overflow-x: auto; font-size: .78rem; white-space: nowrap; min-height: 48px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px 0 32px; }
  h1 { font-size: clamp(3.4rem, 13vw, 5rem); }
  .hero-copy p { margin: 17px 0 20px; }
  .hero-photo { min-height: 0; height: min(420px, 91vw); }
  .collection { padding-block: 46px 60px; }
  .filters { align-items: stretch; flex-direction: column; padding-bottom: 12px; margin-top: 16px; }
  .category-tabs { gap: 0 14px; }
  .category-tabs button { min-height: 42px; font-size: .8rem; }
  .search input { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 13px; }
  .card-name, .card-price { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.checkout-form { margin-top: 18px; display: grid; gap: 6px; }
.checkout-form h3 { margin: 6px 0 0; font: 400 1.35rem var(--display); }
.checkout-form label { font-size: .9rem; font-weight: 650; }
.checkout-form input:not([type="radio"]), .checkout-form select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid #8a8174; background: #fff; color: var(--ink); }
.checkout-form input:focus-visible, .checkout-form select:focus-visible, .checkout-form button:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 8px; }
.form-row > div { display: grid; gap: 6px; min-width: 0; }
.checkout-form fieldset { border: 1px solid var(--line); margin: 8px 0 0; padding: 8px 12px; }
.checkout-form legend { font-size: .9rem; font-weight: 650; padding: 0 4px; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400 !important; }
.choice input { width: 20px; height: 20px; accent-color: var(--gold-ink); }
.form-note { margin: 2px 0; color: var(--muted); font-size: .86rem; }
.form-note a { color: var(--gold-ink); }
.form-error { margin: 0; color: #9b1c1c; font-weight: 650; }
.form-error:empty, .form-note:empty { display: none; }
.quote-result:empty { display: none; }
.quote-result { border-top: 1px solid var(--line); padding-top: 8px; }
.quote-result p { margin: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
.checkout-form .button { min-height: 46px; width: 100%; margin-top: 6px; }
.checkout-form .button:disabled { opacity: 1; background: var(--cream); color: var(--muted); cursor: not-allowed; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row > div:first-child { grid-column: 1 / -1; } dialog { padding: 18px; } }
.checkout-form .outline { border-color: #8a8174; justify-content: center; }
.checkout-form .primary { justify-content: center; }

.add-toast { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; max-width: 460px; margin: 0 auto; padding: 10px 6px 10px 16px; background: var(--paper); border: 1px solid var(--gold-ink); box-shadow: 0 6px 24px rgba(36, 31, 25, .2); }
.add-toast p { grid-column: 1 / 2; margin: 0; font-weight: 700; }
.add-toast-close { grid-column: 2; grid-row: 1; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; }
.add-toast-go { grid-column: 1 / 3; min-height: 44px; padding: 8px 18px; border: 1px solid transparent; background: var(--gold); color: var(--ink); font-weight: 700; }
.add-toast-go:hover { background: #ddb556; }
.add-toast button:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; }

.sale-banner { background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.35; padding: 8px 12px; }
.sale-banner[hidden] { display: none; }
.card-price s, .detail-copy s { color: var(--muted); font-weight: 400; }
.sale-now { color: #8a1c1c; font-weight: 700; }
.sale-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
