/* =============================================================
   ALSARAY WHOLESALE — DESIGN SYSTEM
   -------------------------------------------------------------
   Lane: wholesale linesheet × modern commerce. Sturdy, mercantile,
   product-dense. The pack shots are cut out on white, so the working
   surface is light; fighting that would waste the only real asset.

   Colour strategy: Committed. Alsaray red carries whole bands
   (hero rule, story, footer) rather than tinting everything.
   ============================================================= */

@font-face { font-display: swap; font-family: "Archivo"; src: local("Archivo"); }

/* -------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------- */

:root {
  /* Surfaces — off-white tinted toward the brand's own red hue (H 28)
     rather than generic warm beige. */
  --surface:          oklch(0.977 0.005 28);
  --surface-sunk:     oklch(0.955 0.007 28);
  --surface-raised:   oklch(1 0 0);
  --surface-dark:     oklch(0.19 0.014 30);
  --surface-dark-2:   oklch(0.25 0.016 30);

  /* Ink */
  --ink:              oklch(0.20 0.020 30);
  --ink-2:            oklch(0.42 0.016 30);
  /* 0.58 measured 4.02:1 on the surface — below AA for the product
     metadata, breadcrumbs and counts this is used for. */
  --ink-3:            oklch(0.54 0.012 30);
  --ink-on-dark:      oklch(0.97 0.004 28);
  --ink-on-dark-2:    oklch(0.78 0.008 28);

  /* Brand — #c0001a preserved exactly. */
  --red:              #c0001a;
  --red-deep:         oklch(0.36 0.150 28);
  --red-bright:       oklch(0.56 0.210 28);
  --red-on-dark:      oklch(0.72 0.170 28);
  --red-wash:         oklch(0.96 0.020 28);

  /* Supporting — drawn from the logo's gold and from the food itself. */
  --gold:             oklch(0.74 0.100 78);
  --gold-deep:        oklch(0.58 0.090 78);
  --olive:            oklch(0.52 0.060 125);

  /* Lines */
  --line:             oklch(0.88 0.008 28);
  --line-strong:      oklch(0.78 0.010 28);
  --line-on-dark:     oklch(1 0 0 / 0.14);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Source Serif 4", Georgia, serif;

  /* Fluid type scale, ratio ~1.28. Display ceiling stays under 6rem. */
  --t-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  --t-h1:      clamp(2.1rem, 1.4rem + 3.1vw, 3.6rem);
  --t-h2:      clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
  --t-h3:      clamp(1.25rem, 1.08rem + 0.7vw, 1.6rem);
  --t-lead:    clamp(1.06rem, 1rem + 0.35vw, 1.3rem);
  --t-body:    1rem;
  --t-small:   0.9375rem;
  --t-fine:    0.8125rem;

  /* Spacing */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --band: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Measure */
  --head-h: 75px;
  --measure: 1280px;
  --measure-narrow: 62ch;

  /* Radii — tight on inner elements, softer on containers. */
  --r-1: 2px;  --r-2: 4px;  --r-3: 8px;  --r-4: 14px;

  /* Shadows, tinted toward the surface hue rather than pure black. */
  --shadow-1: 0 1px 2px oklch(0.20 0.02 30 / 0.06);
  --shadow-2: 0 2px 6px oklch(0.20 0.02 30 / 0.07), 0 12px 28px oklch(0.20 0.02 30 / 0.06);
  --shadow-3: 0 4px 10px oklch(0.20 0.02 30 / 0.09), 0 24px 56px oklch(0.20 0.02 30 / 0.10);

  /* Z-scale — semantic, never arbitrary. */
  --z-base: 1; --z-dropdown: 50; --z-sticky: 100; --z-drawer: 200; --z-backdrop: 300;
  --z-modal: 400; --z-toast: 500; --z-skip: 600;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 160ms; --dur-2: 260ms; --dur-3: 420ms;
}

/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

::selection { background: var(--red); color: #fff; }

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

.t-display {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h1, .t-h1 { font-size: var(--t-h1); }
h2, .t-h2 { font-size: var(--t-h2); }
h3, .t-h3 { font-size: var(--t-h3); letter-spacing: -0.012em; }

p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure-narrow);
}

.prose { max-width: var(--measure-narrow); color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-4); }

.fine { font-size: var(--t-fine); color: var(--ink-3); }

.num { font-variant-numeric: tabular-nums; }

/* One named kicker used as a deliberate system on section leads only —
   not stacked above every heading. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--t-fine);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-3);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}
@media (max-width: 600px) { .wrap { width: min(100% - 2rem, var(--measure)); } }

.band { padding-block: var(--band); }
.band-tight { padding-block: calc(var(--band) * 0.62); }

/* Dark bands are a deliberate, repeated part of the rhythm — story and
   footer — not a one-off section dropped into a light page. */
