/* ==========================================================================
   Elara Boutique
   Layout: full-bleed video hero, then calm single-column sections on warm
   white and linen bands. Arch-topped image frames echo the arched shelving
   inside the shop. Gold is used sparingly, for rules, labels and hovers.
   ========================================================================== */

:root {
  /* Color */
  --warm-white: #FBF8F3;   /* page ground */
  --linen:      #F2EBE0;   /* alternate bands */
  --sand:       #E2D5C1;   /* hairlines, borders, placeholders */
  --gold:       #B08D57;   /* accent: antique gold */
  --gold-deep:  #8A6A45;   /* bronze from the logo; hover, links */
  --ink:        #3A3029;   /* headings and body text */
  --ink-soft:   #6F6358;   /* secondary text */
  --on-dark:    #FFFDF9;   /* text over video and dark fills */

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-caps:    "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
  --step-2:  clamp(1.9rem, 1.6rem + 1.2vw, 2.7rem);
  --step-3:  clamp(2.5rem, 2rem + 2.2vw, 3.9rem);
  --step-hero: clamp(4.2rem, 2.6rem + 8vw, 10rem);

  /* Space & shape */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark);
  padding: .6rem 1rem; font-size: var(--step--1);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--font-caps);
  font-size: var(--step--1);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--ink);
}

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head-split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.section-head-split > div { display: grid; gap: 1rem; }

.muted { color: var(--ink-soft); }

/* Inline lists with a dot separator that disappears when the line stacks */
.announce p,
.hero-sub { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1em; }
@media (max-width: 560px) {
  .announce p { display: block; }
  .announce .sep, .announce p > span:last-child { display: none; }
  .hero-sub { flex-direction: column; align-items: center; row-gap: .4em; }
  .hero-sub .sep { display: none; }
}

/* ---------- Brand mark (logo from the shop sign, recolored with CSS) ---------- */
.mark {
  display: inline-block;
  width: 44px;
  aspect-ratio: 840 / 800;
  background-color: currentColor;
  -webkit-mask: url("../assets/img/elara-mark.png") center / contain no-repeat;
          mask: url("../assets/img/elara-mark.png") center / contain no-repeat;
}

.wordmark {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: .38em;
  margin-right: -.38em; /* optical centering for tracked caps */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--on-dark); }
.btn-ghost-light { border-color: rgba(255, 253, 249, .7); color: var(--on-dark); }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--gold-deep); }

.link-arrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .3rem;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.link-arrow:hover { color: var(--gold-deep); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--linen);
  color: var(--ink-soft);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .6rem var(--gutter-r) .6rem var(--gutter);
  padding-top: calc(.6rem + env(safe-area-inset-top, 0px));
  position: relative;
  z-index: 31;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h)); /* lets the hero sit underneath */
  color: var(--on-dark);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header.is-solid,
.site-header.menu-open {
  background: rgba(251, 248, 243, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--sand);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-right { justify-content: flex-end; gap: .4rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-right .nav-links { margin-right: 1.2rem; }
.nav-links a {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
  padding-block: .4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.brand { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.brand .mark { width: 30px; }
.brand .wordmark { font-size: 1.05rem; line-height: 1; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  transition: background-color .3s var(--ease);
}
.icon-btn:hover { background: rgba(176, 141, 87, .14); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }

.cart-count {
  position: absolute; top: 4px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--on-dark);
  font-size: .62rem; line-height: 16px; text-align: center; font-weight: 500;
}
.cart-count[data-empty="true"] { display: none; }

.menu-toggle { display: none; width: 40px; height: 40px; place-items: center; }
.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block; width: 22px; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
  padding: 1rem var(--gutter-r) 2rem var(--gutter);
}
.mobile-menu li a[aria-current="page"] { color: var(--gold-deep); }
.mobile-menu li a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  min-height: min(100vh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #2b231d url("../assets/img/hero-poster.jpg") center / cover no-repeat;
  color: var(--on-dark);
  isolation: isolate;
}
@supports (height: 100svh) { .hero { min-height: min(100svh, 980px); } }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(36, 27, 20, .55) 0%, rgba(36, 27, 20, .12) 28%, rgba(36, 27, 20, .14) 60%, rgba(36, 27, 20, .6) 100%),
    radial-gradient(ellipse at center, rgba(36, 27, 20, .28), transparent 70%);
}

