/* =============================================================
   ALSARAY — PAGE COMPOSITIONS
   Layouts specific to individual pages. Primitives live in system.css.
   ============================================================= */

/* -------------------------------------------------------------
   HERO
   The product is the subject: real pack shots composed as a shelf,
   scaled and overlapped rather than laid out in an even row.
   ------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    linear-gradient(to bottom, var(--surface-raised) 0%, var(--surface) 62%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: var(--s-7);
  padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 940px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: var(--s-8);
  }
}

.hero-copy .lead { margin-top: var(--s-5); }
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0;
}
.hero-location::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--red);
}
.hero-actions { margin-top: var(--s-6); }
.hero-note { margin-top: var(--s-4); }
.hero-note a { color: var(--ink-2); text-underline-offset: 0.25em; }
.hero-note a:hover { color: var(--red); }

.hero-shelf {
  position: relative;
  aspect-ratio: 1.5;
  min-height: 280px;
}
@media (max-width: 939px) {
  .hero-shelf { aspect-ratio: 1.5; min-height: 250px; margin-inline: calc(var(--s-3) * -1); }
}

/* Hero photograph. Fills the shelf area and crops to the frame at every width. */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-strip {
  border-top: 1px solid var(--line);
  background: var(--red);
  color: #fff;
}
.hero-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-7);
  padding-block: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-fine);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-strip-inner strong { font-weight: 700; }

/* -------------------------------------------------------------
   POSITIONING
   ------------------------------------------------------------- */

.intro-row { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 900px) {
  .intro-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.cat-more { margin-top: var(--s-6); }

/* -------------------------------------------------------------
   STORY
   ------------------------------------------------------------- */

.story-inner { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) {
  .story-inner { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--s-8); }
}
.story-shot { margin: 0; }
.story-shot img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 1; }
.story-copy h2 { max-width: 20ch; }
.story-copy .prose { margin-top: var(--s-5); }
.story-copy > p:last-child { margin-top: var(--s-6); }

/* -------------------------------------------------------------
   WHOLESALE
   ------------------------------------------------------------- */

.serve-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) { .serve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .serve-grid { grid-template-columns: repeat(4, 1fr); } }

.serve { background: var(--surface); padding: var(--s-5); }
.serve h3 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.serve p { color: var(--ink-2); font-size: var(--t-small); }