.band-dark {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--ink-on-dark); }
.band-dark .lead, .band-dark .prose { color: var(--ink-on-dark-2); }
.band-dark .kicker { color: var(--gold); }
.band-dark .kicker::before { background: var(--gold); }

.band-sunk { background: var(--surface-sunk); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Section lead: heading left, supporting copy offset right. Asymmetric
   by default so sections don't all read as centred stacks. */
.lead-row {
  display: grid;
  gap: var(--s-5) var(--s-8);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: var(--s-7);
}
@media (min-width: 900px) {
  .lead-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .lead-row > :last-child { padding-bottom: 0.35rem; }
}

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */

.btn {
  --btn-bg: var(--red);
  --btn-ink: #fff;
  --btn-line: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.85rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-line);
  border-radius: var(--r-2);
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease);
}
.btn:hover { --btn-bg: var(--red-deep); --btn-line: var(--red-deep); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
}
.btn-ghost:hover { --btn-bg: var(--surface-raised); --btn-line: var(--ink); --btn-ink: var(--ink); }

/* Standalone: works on a bare <button> or <a> without the .btn base. */
.btn-quiet {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
}
.btn-quiet:hover { color: var(--red); text-decoration-color: var(--red); }

.band-dark .btn-ghost {
  --btn-ink: var(--ink-on-dark);
  --btn-line: var(--line-on-dark);
}
.band-dark .btn-ghost:hover { --btn-bg: oklch(1 0 0 / 0.08); --btn-line: var(--ink-on-dark); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* -------------------------------------------------------------
   6. FORMS
   ------------------------------------------------------------- */

.field { display: grid; gap: var(--s-2); }
.field > span, .field-label {
  font-family: var(--font-display);
  font-size: var(--t-fine);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.input, .field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  font-size: var(--t-body);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder {
  color: var(--ink-3);
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px oklch(0.45 0.19 28 / 0.14);
}
.field textarea { min-height: 8rem; resize: vertical; }

.field-error { color: var(--red-deep); font-size: var(--t-fine); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }

/* iOS zooms any focused control under 16px. */
@media (max-width: 768px) {
  .input, .field input, .field select, .field textarea { font-size: 16px; }
}

/* -------------------------------------------------------------
   7. UTILITY
   ------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  left: var(--s-3); top: 0;
  z-index: var(--z-skip);
  padding: 0.8rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-3) var(--r-3);
  transform: translateY(-120%);
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); }

[hidden] { display: none !important; }

/* -------------------------------------------------------------
   8. MOTION
   ------------------------------------------------------------- */

/* Content is visible by default. Only elements JS has confirmed are below the
   fold get .will-reveal, and a failsafe clears it regardless — a reveal must
   never be the thing that decides whether content renders. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  }
  .will-reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------
   9. HEADER / NAVIGATION
   ------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(0.977 0.005 28 / 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--head-h);
}

.brand-lockup { display: flex; align-items: center; flex: 0 0 auto; }
.brand-lockup img { height: 46px; width: auto; }

.nav-main {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.55rem);
}
@media (min-width: 1080px) { .nav-main { display: flex; } }

.nav-main a {
  position: relative;
  padding: 0.4rem 0;
  font-family: var(--font-display);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease);
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav-main a:hover { color: var(--ink); }
.nav-main a:hover::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-main a[aria-current="page"]::after { transform: scaleX(1); }

.head-tools { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }
@media (min-width: 1080px) { .head-tools { margin-inline-start: var(--s-4); } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.icon-btn:hover { background: var(--surface-sunk); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }

/* Authenticated account access stays recognizable on every page. */
.icon-btn.account-btn {
  width: auto;
  padding-inline: 10px 12px;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}
.icon-btn.account-btn [data-account-label] {
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1;
}
@media (max-width: 520px) {
  .icon-btn.account-btn { width: 42px; padding-inline: 0; }
  .icon-btn.account-btn [data-account-label] { display: none; }
}

.head-cta { display: none; }
@media (min-width: 1080px) { .head-cta { display: inline-flex; } }

.menu-btn { display: inline-flex; }
@media (min-width: 1080px) { .menu-btn { display: none; } }

/* Mobile drawer — a composed panel, not a list dumped in a sheet. */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 400px);
  z-index: var(--z-drawer);
  background: var(--surface-raised);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform var(--dur-3) var(--ease);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.drawer-nav { padding: var(--s-4) var(--s-5); display: grid; gap: 2px; }
.drawer-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.drawer-nav a span { font-family: var(--font-body); font-size: var(--t-fine); font-weight: 400; color: var(--ink-3); }
.drawer-nav a:hover { color: var(--red); }
.drawer-foot { margin-top: auto; padding: var(--s-5); background: var(--surface-sunk); display: grid; gap: var(--s-3); }

.backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-backdrop);
  background: oklch(0.20 0.02 30 / 0.42);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { z-index: calc(var(--z-backdrop) + 1); }