.hero-content {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter-r) 5rem var(--gutter);
}
.mark-hero { width: clamp(64px, 6vw, 88px); opacity: .95; animation: rise 1.4s var(--ease) both; }

.hero-title { display: grid; gap: 1.1rem; justify-items: center; }
.hero-name {
  font-family: var(--font-caps);
  font-size: var(--step-hero);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-right: -.16em;
  text-shadow: 0 2px 30px rgba(30, 22, 15, .25);
  animation: rise 1.4s .15s var(--ease) both;
}
.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(.72rem, .68rem + .25vw, .9rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  animation: rise 1.4s .3s var(--ease) both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem;
  margin-top: .8rem;
  animation: rise 1.4s .45s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.video-toggle {
  position: absolute;
  right: calc(var(--gutter-r) + 4px);
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 249, .55);
  display: grid; place-items: center;
  color: var(--on-dark);
  transition: background-color .3s var(--ease);
}
.video-toggle:hover { background: rgba(255, 253, 249, .15); }
.video-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.video-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

/* ---------- Intro ---------- */
.intro { padding-block: var(--section); text-align: center; }
.intro-inner { display: grid; justify-items: center; gap: 1.6rem; }
.intro-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.1;
  max-width: 18ch;
}
.intro-copy { max-width: 60ch; color: var(--ink-soft); }

/* ---------- Arch frame ---------- */
.arch {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 999px 999px 0 0;
  background: var(--sand);
}
.arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.arch-tall { aspect-ratio: 3 / 4.3; }

/* ---------- Categories ---------- */
.categories { padding-bottom: var(--section); }
.categories .section-head { justify-items: center; text-align: center; }

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
}
.category { display: grid; gap: 1.1rem; text-align: center; }
.category:hover .arch img { transform: scale(1.05); }
.category-name {
  font-family: var(--font-caps);
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.category:hover .category-name { color: var(--gold-deep); }

/* ---------- New arrivals ---------- */
.arrivals { background: var(--linen); padding-block: var(--section); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem) clamp(1rem, 2vw, 1.8rem);
}

.product { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .6s var(--ease);
}
.product-media img + img { position: absolute; inset: 0; opacity: 0; }
.product:hover .product-media img:first-child { transform: scale(1.04); }
.product:hover .product-media img + img { opacity: 1; }

.product-quick {
  position: absolute; left: .8rem; right: .8rem; bottom: .8rem;
  min-height: 44px;
  display: grid; place-items: center;
  background: rgba(251, 248, 243, .94);
  color: var(--ink);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s;
}
.product:hover .product-quick,
.product-quick:focus-visible { opacity: 1; transform: none; }
.product-quick:hover { background: var(--ink); color: var(--on-dark); }

.product-info { display: grid; gap: .25rem; }
.product-vendor {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400;
}
.product-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.25;
}
.product-price { font-size: .92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.product-price .compare { text-decoration: line-through; margin-left: .5rem; opacity: .7; }

.product.is-skeleton .product-media { animation: pulse 1.6s ease-in-out infinite; }
.product.is-skeleton .product-title,
.product.is-skeleton .product-price { height: 1em; background: var(--sand); width: 70%; }
@keyframes pulse { 50% { opacity: .55; } }

.preview-note {
  margin-top: 2.2rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Shop all ---------- */
.shop-all { background: var(--linen); padding-block: var(--section); }
.shop-all[hidden] { display: none; }

.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.4rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--sand);
}
.shop-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 40px;
  padding: 0 1.1rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  color: var(--ink-soft);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

.shop-controls { display: flex; gap: .75rem; flex-wrap: wrap; }
.shop-search {
  display: flex; align-items: center; gap: .5rem;
  min-height: 42px; padding: 0 .9rem;
  border: 1px solid var(--sand);
  background: var(--on-dark);
}
.shop-search:focus-within { border-color: var(--gold); }
.shop-search svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-soft); stroke-width: 1.4; flex: none; }
.shop-search input {
  border: 0; outline: 0; background: none; font: inherit; font-size: .92rem; color: var(--ink);
  width: 12rem; min-width: 0;
}
.shop-search input::-webkit-search-cancel-button { cursor: pointer; }
.shop-sort select {
  min-height: 42px; padding: 0 2.2rem 0 .9rem;
  border: 1px solid var(--sand); border-radius: 0;
  background: var(--on-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F6358' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right .6rem center / 16px no-repeat;
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer;
}
.shop-sort select:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; }

