/* ═══════════════════════════════════════════
   LOOM & CLAY — Homeware store
   Palette: plaster · bottle green · brass · espresso
   Type: Newsreader / Hanken Grotesk / DM Mono
   ═══════════════════════════════════════════ */

:root {
  --stone:  #EDE7DC;
  --oat:    #E3DBCB;
  --paper:  #F7F3EB;
  --card:   #FBF8F1;
  --ink:    #23201B;
  --pine:   #2E4034;
  --pine-2: #3A5241;
  --brass:  #B0843F;
  --brass-d:#8F6A2C;
  --muted:  #6E675B;
  --line:   #D9D0BF;

  /* material swatch tones */
  --m-clay:  #C08457;
  --m-linen: #D9CDB8;
  --m-oak:   #A5794A;
  --m-brass: #C79A55;

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "DM Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --r: 4px;
  --shadow: 0 30px 70px -40px rgba(35,32,27,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--stone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 52px); }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200;
}
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ── Buttons ── */
.btn {
  --pad: 13px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: var(--pad); border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn--lg { --pad: 16px 32px; font-size: 1rem; }
.btn--solid { background: var(--pine); color: var(--paper); }
.btn--solid:hover { background: var(--pine-2); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(46,64,52,.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-d);
  display: inline-block; margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--m-brass); }

/* ── Material swatches (signature motif) ── */
.swatches { list-style: none; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 2.4rem; }
.swatches li { display: inline-flex; align-items: center; gap: .55em; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.sw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.08); flex: none; }
.sw--clay  { background: var(--m-clay); }
.sw--linen { background: var(--m-linen); }
.sw--oak   { background: var(--m-oak); }
.sw--brass { background: var(--m-brass); }
.swatches--footer { margin-top: 1.4rem; gap: 10px; }

/* ═══ ANNOUNCE ═══ */
.announce { background: var(--pine); color: var(--paper); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 14px; height: 38px; text-align: center; }
.announce__sep { opacity: .5; }

/* ═══ NAV ═══ */
.nav { position: sticky; top: 0; z-index: 100; background: var(--stone); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -24px rgba(0,0,0,.45); }
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 20px; }
.brand { grid-column: 2; grid-row: 1; justify-self: center; }
.brand__word { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .02em; color: var(--ink); }
.brand__amp { color: var(--brass-d); font-style: italic; }
.nav__links { display: flex; gap: 30px; grid-column: 1; grid-row: 1; justify-self: start; }
.nav__links a { font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--brass-d); transition: width .28s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 9px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--brass); color: #fff; font-family: var(--mono); font-size: .62rem; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.nav__burger { display: none; grid-column: 1; grid-row: 1; justify-self: start; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 8px clamp(20px,5vw,52px) 24px; border-bottom: 1px solid var(--line); background: var(--stone); }
.mobile-menu a { font-family: var(--serif); font-size: 1.3rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; }

/* ═══ HERO ═══ */
.hero { padding-block: clamp(36px, 5vw, 76px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.01em; }
.hero__title em { font-style: italic; color: var(--pine); }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 40ch; margin-top: 1.6rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.hero__frame img { width: 100%; height: clamp(380px, 50vw, 600px); object-fit: cover; }
.hero__hotspot { position: absolute; transform: translate(-50%,-50%); }
.hero__hotspot-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--pine); box-shadow: 0 0 0 0 rgba(247,243,235,.7); animation: hs 2.4s infinite; }
@keyframes hs { 0% { box-shadow: 0 0 0 0 rgba(247,243,235,.7);} 70%{ box-shadow: 0 0 0 12px rgba(247,243,235,0);} 100%{ box-shadow: 0 0 0 0 rgba(247,243,235,0);} }
.hero__hotspot-card { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--card); color: var(--ink); font-family: var(--mono); font-size: .78rem; padding: 8px 13px; border-radius: var(--r); box-shadow: 0 12px 30px -16px rgba(0,0,0,.5); opacity: 0; transition: opacity .25s, transform .25s; }
.hero__hotspot-card b { color: var(--brass-d); }
.hero__hotspot:hover .hero__hotspot-card, .hero__hotspot:focus-visible .hero__hotspot-card { opacity: 1; }