.wholesale-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-6);
  padding: var(--s-6);
  background: var(--surface-dark);
  color: var(--ink-on-dark);
}
.wholesale-cta h3 { color: #fff; }
.wholesale-cta .fine { color: var(--ink-on-dark-2); margin-top: 0.35rem; }

/* -------------------------------------------------------------
   VIDEO
   ------------------------------------------------------------- */

.video-layout { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .video-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.video-lead { margin: 0; }
.video-lead figcaption {
  margin-top: var(--s-3);
  color: var(--ink-on-dark-2);
  font-family: var(--font-display);
  font-weight: 500;
}
.band-dark .video-thumb h3 { color: var(--ink-on-dark); }
.band-dark .video-thumb[aria-current="true"] h3 { color: var(--gold); }
.video-thumb:hover h3 { color: var(--gold); }

/* -------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------- */

.contact-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 940px) {
  .contact-layout { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: var(--s-8); }
}

.contact-direct { display: grid; gap: var(--s-6); }
.contact-item h3 {
  font-size: var(--t-fine);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.contact-item p { margin-bottom: 0.3rem; color: var(--ink-2); }
.contact-item a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: var(--line-strong); }
.contact-item a:hover { color: var(--red); text-decoration-color: var(--red); }
.contact-strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.contact-form {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: var(--s-6);
}
.contact-form h3 { margin-bottom: var(--s-5); }

.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field-wide { grid-column: 1 / -1; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-msg { margin-top: var(--s-4); font-size: var(--t-small); color: var(--ink-2); min-height: 1.3em; }
.form-msg.is-error { color: var(--red-deep); }
.form-msg.is-ok { color: var(--olive); }

.contact-captcha { margin-top: var(--s-4); display: grid; gap: var(--s-2); }

/* -------------------------------------------------------------
   COOKIE NOTICE + TOAST (injected by app.js)
   ------------------------------------------------------------- */

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: var(--s-4);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  width: min(100% - 2rem, 640px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  font-size: var(--t-small);
}
.cookie-notice p { margin: 0; color: var(--ink-on-dark-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.cookie-actions .btn-primary,
.cookie-actions .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--r-2);
  font-family: var(--font-display);
  font-size: var(--t-fine);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.cookie-actions .btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.cookie-actions .btn-primary:hover { background: var(--red-deep); }
.cookie-actions .btn-outline { background: transparent; color: var(--ink-on-dark); border-color: var(--line-on-dark); }
.cookie-actions .btn-outline:hover { background: oklch(1 0 0 / 0.1); }
.cookie-actions a { color: var(--ink-on-dark-2); font-size: var(--t-fine); text-decoration: underline; text-underline-offset: 0.2em; }

.toast-container {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: var(--z-toast);
  display: grid;
  gap: var(--s-2);
  width: min(100% - 2rem, 380px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  font-size: var(--t-small);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.toast.toast-show { opacity: 1; transform: none; }
.toast svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.toast-success svg { color: var(--olive); }
.toast-error svg { color: var(--red-on-dark); }
.toast-text { flex: 1; }
.toast-close {
  background: none; border: 0; color: var(--ink-on-dark-2);
  font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 0 0 var(--s-2);
}
.toast-close:hover { color: #fff; }

/* Button-loading markup emitted by app.js */
.btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-dots::after { content: ""; }

/* -------------------------------------------------------------
   PAGE HEAD (inner pages)
   ------------------------------------------------------------- */

.page-head { padding-block: var(--s-7) var(--s-5); border-bottom: 1px solid var(--line); }
.crumbs { font-size: var(--t-fine); color: var(--ink-3); margin-bottom: var(--s-4); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 0.22em; }
.crumbs span { margin-inline: 0.35rem; }

.page-head-row { display: grid; gap: var(--s-4); align-items: end; }
@media (min-width: 820px) {
  .page-head-row { grid-template-columns: minmax(0, 1fr) auto; }
}
.page-head-row .lead { margin-top: var(--s-3); }
.page-head-count { white-space: nowrap; }

/* -------------------------------------------------------------
   FILTER BAR
   ------------------------------------------------------------- */

.filter-bar {
  position: sticky;
  top: var(--head-h);
  z-index: calc(var(--z-sticky) - 1);
  background: oklch(0.977 0.005 28 / 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-3);
}

.filter-inner {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .filter-inner { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr)) auto; }
}

.filter-search {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 0.9rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
}
.filter-search svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.filter-search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 0.72rem 0;
  font-size: var(--t-small);
}
.filter-search input:focus { outline: none; }
.filter-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px oklch(0.45 0.19 28 / 0.14); }

.filter-select select {
  width: 100%;
  padding: 0.72rem 0.8rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  font-size: var(--t-small);
  color: var(--ink);
}
.filter-select select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px oklch(0.45 0.19 28 / 0.14); }

.filter-select {
  position: relative;
  min-width: 0;
}

.filter-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.filter-select-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: .72rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: var(--t-small);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.filter-select-button:hover,
.filter-select.is-open .filter-select-button {
  border-color: var(--red);
  background: var(--red-wash);
}

.filter-select-button:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px oklch(0.45 0.19 28 / .14);
}

.filter-select-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform var(--dur-2) var(--ease);
}

.filter-select.is-open .filter-select-button svg { transform: rotate(180deg); }

.filter-select-menu {
  position: absolute;
  z-index: var(--z-dropdown);
  inset: calc(100% + 6px) 0 auto;
  max-height: min(58vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  background: var(--surface-raised);
}

.filter-select-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: .55rem .7rem;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.filter-select-option:hover,
.filter-select-option:focus-visible {
  outline: none;
  background: var(--surface-sunk);
  color: var(--ink);
}

.filter-select-option.is-selected {
  background: var(--red-wash);
  color: var(--red-deep);
  font-weight: 650;
}

.filter-reset { padding-block: 0.62rem; white-space: nowrap; }

.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-top: var(--s-3); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3rem 0.7rem;
  background: var(--red-wash);
  border: 1px solid oklch(0.45 0.19 28 / 0.25);
  border-radius: var(--r-pill);
  font-size: var(--t-fine);
  color: var(--red-deep);
  cursor: pointer;
}
.chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

@media (max-width: 759px) {
  .filter-bar { position: static; }
}

/* -------------------------------------------------------------
   GRID STATES
   ------------------------------------------------------------- */

.product-grid.is-empty { display: block; background: none; border-color: transparent; }
.grid-state {
  grid-column: 1 / -1;
  background: var(--surface-raised);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--ink-3);
}
.grid-empty h3 { margin-bottom: var(--s-3); color: var(--ink); }
.grid-empty p { max-width: 42ch; margin: 0 auto var(--s-5); color: var(--ink-2); }