.shop-status { color: var(--ink-soft); text-align: center; }
.shop-status:empty { display: none; }
.shop-status:not(:empty) { padding-block: 2rem; }
.shop-more { display: flex; justify-content: center; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: none; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn:disabled { opacity: .55; cursor: default; }

.product-quick.is-static { pointer-events: none; color: var(--ink-soft); }

/* ---------- Dialogs: product popup and bag ---------- */
html.is-locked { overflow: hidden; }

dialog { padding: 0; border: 0; color: var(--ink); background: var(--warm-white); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(58, 48, 41, .45); backdrop-filter: blur(2px); }
dialog:focus { outline: none; }

.dialog-close {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: background-color .3s var(--ease);
}
.dialog-close:hover { background: rgba(176, 141, 87, .16); }
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Product popup */
.piece {
  width: min(1080px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.piece[open] { animation: piece-in .45s var(--ease); }
@keyframes piece-in { from { opacity: 0; transform: translateY(14px); } }
.piece > .dialog-close { position: absolute; top: .7rem; right: .7rem; z-index: 2; background: rgba(251, 248, 243, .85); }

.piece-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.piece-loading { grid-column: 1 / -1; padding: 6rem 2rem; text-align: center; color: var(--ink-soft); }

.piece-gallery { background: var(--linen); padding: clamp(1rem, 2vw, 1.6rem); display: grid; gap: .8rem; align-content: start; }
.piece-main { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.piece-main img { width: 100%; height: 100%; object-fit: cover; }
.piece-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .2rem; }
.piece-thumb { flex: none; width: 64px; aspect-ratio: 4 / 5; overflow: hidden; opacity: .6; border: 1px solid transparent; transition: opacity .3s; }
.piece-thumb img { width: 100%; height: 100%; object-fit: cover; }
.piece-thumb:hover, .piece-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--gold); }

.piece-info { padding: clamp(1.6rem, 3.5vw, 3rem); display: grid; gap: 1.1rem; align-content: start; }
.piece-title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.1; padding-right: 2rem; }
.piece-price { font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.piece-price .compare { text-decoration: line-through; margin-left: .6rem; color: var(--ink-soft); }

.piece-option { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.piece-option legend {
  padding: 0; margin-bottom: .6rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--ink-soft);
}
.piece-option legend span { margin-left: .7rem; color: var(--ink); letter-spacing: .08em; text-transform: none; font-size: .88rem; }
.piece-values { display: flex; flex-wrap: wrap; gap: .45rem; }
.piece-value {
  min-width: 46px; min-height: 42px; padding: 0 .9rem;
  border: 1px solid var(--sand); background: var(--on-dark);
  font-size: .88rem;
  transition: border-color .25s, background-color .25s, color .25s;
}
.piece-value:hover { border-color: var(--gold); }
.piece-value[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.piece-value.is-out { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(111, 99, 88, .6); }
.piece-value.is-out[aria-pressed="true"] { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--on-dark); }

.piece-add { width: 100%; margin-top: .4rem; }
.piece-msg { font-size: .88rem; color: var(--gold-deep); }
.piece-msg:empty { display: none; }
.piece-desc { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--sand); padding-top: 1.2rem; }
.piece-desc > * + * { margin-top: .7em; }
.piece-desc p, .piece-desc ul, .piece-desc ol { margin: 0; }
.piece-desc ul { list-style: disc; padding-left: 1.2rem; }
.piece-desc a { text-decoration: underline; text-decoration-color: var(--gold); }
.piece-visit { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold-deep); }

/* Bag panel (slides in from the right) */
.bag {
  margin: 0 0 0 auto;
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}
.bag[open] { display: flex; }
.bag.is-open { transform: none; }
.bag::backdrop { opacity: 0; transition: opacity .32s var(--ease); }
.bag.is-open::backdrop { opacity: 1; }

.bag-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.1rem 1.1rem 1.6rem;
  border-bottom: 1px solid var(--sand);
}
.bag-head h2 { font-family: var(--font-caps); font-size: .9rem; letter-spacing: .3em; text-transform: uppercase; }

