:root {
  --ink: #17120f;
  --muted: #6d625b;
  --paper: #fbfaf8;
  --white: #ffffff;
  --line: #ddd7d1;
  --gold: #a9772d;
  --gold-dark: #76501a;
  --rose: #ead8d1;
  --blue: #dce8ed;
  --shadow: 0 24px 64px rgba(35, 24, 17, 0.14);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
body.drawer-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link { position: fixed; top: .5rem; left: .5rem; transform: translateY(-180%); z-index: 100; background: var(--ink); color: white; padding: .65rem 1rem; border-radius: .5rem; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 5rem;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(23, 18, 15, .1);
  background: rgba(251, 250, 248, .92);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; font-weight: 750; letter-spacing: .18em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: 0; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 600; }
.site-header nav a:hover { color: var(--ink); }
.bag-button { justify-self: end; border: 0; background: none; color: var(--ink); cursor: pointer; font-weight: 700; }
.bag-button span { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; margin-left: .4rem; border-radius: 50%; background: var(--ink); color: white; font-size: .8rem; }

.hero { min-height: calc(100vh - 5rem); display: grid; grid-template-columns: 1.04fr .96fr; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 8vw 7vw; }
.eyebrow { margin: 0 0 .7rem; color: var(--gold-dark); font-size: .77rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.05; }
h1 { max-width: 11ch; font-size: clamp(3.4rem, 7vw, 7.2rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.8rem); letter-spacing: -.04em; }
h3 { font-size: 1.35rem; }
.hero-intro { max-width: 37rem; margin: 2rem 0; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .75rem 1.3rem; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none; font-size: .92rem; font-weight: 750; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: white; }
.full-width { width: 100%; }
.hero-facts { display: flex; gap: clamp(1.5rem, 4vw, 4rem); margin: 4rem 0 0; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dt { font-family: Georgia, serif; font-size: 1.45rem; }
.hero-facts dd { margin: 0; color: var(--muted); font-size: .82rem; }
.hero-visual { position: relative; min-height: 42rem; overflow: hidden; background: var(--rose); }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.hero-visual:hover > img { transform: scale(1.025); }
.hero-note { position: absolute; right: 1.5rem; bottom: 1.5rem; margin: 0; padding: .85rem 1rem; border-radius: .9rem; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); font-size: .9rem; }
.hero-note span { display: block; color: var(--gold-dark); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.catalog-section { padding: 8rem 4vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.section-heading h2 { max-width: 12ch; }
.result-count { color: var(--muted); }
.catalog-tools { display: grid; grid-template-columns: minmax(14rem, 1fr) auto auto; align-items: center; gap: 1rem; margin-bottom: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.search-field { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.search-field svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter { min-height: 2.5rem; padding: .45rem .85rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: .86rem; font-weight: 700; }
.filter:hover, .filter.active { border-color: var(--ink); background: var(--ink); color: white; }
.sort-field { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.sort-field select { min-height: 2.5rem; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.15rem; }
.product-card { min-width: 0; }
.product-image-button { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.12; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: #eee; cursor: zoom-in; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.product-image-button:hover img { transform: scale(1.045); }
.quick-view { position: absolute; right: .75rem; bottom: .75rem; padding: .6rem .8rem; border-radius: 999px; background: rgba(255,255,255,.9); opacity: 0; transform: translateY(.4rem); font-size: .75rem; font-weight: 800; transition: .25s ease; }
.product-image-button:hover .quick-view, .product-image-button:focus-visible .quick-view { opacity: 1; transform: none; }
.product-info { display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; padding: .9rem .2rem 0; }
.product-category { grid-column: 1 / -1; margin: 0; color: var(--gold-dark); font-size: .69rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.product-name { margin: 0; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.28; }
.product-price { margin: 0; font-weight: 800; white-space: nowrap; }
.product-add { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; border-bottom: 1px solid var(--ink); background: none; cursor: pointer; font-size: .83rem; font-weight: 750; }
.empty-state { padding: 5rem 1rem; text-align: center; }
.empty-state p { color: var(--muted); }

.story { display: grid; grid-template-columns: 1fr 1fr; background: #1b1816; color: white; }
.story-image { min-height: 42rem; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: 8vw; }
.story-copy .eyebrow { color: #d7af6b; }
.story-copy > p:not(.eyebrow) { max-width: 40rem; margin: 2rem 0; color: #c7c0bb; }
.story-copy ul { display: grid; gap: 1rem; padding: 0; list-style: none; }
.story-copy li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid #423c38; }
.story-copy li span { color: #c7c0bb; }

.contact { display: grid; grid-template-columns: 1fr .8fr; gap: 8vw; align-items: center; padding: 8rem 7vw; background: var(--blue); }
.contact h2 { max-width: 13ch; }
.contact > div:first-child > p:last-child { max-width: 38rem; color: #4d5960; }
.contact-card { padding: 2rem; border: 1px solid rgba(23,18,15,.15); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.contact-company { font-family: Georgia, serif; font-size: 1.35rem; }
.contact-card address { display: grid; gap: .5rem; margin: 1.25rem 0 1.75rem; font-style: normal; color: #4d5960; }
.contact-card address a { overflow-wrap: anywhere; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding: 2.5rem 4vw; background: var(--ink); color: white; }
footer p { margin: 0; color: #bdb5b0; font-size: .83rem; }
.footer-brand .brand-mark { border-color: white; }

.product-dialog { width: min(68rem, calc(100% - 2rem)); padding: 0; overflow: visible; border: 0; border-radius: 1.3rem; box-shadow: var(--shadow); }
.product-dialog::backdrop { background: rgba(16,12,10,.68); backdrop-filter: blur(5px); }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 1.3rem; background: white; }
.dialog-layout > img { width: 100%; height: 100%; min-height: 34rem; object-fit: cover; background: #eee; }
.dialog-copy { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }
.dialog-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.dialog-price { margin: 1rem 0; font-size: 1.2rem; font-weight: 800; }
.dialog-copy > p:not(.eyebrow,.dialog-price) { color: var(--muted); }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.detail-list div { display: grid; gap: .05rem; }
.detail-list span { color: var(--muted); font-size: .75rem; }
.detail-list strong { font-size: .88rem; }
.quantity-field { display: grid; grid-template-columns: 1fr 5rem; align-items: center; gap: 1rem; margin: 1.5rem 0; font-weight: 700; }
.quantity-field input { width: 100%; min-height: 2.7rem; border: 1px solid var(--line); border-radius: .55rem; text-align: center; }
.icon-button { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 1.65rem; line-height: 1; }
.close-dialog { position: absolute; top: .8rem; right: .8rem; z-index: 2; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(16,12,10,.45); backdrop-filter: blur(3px); }
.bag-drawer { position: fixed; top: 0; right: 0; z-index: 50; display: flex; flex-direction: column; width: min(31rem, 100%); height: 100dvh; padding: 1.5rem; background: var(--paper); box-shadow: -20px 0 60px rgba(18,12,9,.25); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.bag-drawer.open { transform: none; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: 2.4rem; }
.bag-items { display: grid; gap: 1rem; overflow-y: auto; padding: 1.2rem 0; }
.bag-item { display: grid; grid-template-columns: 5rem 1fr auto; gap: .8rem; align-items: center; }
.bag-item img { width: 5rem; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; }
.bag-item h3 { font-family: inherit; font-size: .92rem; font-weight: 750; line-height: 1.3; }
.bag-item p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.bag-item button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.bag-empty { margin: auto; text-align: center; }
.bag-summary { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.bag-summary > div { display: flex; justify-content: space-between; font-size: 1.05rem; }
.bag-summary > p { color: var(--muted); font-size: .8rem; }
.text-button { display: block; margin: 1rem auto 0; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 70; padding: .75rem 1rem; border-radius: 999px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 1rem); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid #ce8e22; outline-offset: 3px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 45rem; }
  .hero-visual { min-height: 75vw; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: 1fr auto; }
  .filter-row { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  .site-header { min-height: 4.4rem; padding-inline: 1rem; }
  .brand { font-size: .9rem; }
  .bag-button { font-size: .82rem; }
  .hero-copy { min-height: 39rem; padding: 5rem 1.25rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-facts { gap: 1.2rem; }
  .hero-facts dd { max-width: 7rem; }
  .catalog-section { padding: 5rem 1rem; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 2.8rem; }
  .catalog-tools { grid-template-columns: 1fr; }
  .filter-row { grid-column: 1; grid-row: auto; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; }
  .sort-field { justify-self: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem .65rem; }
  .product-image-button { border-radius: .9rem; }
  .quick-view { display: none; }
  .product-name { font-size: .94rem; }
  .product-price { font-size: .9rem; }
  .story { grid-template-columns: 1fr; }
  .story-image { min-height: 100vw; }
  .story-copy { padding: 5rem 1.25rem; }
  .story-copy li { grid-template-columns: 1fr; gap: .2rem; }
  .contact { grid-template-columns: 1fr; padding: 5rem 1rem; }
  footer { grid-template-columns: 1fr; text-align: left; }
  .dialog-layout { grid-template-columns: 1fr; max-height: 88dvh; overflow-y: auto; }
  .dialog-layout > img { min-height: 20rem; max-height: 42vh; }
  .dialog-copy { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