body.nav-open { overflow: hidden; }

/* -------------------------------------------------------------
   10. SEARCH OVERLAY
   ------------------------------------------------------------- */

.search-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: oklch(0.20 0.02 30 / 0.45);
  backdrop-filter: blur(3px);
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(1rem, 8vh, 7rem) 1rem 1rem;
}
.search-panel[hidden] { display: none !important; }

.search-card {
  width: min(100%, 680px);
  background: var(--surface-raised);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.search-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.search-bar input {
  flex: 1; border: 0; background: transparent; font-size: 1.15rem; padding: 0;
}
.search-bar input:focus { outline: none; box-shadow: none; }

.search-results { max-height: min(58vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.search-hit {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  width: 100%;
  padding: var(--s-3) var(--s-5);
  background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; text-decoration: none;
}
.search-hit:hover, .search-hit:focus-visible { background: var(--surface-sunk); }
.search-hit img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: var(--r-2); }
.search-hit-name { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.search-hit-meta { display: block; font-size: var(--t-fine); color: var(--ink-3); margin-top: 0.15rem; }
.search-hit > :last-child { align-self: center; white-space: nowrap; }

/* The overlay supplies its own close control; the UA's search clear button
   sitting next to it reads as two X's. */
.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-empty { padding: var(--s-6) var(--s-5); color: var(--ink-3); text-align: center; }

/* -------------------------------------------------------------
   11. PRODUCT CARD
   ------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  /* auto-fill leaves dead cells when the item count doesn't divide evenly;
     the featured row is sized so eight items fill exactly two rows. */
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* No border/shadow per item — the grid's hairlines do the separating,
   which reads like a printed linesheet rather than floating cards. */
.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface-raised);
  padding: var(--s-4);
  transition: background var(--dur-1) var(--ease);
}
.p-card:hover { background: var(--red-wash); }

.p-shot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.p-shot img {
  width: 82%;
  height: 82%;
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  transition: transform var(--dur-3) var(--ease);
}
.p-card:hover .p-shot img { transform: scale(1.04); }

.p-shot-empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, oklch(0.96 0 0), oklch(0.96 0 0) 10px, oklch(0.93 0 0) 10px, oklch(0.93 0 0) 20px);
  color: oklch(0.48 0 0);
  font-size: var(--t-fine);
  font-weight: 600;
  text-align: center;
  padding: var(--s-3);
}

.p-brand {
  font-family: var(--font-display);
  font-size: var(--t-fine);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.15rem;
}
.p-name {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.34;
  color: var(--ink);
  margin: 0 0 var(--s-2);
  overflow-wrap: anywhere;
}
.p-name a { text-decoration: none; }
.p-name a::after { content: ""; position: absolute; inset: 0; }
.p-meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 0 var(--s-3);
  font-size: var(--t-fine);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------
   12. CATEGORY FEATURE
   ------------------------------------------------------------- */

.cat-rail {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* The pack shots are white-background, so the tile IS white and the product
   sits in it at size. Label lives in a solid bar beneath rather than under a
   gradient scrim that would grey the packaging out. */
.cat-tile {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.cat-tile:hover { border-color: var(--ink); transform: translateY(-3px); }

.cat-shot {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: var(--s-5);
}
.cat-shot img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--dur-3) var(--ease);
}
.cat-tile:hover .cat-shot img { transform: scale(1.06); }

.cat-label {
  padding: var(--s-4) var(--s-5);
  background: var(--surface-raised);
  color: var(--ink);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}
.cat-label h3 { color: var(--ink); font-size: 1.06rem; }
.cat-label .fine { color: var(--ink-2); margin-top: 0.15rem; }
.cat-label-go { color: var(--red); font-family: var(--font-display); font-weight: 600; font-size: var(--t-small); }

/* Rhythm rather than six identical boxes: two wide, three standard, then a
   full-width tile that closes the row instead of orphaning one. */
@media (min-width: 960px) {
  .cat-rail { grid-template-columns: repeat(6, 1fr); }
  .cat-tile { grid-column: span 2; }
  .cat-tile:first-child,
  .cat-tile:nth-child(2) { grid-column: span 3; }
  .cat-tile:first-child .cat-shot,
  .cat-tile:nth-child(2) .cat-shot { min-height: 250px; }
  .cat-tile:first-child .cat-shot img,
  .cat-tile:nth-child(2) .cat-shot img { max-height: 250px; }

  .cat-tile:last-child {
    grid-column: span 6;
    grid-template-rows: none;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    align-items: center;
  }
  .cat-tile:last-child .cat-shot { min-height: 170px; }
  .cat-tile:last-child .cat-shot img { max-height: 170px; }
  .cat-tile:last-child .cat-label {
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-6);
  }
  .cat-tile:last-child .cat-label h3 { font-size: 1.5rem; }
}