.bag-lines { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 1.6rem; }
.bag-empty { padding: 4rem 0; display: grid; gap: 1.4rem; justify-items: center; text-align: center; color: var(--ink-soft); }
.bag-empty p { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }

.bag-line {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--sand);
  transition: opacity .2s;
}
.bag-line.is-busy { opacity: .5; }
.bag-thumb { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-line-info { display: grid; gap: .2rem; align-content: start; min-width: 0; }
.bag-line-title { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.bag-line-title a:hover { color: var(--gold-deep); }
.bag-line-variant { font-size: .85rem; color: var(--ink-soft); }
.bag-qty { display: inline-flex; align-items: center; margin-top: .5rem; border: 1px solid var(--sand); width: max-content; }
.bag-qty button { width: 34px; height: 34px; font-size: 1rem; }
.bag-qty button:hover:not(:disabled) { background: var(--linen); }
.bag-qty button:disabled { opacity: .35; cursor: default; }
.bag-qty span { min-width: 2ch; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bag-line-note { font-size: .8rem; color: var(--gold-deep); }
.bag-line-note:empty { display: none; }
.bag-line-end { display: grid; justify-items: end; align-content: space-between; }
.bag-line-price { font-size: .95rem; font-variant-numeric: tabular-nums; }
.bag-remove { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--sand); }
.bag-remove:hover { color: var(--ink); border-color: var(--gold); }

.bag-foot { padding: 1.3rem 1.6rem calc(1.3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sand); background: var(--linen); display: grid; gap: .6rem; }
.bag-foot[hidden] { display: none; }
.bag-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bag-subtotal span:first-child { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; align-self: center; }
.bag-fine { font-size: .8rem; color: var(--ink-soft); }
.bag-checkout { width: 100%; margin-top: .3rem; }

@media (prefers-reduced-motion: reduce) {
  .piece[open] { animation: none; }
  .bag, .bag::backdrop { transition: none; }
}

@media (max-width: 860px) {
  .piece-body { grid-template-columns: 1fr; }
  .piece-gallery { padding: 0 0 .8rem; background: none; }
  .piece-thumbs { padding-inline: 1rem; }
}

@media (max-width: 560px) {
  .shop-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter) var(--gutter-r); scrollbar-width: none; }
  .shop-filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .piece { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .piece-body { min-height: 100%; align-content: start; }
  .piece-info { padding: 1.4rem var(--gutter) 2.4rem; }
}

/* ---------- About ---------- */
.about { background: var(--linen); padding-block: var(--section); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about-portrait { margin: 0; position: relative; max-width: 460px; justify-self: end; width: 100%; }
.about-portrait::before {
  /* thin gold arch offset behind the portrait */
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
  z-index: 0;
}
.about-portrait .arch { position: relative; z-index: 1; }
.about-portrait img { object-position: 50% 30%; }

.about-text { display: grid; gap: 1.3rem; max-width: 36rem; }
.about-text > p:not(.eyebrow):not(.signature) { color: var(--ink-soft); }

.signature { display: grid; gap: .2rem; margin-top: .8rem; }
.signature-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--gold-deep);
  line-height: 1.2;
}
.signature-role {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400;
}

/* ---------- Visit ---------- */
.visit { padding-block: var(--section); }
.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.visit-card { display: grid; gap: 1.6rem; justify-items: start; }

.visit-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin: .4rem 0 .6rem;
  width: 100%;
}
.visit-details dt {
  font-family: var(--font-caps);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .35rem;
}
.visit-details dd { margin: 0; line-height: 1.6; }
.visit-details a { border-bottom: 1px solid var(--sand); transition: border-color .3s; }
.visit-details a:hover { border-color: var(--gold); }

.visit-media { aspect-ratio: 16 / 10; overflow: hidden; max-width: 100%; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }

@media (min-width: 700px) and (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .shop-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .shop-controls { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); min-width: 0; }
  .shop-search { min-width: 0; }
  .shop-search input { width: 100%; flex: 1; }
  .shop-sort select { width: 100%; }
}

/* ---------- Inner pages (shop, visit) ---------- */
/* --chrome-h is the announcement bar + header height, measured in js/main.js */
:root { --chrome-h: calc(var(--header-h) + 40px); }
.page .site-header { margin-bottom: 0; }