/* Favourite toggle sits above the card's stretched link. */
.p-fav {
  position: absolute;
  top: var(--s-2); right: var(--s-2);
  z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none;
  border: 0;
  border-radius: var(--r-2);
  color: var(--line-strong);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.p-fav svg { width: 18px; height: 18px; fill: currentColor; }
.p-fav:hover { background: var(--surface-sunk); color: var(--red); }
.p-fav[aria-pressed="true"] { color: var(--red); }

/* -------------------------------------------------------------
   PAGER
   ------------------------------------------------------------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.pager .btn[disabled] { opacity: 0.4; }

/* -------------------------------------------------------------
   PRODUCT DETAIL
   ------------------------------------------------------------- */

.pd { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 880px) {
  .pd { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--s-8); }
}

.pd-media { position: relative; }
.pd-shot {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: var(--s-6);
}
.pd-shot img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.pd-shot .p-shot-empty { width: 100%; height: 100%; }

.pd-info h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: var(--s-5); }

.pd-specs { margin: 0 0 var(--s-6); display: grid; gap: 0; border-top: 1px solid var(--line); }
.pd-specs > div {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.pd-specs dt { color: var(--ink-3); font-size: var(--t-small); }
.pd-specs dd { margin: 0; font-weight: 600; color: var(--ink); }

.pd-price {
  padding: var(--s-3) var(--s-4);
  background: var(--red-wash);
  border: 1px dashed oklch(0.45 0.19 28 / 0.35);
  margin-bottom: var(--s-5);
  font-size: var(--t-small);
}
.pd-price strong { font-size: 1.15rem; margin-left: var(--s-2); }

.pd-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pd-note { margin-top: var(--s-5); }
.pd-note a { color: var(--ink); }

/* Admin photo controls */
.admin-photo { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 3; }
.admin-photo-dots {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface-dark);
  color: #fff;
  border: 0; border-radius: var(--r-2);
  cursor: pointer;
  opacity: 0.82;
}
.admin-photo-dots:hover { opacity: 1; }
.admin-photo-dots svg { width: 18px; height: 18px; fill: currentColor; }
.admin-photo-menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  min-width: 200px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.admin-photo-menu button {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none; border: 0;
  text-align: left;
  font-size: var(--t-small);
  color: var(--ink);
  cursor: pointer;
}
.admin-photo-menu button:hover { background: var(--red-wash); color: var(--red-deep); }
.admin-photo-msg { margin-top: var(--s-3); min-height: 1.2em; }
.admin-photo-msg.is-error { color: var(--red-deep); }

/* -------------------------------------------------------------
   AUTH — sign in
   ------------------------------------------------------------- */

.auth { display: grid; min-height: calc(100dvh - var(--head-h)); }
@media (min-width: 940px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.auth-panel { display: grid; place-items: center; padding: var(--s-7) var(--s-5); }
.auth-panel-inner { width: min(100%, 420px); }
.auth-panel h1 { margin-bottom: var(--s-3); }
.auth-panel .lead { margin-bottom: var(--s-6); font-size: var(--t-body); }

.auth-form { display: grid; gap: var(--s-4); }
.auth-submit { margin-top: var(--s-2); }
.auth-alt { margin-top: var(--s-4); }
.auth-forgot { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.auth-rule { margin: var(--s-6) 0 var(--s-5); }

/* Editorial half: real photography, not a cut-out. A pack shot here either
   shows its white plate or, multiplied onto the red, loses all product
   detail — the photograph carries the panel far better. */
.auth-art {
  position: relative;
  display: none;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 940px) { .auth-art { display: block; } }

.auth-art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    oklch(0.20 0.02 30 / 0.92) 0%,
    oklch(0.20 0.02 30 / 0.55) 40%,
    oklch(0.20 0.02 30 / 0.18) 100%);
}
.auth-art-copy { position: absolute; left: var(--s-7); bottom: var(--s-7); right: var(--s-7); }
.auth-art .kicker { color: var(--gold); }
.auth-art .kicker::before { background: var(--gold); }
.auth-art-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
}

/* -------------------------------------------------------------
   AUTH — application
   ------------------------------------------------------------- */

.apply-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 940px) {
  .apply-layout { grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: var(--s-8); }
  .apply-aside { position: sticky; top: calc(var(--head-h) + var(--s-5)); }
}