/* ═══ MARQUEE ═══ */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 15px 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: scroll 42s linear infinite; will-change: transform; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 1.55rem; }
.marquee i { color: var(--brass); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ═══ SECTION BASE ═══ */
.section { padding-block: clamp(56px, 8vw, 120px); }
.section__head { margin-bottom: clamp(34px, 5vw, 58px); }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.005em; max-width: 18ch; }
.section__sub { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.section__sub--right { text-align: right; }
.section__link { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--brass-d); border-bottom: 1px solid var(--brass-d); padding-bottom: 3px; transition: opacity .2s; white-space: nowrap; }
.section__link:hover { opacity: .65; }

/* ═══ ROOMS ═══ */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.room { position: relative; overflow: hidden; border-radius: var(--r); display: block; aspect-ratio: 4/3; }
.room--tall { aspect-ratio: auto; }
/* tall portraits flank the two stacked landscapes */
@media (min-width: 1001px) {
  .room-grid > .room:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .room-grid > .room:nth-child(2) { grid-column: 2; grid-row: 1; }
  .room-grid > .room:nth-child(3) { grid-column: 2; grid-row: 2; }
  .room-grid > .room:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
}
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(35,32,27,.55)); }
.room:hover img { transform: scale(1.05); }
.room__label { position: absolute; left: 22px; bottom: 20px; z-index: 1; color: var(--paper); font-family: var(--serif); font-size: 1.7rem; display: flex; flex-direction: column; }
.room__count { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; opacity: .85; margin-top: 2px; }

/* ═══ PRODUCTS ═══ */
.shop { background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 34px) clamp(18px,2vw,26px); }
.product { display: flex; flex-direction: column; }
.product__img { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4/5; background: var(--oat); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__img img { transform: scale(1.04); }
.product__mat { position: absolute; top: 12px; left: 12px; background: rgba(251,248,241,.92); backdrop-filter: blur(4px); font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 5px 10px; border-radius: 999px; }
.product__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r);
  font-family: var(--sans); font-weight: 600; font-size: .88rem; padding: 12px; cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.product__add:hover { background: var(--pine); }
.product:hover .product__add, .product__add:focus-visible { opacity: 1; transform: none; }
.product__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.product__meta h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.product__set { font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.product__price { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--brass-d); white-space: nowrap; }
.product__desc { color: var(--muted); font-size: .92rem; margin-top: 5px; max-width: 34ch; }

/* ═══ CRAFT / MATERIALS ═══ */
.craft__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.craft__media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.craft__media img { width: 100%; height: clamp(420px, 52vw, 640px); object-fit: cover; }
.mat-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.mat-list__row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mat-list dt { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: .6em; }
.mat-list dd { color: var(--muted); font-size: .95rem; }

/* ═══ VALUES ═══ */
.values { background: var(--pine); color: var(--paper); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { border-top: 1.5px solid rgba(247,243,235,.28); padding-top: 22px; }
.value__k { font-family: var(--mono); font-size: .82rem; color: var(--m-brass); letter-spacing: .1em; }
.value h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin: 14px 0 10px; }
.value p { color: rgba(247,243,235,.72); font-size: .95rem; }

/* ═══ JOURNAL / QUOTE ═══ */
.journal { background: var(--oat); }
.journal__inner { max-width: 60rem; margin-inline: auto; text-align: center; }
.journal__quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.8vw, 2.9rem); line-height: 1.25; color: var(--pine); }
.journal__quote footer { font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; color: var(--muted); margin-top: 1.6rem; }
.journal__quote footer span { color: var(--ink); }

/* ═══ NEWSLETTER ═══ */
.newsletter { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 104px); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; }
.newsletter__sub { color: rgba(247,243,235,.68); margin-top: 1rem; max-width: 40ch; }
.newsletter__form { display: flex; gap: 12px; }
.newsletter__form input { flex: 1; min-width: 0; background: rgba(247,243,235,.07); border: 1.5px solid rgba(247,243,235,.22); color: var(--paper); border-radius: var(--r); padding: 15px 18px; font-family: var(--sans); font-size: 1rem; }
.newsletter__form input::placeholder { color: rgba(247,243,235,.4); }
.newsletter__form input:focus-visible { border-color: var(--m-brass); outline-color: var(--m-brass); }
.newsletter .btn--solid { background: var(--brass); color: var(--ink); }
.newsletter .btn--solid:hover { background: var(--m-brass); }