.page-shop .shop-all {
  background: var(--warm-white);
  min-height: calc(100svh - var(--chrome-h));
  padding-top: clamp(2.6rem, 2rem + 3vw, 4.5rem);
}
.page-head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }

.visit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: calc(100svh - var(--chrome-h));
}
.visit-hero-media { position: relative; overflow: hidden; background: var(--sand); }
.visit-hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
}
.visit-hero-card {
  display: grid; align-content: center; justify-items: start; gap: 1.5rem;
  padding: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(1.5rem, 1rem + 4vw, 5.5rem);
  max-width: 42rem;
}
.visit-lede { color: var(--ink-soft); max-width: 34rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.visit-map { height: clamp(320px, 55vh, 560px); background: var(--sand); }
.visit-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.3) sepia(.12); }

.visit-more { background: var(--linen); padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem); }
.visit-more-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
}
.visit-more-inner > div { display: grid; gap: .9rem; }
.visit-more-title { font-size: var(--step-2); }
.visit-more-inner > p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .visit-hero { grid-template-columns: 1fr; min-height: 0; }
  .visit-hero-media { height: 46svh; min-height: 260px; }
  .visit-hero-card { max-width: none; padding: 2.4rem var(--gutter-r) 3rem var(--gutter); }
  .visit-more-inner { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) {
  .page-visit .visit-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
  .visit-actions { display: grid; width: 100%; }
  .visit-actions .btn { width: 100%; }
}

/* ---------- Newsletter ---------- */
.letters { background: var(--warm-white); padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); text-align: center; }
.letters-inner { display: grid; justify-items: center; gap: 1.2rem; max-width: 40rem; }
.mark-small { width: 46px; color: var(--gold); }
.letters-title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.15; }
.letters-inner > p { color: var(--ink-soft); }
.letters-form {
  display: flex; width: 100%; max-width: 30rem; margin-top: .6rem;
  border: 1px solid var(--ink);
  background: var(--warm-white);
}
.letters-form input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  padding: 0 1.1rem;
  min-height: 50px;
  font: inherit; font-size: .95rem; color: var(--ink);
}
.letters-form input::placeholder { color: var(--ink-soft); opacity: .8; }
.letters-form input:focus { outline: none; }
.letters-form:focus-within { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.letters-form .btn { padding: 0 1.6rem; }
.form-msg { min-height: 1.4em; font-size: .9rem; color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
  padding-top: clamp(3.5rem, 5vw, 5rem);
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  font-size: .92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand { display: grid; justify-items: start; align-content: start; gap: .5rem; color: var(--ink); }
.footer-brand .mark { width: 40px; color: var(--gold-deep); }
.footer-brand .wordmark { font-size: 1.2rem; }
.footer-brand p { color: var(--ink-soft); margin-top: .6rem; line-height: 1.6; }

.footer-col h3 {
  font-family: var(--font-caps);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { color: var(--ink-soft); transition: color .3s; }
.footer-col a:hover { color: var(--ink); }

.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem;
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
  font-size: .8rem; color: var(--ink-soft);
}
.footer-base a { border-bottom: 1px solid var(--sand); }
.footer-base a:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- Scroll reveal (content is visible by default; JS opts in) ---------- */
.js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
  .mark-hero, .hero-name, .hero-sub, .hero-actions { animation: none; }
  .arch img, .product-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .category-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 30%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--sand) transparent;
  }
  .category-row > li { scroll-snap-align: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav-right .icon-btn[href] { display: none; }


  .about-inner { grid-template-columns: 1fr; }
  .about-portrait { justify-self: center; max-width: 380px; }

  .visit-inner { grid-template-columns: 1fr; }
  .visit-media { order: -1; }
}

@media (max-width: 560px) {
  .category-row { grid-auto-columns: 62%; }
  .product-grid { gap: 1.6rem .9rem; }
  .product-title { font-size: 1.1rem; }
  .product-quick { display: none; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-actions .btn { width: 100%; }
  .visit-details { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; }
  .letters-form { flex-direction: column; border: 0; background: none; gap: .7rem; }
  .letters-form input { border: 1px solid var(--ink); background: var(--warm-white); }
  .letters-form:focus-within { outline: none; }
  .letters-form input:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; }
}
