/* ═══════════════════════════════════════════════════════════════════════════
   ETHOS AURUM MAISON — STANDALONE STORE PAGES
   Shared chrome + layout for piece.html (the dossier) and checkout.html.
   Added 29 Aug 2026. Loaded after css/eam-tokens.css and css/commerce.css.

   These pages sit OUTSIDE the cinematic scroll — real navigations, a fixed
   top bar, an ordinary footer. The house voice is unchanged: bone ground,
   oxblood ink, serif for feeling, mono for proof, gold only as a hairline.
   ═══════════════════════════════════════════════════════════════════════════ */

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

html { -webkit-text-size-adjust: 100%; }

body.store {
  margin: 0;
  font-family: var(--eam-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--eam-text);
  background: var(--eam-ground);
  -webkit-font-smoothing: antialiased;
}

body.store.is-locked { overflow: hidden; }

a { color: inherit; }

.proof {
  font-family: var(--eam-font-proof);
  font-size: 10px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
}

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

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 15px 30px;
  border: 1px solid var(--eam-oxblood);
  background: transparent;
  color: var(--eam-oxblood);
  font-family: var(--eam-font-proof);
  font-size: 10px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .4s ease, border-color .4s ease;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--eam-oxblood);
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.16,.84,.32,1);
  z-index: -1;
}
.btn:hover::after { transform: none; }
.btn:hover { color: var(--eam-bone); }
.btn:focus-visible { outline: 2px solid var(--eam-aurum); outline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }

.btn.primary { background: var(--eam-oxblood); color: var(--eam-bone); z-index: 0; }
.btn.primary::after { background: var(--eam-bordeaux); }
.btn.primary:hover { color: var(--eam-bone); border-color: var(--eam-bordeaux); }

.btn.ghost { border-color: rgb(from var(--eam-espresso) r g b / .4); color: var(--eam-text); }
.btn.ghost::after { background: rgb(from var(--eam-espresso) r g b / .06); }
.btn.ghost:hover { color: var(--eam-text); border-color: var(--eam-espresso); }

.btn.block { width: 100%; }

/* ── top bar ─────────────────────────────────────────────────────────── */

.store-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 60px);
  background: rgb(from var(--eam-bone) r g b / .9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgb(from var(--eam-oxblood) r g b / .14);
}
.store-bar a { text-decoration: none; }

.store-bar-left  { justify-self: start; }
.store-bar-mark  { justify-self: center; display: block; line-height: 0; }
.store-bar-mark svg { width: 46px; height: auto; fill: var(--eam-oxblood); display: block; }
.store-bar-right { justify-self: end; display: inline-flex; align-items: baseline; gap: clamp(14px, 2.5vw, 26px); }
.store-bar-right .heart { font-size: 12px; line-height: 1; }

.store-bar .link {
  font-family: var(--eam-font-proof);
  font-size: 10px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
  opacity: .7;
  transition: opacity .3s ease;
}
.store-bar .link:hover { opacity: 1; }

.bag-link { display: inline-flex; align-items: baseline; gap: 8px; }
.bag-link .bag-n {
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--eam-aurum);
  padding-bottom: 1px;
  opacity: 1;
}

/* ── page shell ──────────────────────────────────────────────────────── */

.store-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 60px) clamp(80px, 12vh, 140px);
}

.crumb {
  font-family: var(--eam-font-proof);
  font-size: 10px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.crumb a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumb a:hover { border-bottom-color: currentColor; }

.hair {
  height: 1px;
  background: var(--eam-aurum);
  border: 0;
  margin: clamp(28px, 4vw, 44px) 0;
  opacity: .5;
}

/* ── room listing (room.html) & favourites grid ─────────────────────── */

.room-head { margin-bottom: clamp(30px, 5vw, 54px); max-width: 720px; }
.room-head .k {
  font-family: var(--eam-font-proof);
  font-size: 10px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
  opacity: .55;
  display: block;
  margin-bottom: 14px;
}
.room-head h1 {
  font-family: var(--eam-font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.room-head p { margin: 0; opacity: .6; font-size: 14px; }

.room-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(from var(--eam-oxblood) r g b / .14);
}
.rf-field { display: flex; flex-direction: column; gap: 6px; }
.rf-field span {
  font-family: var(--eam-font-proof);
  font-size: 9px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
  opacity: .5;
}
.rf-field select {
  font-family: var(--eam-font-body);
  font-size: 14px;
  color: var(--eam-text);
  background: var(--eam-bone);
  border: 1px solid rgb(from var(--eam-oxblood) r g b / .28);
  border-radius: 0;
  padding: 9px 30px 9px 12px;
  min-width: 168px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.rf-field select:focus { outline: 2px solid var(--eam-aurum); outline-offset: 0; border-color: var(--eam-oxblood); }
.rf-clear {
  background: none;
  border: 0;
  padding: 9px 4px;
  color: var(--eam-text);
  font-family: var(--eam-font-proof);
  font-size: 9px;
  letter-spacing: var(--eam-track-proof);
  text-transform: uppercase;
  opacity: .5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rf-clear:hover { opacity: 1; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: clamp(22px, 3vw, 44px) clamp(20px, 2.4vw, 34px);
}
/* card is styled by commerce.css; on these bone pages currentColor = espresso */
.room-grid .piece-card-plate { aspect-ratio: 3 / 4; }

.store-empty { text-align: center; padding: clamp(60px, 14vh, 140px) 0; }
.store-empty h1 {
  font-family: var(--eam-font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 40px); margin: 0 0 14px;
}
.store-empty p { opacity: .7; margin: 0 0 30px; }

/* ── footer ──────────────────────────────────────────────────────────── */

.store-foot {
  background: var(--eam-oxblood);
  color: var(--eam-bone);
  padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 60px);
  text-align: center;
}
.store-foot img { width: min(520px, 80vw); height: auto; opacity: .96; }
.store-foot .proof {
  display: block;
  margin-top: 26px;
  opacity: .6;
  line-height: 2;
}
.store-foot .proof a { text-decoration: none; border-bottom: 1px solid rgb(from var(--eam-bone) r g b / .3); }
.store-foot .proof a:hover { border-bottom-color: var(--eam-aurum); }

@media (prefers-reduced-motion: reduce) {
  .btn::after { transition: none; }
}