/* -------------------------------------------------------------
   13. BRAND FEATURE
   ------------------------------------------------------------- */

.brand-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }

.brand-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-4);
  background: var(--surface);
  text-decoration: none;
  transition: background var(--dur-1) var(--ease);
}
.brand-row:hover { background: var(--surface-raised); }
.brand-row img { max-height: 52px; width: auto; object-fit: contain; }
.brand-row h3 { font-size: 1.15rem; }
.brand-row p { color: var(--ink-2); font-size: var(--t-small); margin-top: 0.15rem; }
.brand-row-go { font-family: var(--font-display); font-size: var(--t-small); font-weight: 600; color: var(--red); white-space: nowrap; }

@media (max-width: 720px) {
  .brand-row { grid-template-columns: 96px minmax(0, 1fr); row-gap: var(--s-3); }
  .brand-row-go { grid-column: 2; }
}

/* Flagship gets elevated treatment rather than an identical row. */
.brand-flag {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 820px) { .brand-flag { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.brand-flag h3 { color: var(--ink); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.brand-flag p { color: var(--ink-2); margin-top: var(--s-3); }
.brand-flag .brand-count { margin-top: var(--s-4); color: var(--red-deep); font-weight: 600; }
.brand-flag-mark { background: var(--surface-sunk); padding: var(--s-6); display: grid; place-items: center; }
.brand-flag-mark img { max-height: 110px; width: auto; }

/* -------------------------------------------------------------
   14. CATALOG FEATURE
   ------------------------------------------------------------- */

.catalog-feature {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 860px) { .catalog-feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

.catalog-cover {
  position: relative;
  background: var(--red);
  aspect-ratio: 8.5 / 11;
  display: grid;
  place-items: center;
  padding: var(--s-6);
  box-shadow: var(--shadow-3);
}
.catalog-cover img { max-width: 78%; height: auto; }
.catalog-cover::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid oklch(1 0 0 / 0.22);
  margin: var(--s-3);
  pointer-events: none;
}

/* -------------------------------------------------------------
   15. VIDEO FEATURE
   ------------------------------------------------------------- */

.video-lead { position: relative; background: #000; overflow: hidden; }
.video-lead video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

.video-side { display: grid; gap: var(--s-4); }
.video-thumb {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.video-thumb video, .video-thumb .video-still {
  width: 132px; aspect-ratio: 4 / 3; object-fit: cover; background: #000;
}
.video-thumb h3 { font-family: var(--font-display); font-size: var(--t-small); font-weight: 600; }
.video-thumb[aria-current="true"] h4 { color: var(--red); }

/* -------------------------------------------------------------
   16. QUOTE / REVIEW
   ------------------------------------------------------------- */

.quote-wall { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 2px solid var(--ink);
}
.quote blockquote { margin: 0; font-size: var(--t-lead); line-height: 1.45; color: var(--ink); font-family: var(--font-serif); }
.quote figcaption { margin-top: auto; font-size: var(--t-fine); color: var(--ink-3); }
.quote-stars { color: var(--gold-deep); letter-spacing: 0.14em; font-size: var(--t-small); }

/* -------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------- */

.site-foot { background: var(--surface-dark); color: var(--ink-on-dark-2); }
.foot-top {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8) var(--s-7);
}
@media (min-width: 880px) { .foot-top { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.9fr)); } }

.foot-col h4 {
  font-size: var(--t-fine);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-on-dark);
  margin-bottom: var(--s-4);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.foot-col a { color: var(--ink-on-dark-2); text-decoration: none; font-size: var(--t-small); }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; }

.foot-mark img { height: 54px; width: auto; margin-bottom: var(--s-4); }
.foot-contact { display: grid; gap: var(--s-2); font-size: var(--t-small); }
.foot-contact a { color: var(--ink-on-dark); text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.foot-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-on-dark);
  font-size: var(--t-fine);
}
.foot-bottom a { color: var(--ink-on-dark-2); }

.social-row { display: flex; gap: var(--s-3); }
.social-row a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-2);
  color: var(--ink-on-dark);
  transition: background var(--dur-1) var(--ease);
}
.social-row a:hover { background: oklch(1 0 0 / 0.1); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

/* Featured row on the homepage: larger shots, four across on desktop. */
.product-grid-feature { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 1100px) { .product-grid-feature { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { .product-grid-feature { grid-template-columns: repeat(2, 1fr); } }