/* ═══ FOOTER ═══ */
.footer { background: var(--stone); padding-top: clamp(52px, 7vw, 88px); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand .brand__word { font-size: 1.7rem; }
.footer__brand p { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: .95rem; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.footer__pay { display: flex; gap: 14px; }
.footer__pay span { letter-spacing: .04em; }

/* ═══ LEGAL PAGES ═══ */
.legal-hero { background: var(--pine); color: var(--paper); padding-block: clamp(52px, 8vw, 92px); }
.legal-hero .eyebrow { color: var(--m-brass); }
.legal-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; }
.legal-hero p { color: rgba(247,243,235,.72); margin-top: 1rem; font-size: 1.05rem; max-width: 52ch; }
.legal { padding-block: clamp(44px, 7vw, 92px); }
.legal__grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: 96px; font-family: var(--sans); }
.legal__toc h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal__toc a { display: block; color: var(--muted); font-size: .92rem; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.legal__toc a:hover { color: var(--pine); border-color: var(--brass); }
.legal__body { max-width: 68ch; }
.legal__body > section { margin-bottom: 2.6rem; scroll-margin-top: 96px; }
.legal__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8rem; color: var(--pine); }
.legal__body h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.legal__body p { color: var(--muted); margin-bottom: 1rem; }
.legal__body ul { color: var(--muted); margin: 0 0 1rem; padding-left: 1.3rem; }
.legal__body li { margin-bottom: .5rem; }
.legal__body a { color: var(--brass-d); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.legal__updated { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-bottom: 2rem; padding: 12px 16px; background: var(--oat); border-radius: var(--r); display: inline-block; }
.legal__body table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; font-size: .9rem; }
.legal__body th, .legal__body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__body th { font-family: var(--sans); font-weight: 600; color: var(--ink); background: var(--oat); }
.legal__body td { color: var(--muted); }
.legal__body td:first-child { font-family: var(--mono); font-size: .82rem; color: var(--ink); }
@media (max-width: 860px) { .legal__grid { grid-template-columns: 1fr; } .legal__toc { display: none; } }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__hotspot-dot { animation: none !important; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .craft__grid, .newsletter__inner { grid-template-columns: 1fr; }
  .section__sub--right { text-align: left; }
  .product__add { opacity: 1; transform: none; }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .room, .room--tall { grid-row: span 1; aspect-ratio: 4/5; }
}
@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .mat-list__row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .value-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; }
  .room, .room--tall { aspect-ratio: 16/10; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .section__head--split { align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   SHOP INTERACTIONS — cart drawer, modal, PDP,
   checkout, forms, extra pages
   ═══════════════════════════════════════════ */
body.no-scroll { overflow: hidden; }

/* ── shared quantity stepper ── */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty__btn { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink); display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.qty__btn:hover { background: var(--oat); }
.qty__n { min-width: 30px; text-align: center; font-family: var(--mono); font-size: .95rem; }
.qty--lg .qty__btn { width: 40px; height: 40px; font-size: 1.25rem; }

/* ── overlays ── */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; background: rgba(35,32,27,.55); opacity: 0; transition: opacity .3s var(--ease); z-index: 190; }
.drawer-overlay.show, .modal-overlay.show { opacity: 1; }
.modal-overlay { z-index: 210; backdrop-filter: blur(2px); }

/* ── cart drawer ── */
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 200;
  width: min(420px, 100vw); height: 100%; background: var(--paper);
  display: flex; flex-direction: column; box-shadow: -30px 0 70px -30px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .34s var(--ease);
}
.cart-drawer.show { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.cart-drawer__title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.cart-drawer__n { color: var(--muted); font-size: 1.1rem; }
.cart-drawer__close, .pmodal__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s; }
.cart-drawer__close:hover, .pmodal__close:hover { background: var(--oat); color: var(--ink); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; background: var(--oat); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.2; }
.cart-item__info h3 a:hover { color: var(--brass-d); }
.cart-item__mat { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 3px 0 12px; }
.cart-item__end { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-item__price { font-family: var(--mono); font-weight: 500; color: var(--brass-d); }
.cart-item__remove { background: none; border: 0; cursor: pointer; font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.cart-item__remove:hover { color: var(--ink); }
.cart-drawer__foot { padding: 22px 26px; border-top: 1px solid var(--line); background: var(--stone); }
.cart-drawer__line { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sans); font-weight: 600; margin-bottom: 6px; }
.cart-drawer__total { font-family: var(--mono); font-size: 1.15rem; color: var(--brass-d); }
.cart-drawer__note { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.cart-drawer__checkout { margin-bottom: 10px; }
.cart-drawer__checkout.is-disabled { pointer-events: none; opacity: .4; }
.cart-drawer__cont { width: 100%; background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-drawer__cont:hover { color: var(--ink); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty p { margin-bottom: 20px; }

/* ── product quick-view modal ── */
.pmodal {
  position: fixed; z-index: 220; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(880px, 94vw); max-height: 92vh; overflow-y: auto; background: var(--paper);
  border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pmodal.show { opacity: 1; transform: translate(-50%, -50%); }
.pmodal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--paper); }
.pmodal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.pmodal__media { background: var(--oat); }
.pmodal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.pmodal__info { padding: 40px 38px; }
.pmodal__mat { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-d); }
.pmodal__name { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin: 8px 0 10px; }
.pmodal__set, .pdp__set { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.pmodal__price { font-family: var(--mono); font-size: 1.35rem; color: var(--brass-d); margin-bottom: 18px; }
.pmodal__desc { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.pmodal__specs { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.pmodal__specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pmodal__specs li span:first-child { color: var(--muted); }
.pmodal__specs li span:last-child { font-family: var(--mono); font-size: .82rem; }
.pmodal__buy { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pmodal__buy .btn { flex: 1; }
.pmodal__full { font-family: var(--mono); font-size: .82rem; color: var(--brass-d); border-bottom: 1px solid var(--brass-d); padding-bottom: 2px; }
.pmodal__full:hover { opacity: .65; }

/* ── product detail page (product.html) ── */
.pdp { padding-block: clamp(28px, 4vw, 52px) clamp(56px, 8vw, 110px); }
.pdp__crumbs { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 28px; letter-spacing: .03em; }
.pdp__crumbs a:hover { color: var(--brass-d); }
.pdp__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: start; }
.pdp__media { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.pdp__media img { width: 100%; height: clamp(400px, 56vw, 640px); object-fit: cover; }
.pdp__mat { position: absolute; top: 16px; left: 16px; background: rgba(251,248,241,.92); backdrop-filter: blur(4px); font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pdp__info { position: sticky; top: 96px; }
.pdp__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.02; margin: 6px 0 12px; }
.pdp__price { font-family: var(--mono); font-size: 1.5rem; color: var(--brass-d); margin-bottom: 22px; }
.pdp__desc { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; max-width: 46ch; }
.pdp__buy { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.pdp__perks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.pdp__perks li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--muted); }
.pdp__perks li::before { content: "✓"; position: absolute; left: 0; color: var(--pine); font-weight: 700; }
.pdp__spec-h { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.pdp__related { margin-top: clamp(56px, 8vw, 110px); }
.pdp__related .section__title { margin-bottom: 32px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; background: var(--oat); }
.rel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rel-card:hover .rel-card__img img { transform: scale(1.05); }
.rel-card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.rel-card__meta h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.rel-card__meta p { font-family: var(--mono); color: var(--brass-d); }

/* ── generic page hero (shop / about / contact) ── */
.page-hero { padding-block: clamp(44px, 6vw, 84px) clamp(20px, 3vw, 40px); }
.page-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; }
.page-hero__sub { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 50ch; }

/* ── checkout ── */
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.checkout-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.checkout-panel h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 20px; }
.co-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-item img { width: 60px; height: 74px; object-fit: cover; border-radius: 4px; background: var(--oat); }
.co-item__info h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.co-item__info p { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-top: 2px; }
.co-item__sum { font-family: var(--mono); color: var(--brass-d); }
.co-totals { margin-top: 18px; }
.co-totals > div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.co-totals dt, .co-totals dd { margin: 0; }
.co-totals dd { font-family: var(--mono); }
.co-totals__grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; color: var(--ink) !important; font-weight: 600; font-size: 1.15rem; }
.co-totals__grand dd { color: var(--brass-d); }

/* ── forms (contact + checkout) ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 600; font-size: .85rem; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-color: var(--brass); border-color: var(--brass); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-ok { background: var(--pine); color: var(--paper); border-radius: var(--r); padding: 16px 20px; margin-top: 18px; font-size: .95rem; }

/* ── contact page ── */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: start; padding-bottom: clamp(56px, 8vw, 110px); }
.contact-cards { display: grid; gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--card); }
.contact-card h3 { font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-d); margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: .96rem; }
.contact-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── shop toolbar ── */
.shop-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.shop-count { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

/* ── about extras ── */
.about-lead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; color: var(--pine); max-width: 24ch; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-stat dt { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--ink); line-height: 1; }
.about-stat dd { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-top: 8px; }

@media (max-width: 900px) {
  .pmodal__grid { grid-template-columns: 1fr; }
  .pmodal__media img { min-height: 220px; max-height: 300px; }
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
  .cart-drawer { width: 100vw; }
}