.apply-aside { display: grid; gap: var(--s-4); }
.apply-note { padding: var(--s-5); background: var(--surface-raised); border: 1px solid var(--line); }
.apply-note h2 { margin-bottom: var(--s-3); }
.apply-note p { color: var(--ink-2); font-size: var(--t-small); }
.apply-note-dark { background: var(--surface-dark); border-color: var(--surface-dark); }
.apply-note-dark h2 { color: #fff; }
.apply-note-dark p { color: var(--ink-on-dark-2); }
.apply-note-dark a { color: var(--gold); }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--red);
}

.apply-form { display: grid; gap: var(--s-6); }
.apply-set { border: 0; margin: 0; padding: 0; }
.apply-set legend {
  padding: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-fine);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  width: 100%;
  margin-bottom: var(--s-4);
}
.apply-actions { margin-top: var(--s-2); }

.apply-done { padding: var(--s-7) var(--s-6); background: var(--surface-raised); border: 1px solid var(--line); }
.apply-done h2 { margin-bottom: var(--s-4); }
.apply-done p { color: var(--ink-2); max-width: 54ch; margin-bottom: var(--s-6); }

/* -------------------------------------------------------------
   OUR STORY
   ------------------------------------------------------------- */

.story-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.story-hero-inner { padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(2.5rem, 1rem + 4vw, 4rem); }
@media (min-width: 960px) { .story-hero-inner > div { max-width: 60%; } }
.story-hero .lead { margin-top: var(--s-5); }

.story-hero-shot { margin: 0; }
.story-hero-shot img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 7; }
@media (min-width: 960px) {
  .story-hero-shot {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 38%;
  }
  .story-hero-shot img { height: 100%; aspect-ratio: auto; }
}

/* Essay: heading held left, body offset — reads as an article, not a stack. */
.essay { display: grid; gap: var(--s-5) var(--s-8); }
@media (min-width: 900px) {
  .essay { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .essay-lead { position: sticky; top: calc(var(--head-h) + var(--s-6)); }
}
.essay-body { max-width: 62ch; font-size: var(--t-lead); line-height: 1.6; }

.story-lineup { margin: 0; background: var(--surface-raised); border: 1px solid var(--line); }
.story-lineup img { width: 100%; height: auto; object-fit: cover; object-position: center top; aspect-ratio: 16 / 8; }

.brand-count { color: inherit; }

/* -------------------------------------------------------------
   CATEGORY INDEX
   ------------------------------------------------------------- */

.cat-index { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .cat-index { grid-template-columns: repeat(2, 1fr); } }

.cat-index-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-raised);
  text-decoration: none;
  transition: background var(--dur-1) var(--ease);
}
.cat-index-row:hover { background: var(--red-wash); }
.cat-index-shot {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.cat-index-shot img { max-width: 84%; max-height: 84%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cat-index-name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-small); color: var(--ink); }
.cat-index-count { font-size: var(--t-fine); color: var(--ink-3); }
.cat-index-go { color: var(--red); font-weight: 600; }

/* -------------------------------------------------------------
   LEGAL PAGES
   ------------------------------------------------------------- */

.legal { max-width: 68ch; color: var(--ink-2); }
.legal h2, .legal h3 { margin: var(--s-6) 0 var(--s-3); color: var(--ink); }
.legal h2 { font-size: 1.3rem; }
.legal h3 { font-size: 1.1rem; }
.legal p, .legal li { margin-bottom: var(--s-3); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal a { color: var(--red); }

/* -------------------------------------------------------------
   ACCOUNT
   ------------------------------------------------------------- */

.account-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) {
  .account-layout { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-8); }
  .account-nav { position: sticky; top: calc(var(--head-h) + var(--s-6)); }
}
.account-nav { display: grid; gap: 2px; }
.account-nav a {
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 500;
}
.account-nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.account-nav a.is-current { border-left-color: var(--red); color: var(--ink); font-weight: 600; }

.account-panels { display: grid; gap: var(--s-8); }
.account-block h2 { margin-bottom: var(--s-2); }
.account-block > .fine { margin-bottom: var(--s-2); }
.account-form { display: grid; gap: var(--s-4); max-width: 420px; margin-top: var(--s-5); }

.order-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--s-4); }
.order-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--surface-raised);
  font-size: var(--t-small);
}
.order-id { font-weight: 600; }
.order-status {
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: var(--t-fine);
  background: var(--surface-sunk);
  color: var(--ink-2);
}
.order-confirmed { background: oklch(0.92 0.05 145); color: oklch(0.35 0.08 145); }
.order-pending { background: oklch(0.94 0.06 85); color: oklch(0.40 0.09 85); }
.order-rejected { background: var(--red-wash); color: var(--red-deep); }
/* -------------------------------------------------------------
   Admin dashboard
   The dashboard predates the current public shell, so these scoped rules
   translate its existing controls into the same light product language.
   ------------------------------------------------------------- */

.admin-page {
  background: var(--surface);
  color: var(--ink);
}

.admin-page::before,
.admin-page::after {
  display: none;
}

.admin-page .admin-shell {
  width: min(100% - 2.5rem, var(--measure));
  min-height: calc(100vh - var(--head-h));
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0 6rem;
  background: transparent;
}

.admin-page .section-head {
  max-width: 48rem;
  margin: 0 0 2rem;
  text-align: left;
}

.admin-page .section-head h2,
.admin-page .section-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.admin-page .section-head h2::after,
.admin-page .section-head h1::after {
  display: none;
}

.admin-page .section-head p {
  max-width: 58ch;
  margin: .9rem 0 0;
  color: var(--ink-2);
  font-size: var(--t-lead);
  line-height: 1.55;
}

.admin-page .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 1.5rem;
}

.admin-page .btn-white,
.admin-page .btn-primary,
.admin-page .admin-actions label.btn-white {
  min-height: 42px;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-raised);
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.admin-page .btn-white:hover,
.admin-page .admin-actions label.btn-white:hover {
  background: var(--surface-sunk);
  border-color: var(--ink-3);
}

.admin-page .btn-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.admin-page .btn-primary:hover {
  border-color: var(--red-deep);
  background: var(--red-deep);
}

.admin-page button:focus-visible,
.admin-page a:focus-visible,
.admin-page label:focus-within {
  outline: 3px solid color-mix(in srgb, var(--red) 30%, transparent);
  outline-offset: 3px;
}

.admin-page .admin-tabs {
  display: flex;
  gap: 0;
  margin: .5rem 0 2rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.admin-page .admin-tab-link {
  flex: 0 0 auto;
  padding: .85rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.2;
}

.admin-page .admin-tab-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-sunk);
  color: var(--ink);
}

.admin-page .admin-tab-link.active {
  border-color: var(--red);
  background: transparent;
  color: var(--red-deep);
  font-weight: 700;
}

.admin-page .admin-msg {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  color: var(--ink-2);
}

.admin-page .admin-tab-panel {
  margin-top: 0;
}

.admin-page .admin-section-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.admin-page .admin-requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 1rem;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
}

body.admin-page .admin-request-card,
body.admin-page .story-card,
body.admin-page .catalog-status-card,
body.admin-page .catalog-preview-wrap {
  width: 100%;
  max-width: none;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface-raised);
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

body.admin-page .admin-request-card h3,
body.admin-page .story-card h3 {
  margin: 0 0 .8rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
}

body.admin-page .admin-request-card h3 small,
body.admin-page .story-card h3 small {
  color: var(--ink-3);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
}

body.admin-page .admin-request-card p,
body.admin-page .story-card p,
.admin-page .catalog-sync-intro,
.admin-page .catalog-status-line,
.admin-page .catalog-sync-msg {
  color: var(--ink-2);
}

body.admin-page .admin-request-card strong,
body.admin-page .story-card strong {
  color: var(--ink);
}

.admin-page .empty-favorites {
  grid-column: 1 / -1;
  min-height: 8rem;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-3);
  color: var(--ink-3);
  text-align: center;
}

.admin-page .admin-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.admin-page .admin-invoice-input,
.admin-page .admin-invoice-file,
.admin-page input,
.admin-page select,
.admin-page textarea {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
}

.admin-page .order-status {
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  color: var(--ink-2);
}

.admin-page .order-status.order-confirmed {
  border-color: color-mix(in srgb, #197a48 24%, transparent);
  background: color-mix(in srgb, #197a48 9%, white);
  color: #12633a;
}

.admin-page .order-status.order-pending {
  border-color: color-mix(in srgb, #a05a00 24%, transparent);
  background: color-mix(in srgb, #a05a00 9%, white);
  color: #754300;
}

@media (max-width: 720px) {
  .admin-page .admin-shell {
    width: min(100% - 2rem, var(--measure));
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .admin-page .section-head h2,
  .admin-page .section-head h1 {
    font-size: 2.15rem;
  }

  .admin-page .admin-actions > *,
  .admin-page .admin-request-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
