/* ==========================================================================
   FRZE — base styles
   Design tokens, reset, typography, layout primitives, site shell
   (header, footer) and page-level sections. Mobile-first: larger
   breakpoints live in responsive.css. Reusable UI lives in components.css.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --c-primary: #111111;
  --c-primary-hover: #2b2b2b;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6f4;
  --c-bg-deep: #ecebe7;
  --c-text: #171717;
  --c-muted: #6b6b6b;          /* #777 nudged darker to meet WCAG AA on white */
  --c-border: #e8e8e8;
  --c-border-strong: #cfcfcc;
  --c-accent: #b4532a;         /* clay — sale prices, highlights */
  --c-accent-soft: #f6ebe4;
  --c-success: #2f6b3f;
  --c-success-soft: #e9f2eb;
  --c-error: #b42318;
  --c-error-soft: #fdeceb;
  --c-warning-soft: #fbf3df;
  --c-overlay: rgba(17, 17, 17, 0.45);

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --fs-2xl: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* Space (4px scale) */
  --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;

  /* Shape & depth */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 6px 24px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 18px 48px rgba(17, 17, 17, 0.16);

  /* Layout */
  --container: 1320px;
  --container-narrow: 820px;
  --gutter: 1rem;
  --header-h: 64px;
  --section-y: var(--s-8);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }
main:focus { outline: none; }

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

[hidden] { display: none !important; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  color: var(--c-primary);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); letter-spacing: -0.01em; line-height: var(--lh-snug); }
h4 { font-size: var(--fs-base); letter-spacing: 0; }

.display {
  font-size: var(--fs-3xl);
  letter-spacing: -0.04em;
  line-height: 1;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.lead {
  font-size: var(--fs-md);
  color: var(--c-muted);
  line-height: 1.55;
}

.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  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: var(--s-4);
  top: -100px;
  z-index: 1000;
  padding: var(--s-3) var(--s-4);
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding-block: var(--s-7); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-bottom: var(--s-6);
}
.section-head__text { max-width: 40rem; }
.section-head__text h2 { margin-top: var(--s-2); }
.section-head__text p { margin-top: var(--s-3); color: var(--c-muted); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--c-primary);
  color: #f3f3f1;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.announcement__inner {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.announcement__msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--s-4);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.announcement__msg.is-active { opacity: 1; transform: none; }
.announcement__msg a { color: #fff; font-weight: 700; }

/* ---------- Header ---------- */
.site-header-slot { min-height: calc(var(--header-h) + 36px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  height: var(--header-h);
  gap: var(--s-3);
}

.header__start { display: flex; align-items: center; gap: var(--s-1); }
.header__end { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--c-primary);
}
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__word {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

.primary-nav { display: none; }
.primary-nav__list { display: flex; gap: var(--s-1); }
.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--c-text);
  border-radius: var(--r-pill);
  transition: background-color var(--t-fast) var(--ease);
}
.primary-nav__link:hover { background: var(--c-bg-alt); }
.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-primary);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--c-bg-alt); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--account { display: none; }

.count-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid #fff;
}
.count-badge.is-bump { animation: badge-bump 400ms var(--ease); }
@keyframes badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Mobile menu ---------- */
.mobile-menu__nav { display: grid; gap: 2px; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-2);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.mobile-menu__link[aria-current="page"] { color: var(--c-accent); }
.mobile-menu__secondary {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.mobile-menu__secondary a { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.mobile-menu__secondary svg { width: 20px; height: 20px; }

/* ---------- Search overlay ---------- */
.search-panel {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 0s linear 320ms;
  max-height: 100vh;
  overflow-y: auto;
}
.search-panel.is-open {
  transform: none;
  visibility: visible;
  transition: transform 320ms var(--ease), visibility 0s;
}
.search-panel__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 76px;
  border-bottom: 1px solid var(--c-border);
}
.search-panel__bar svg { width: 22px; height: 22px; flex: none; }
.search-panel__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.search-panel__input:focus { outline: none; }
.search-panel__input::placeholder { color: #a5a5a5; }
.search-panel__body { padding-block: var(--s-5) var(--s-6); }
.search-panel__suggest { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.search-results { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.search-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-2);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background-color var(--t-fast);
}
.search-result:hover, .search-result:focus-visible { background: var(--c-bg-alt); }
.search-result img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--c-bg-alt);
}
.search-result__brand { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.search-result__name { font-weight: 700; }
.search-result__price { font-weight: 700; font-size: var(--fs-sm); }
.search-panel__all { margin-top: var(--s-4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-primary);
  color: #d9d9d6;
  font-size: var(--fs-sm);
  padding-top: var(--s-8);
}
.site-footer a { color: #d9d9d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }

.footer__grid { display: grid; gap: var(--s-6); }
.footer__brand .logo { color: #fff; }
.footer__brand p { margin-top: var(--s-4); max-width: 22rem; color: #b9b9b5; }
.footer__heading {
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.footer__links { display: grid; gap: var(--s-3); }
.footer__contact { display: grid; gap: var(--s-3); font-style: normal; }
.footer__contact span { display: block; color: #9d9d99; font-size: var(--fs-xs); }

.social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #3a3a3a;
  border-radius: var(--r-pill);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.social a:hover { border-color: #fff; background: #1f1f1f; text-decoration: none; }
.social svg { width: 18px; height: 18px; }

.footer__bottom {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-block: var(--s-5);
  border-top: 1px solid #2c2c2c;
  font-size: var(--fs-xs);
  color: #9d9d99;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--c-bg-alt);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { margin-top: var(--s-2); }
.page-hero p { margin-top: var(--s-3); max-width: 42rem; color: var(--c-muted); }

.breadcrumb { font-size: var(--fs-sm); color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: #b5b5b2; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--c-text); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  position: relative;
  background: var(--c-bg-alt);
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-7); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; }
.hero__copy .eyebrow { color: var(--c-accent); }
.hero__title { margin-top: var(--s-4); }
.hero__sub { margin-top: var(--s-4); max-width: 30rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-muted);
}
.hero__notes li { display: flex; align-items: center; gap: var(--s-2); }
.hero__notes svg { width: 18px; height: 18px; color: var(--c-primary); }
.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  background: var(--c-bg-deep);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.hero__tag strong { display: block; font-weight: 800; }
.hero__tag span { color: var(--c-muted); font-size: var(--fs-xs); }
.hero__tag svg { width: 18px; height: 18px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-deep);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
  z-index: -2;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
  z-index: -1;
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2);
}
.cat-card__title { display: block; color: #fff; font-size: var(--fs-md); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.cat-card__meta { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 600; opacity: 0.85; }
.cat-card__arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-primary);
  transition: transform var(--t-base) var(--ease);
}
.cat-card__arrow svg { width: 16px; height: 16px; }
.cat-card:hover .cat-card__arrow { transform: translateX(3px); }

/* Brand strip */
.brand-strip {
  border-block: 1px solid var(--c-border);
  padding-block: var(--s-5);
}
.brand-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3) var(--s-7); }
.brand-strip__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); }
.brand-strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); }
.brand-strip__list a {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #8a8a86;
  text-decoration: none;
  transition: color var(--t-fast);
}
.brand-strip__list a:hover { color: var(--c-primary); }

/* Horizontal product rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: var(--s-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-4);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail-controls { display: none; gap: var(--s-2); }

/* Story */
.story { display: grid; gap: var(--s-6); align-items: center; }
.story__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-bg-deep); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body h2 { margin-top: var(--s-3); }
.story__body p { margin-top: var(--s-4); color: var(--c-muted); }
.story__list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.story__list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); }
.story__list strong { display: block; color: var(--c-primary); }
.story__list span { color: var(--c-muted); font-size: var(--fs-sm); }
.story__num { font-weight: 800; color: var(--c-accent); font-size: var(--fs-sm); padding-top: 1px; }

/* Feature row */
.features { display: grid; gap: var(--s-5); }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-border);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--fs-base); }
.feature p { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--c-muted); }

/* Newsletter */
.newsletter {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-7) var(--s-5);
  border-radius: var(--r-xl);
  background: var(--c-primary);
  color: #fff;
}
.newsletter h2 { color: #fff; }
.newsletter p { margin-top: var(--s-3); color: #c9c9c5; }
.newsletter__form { display: grid; gap: var(--s-3); align-content: center; }
.newsletter__row { display: grid; gap: var(--s-3); }
.newsletter .input {
  background: #1d1d1d;
  border-color: #3a3a3a;
  color: #fff;
}
.newsletter .input::placeholder { color: #8f8f8b; }
.newsletter .input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.newsletter .field__error { color: #ffb4a6; }
.newsletter .field.is-invalid .input { border-color: #ff8a75; }
.newsletter .btn--primary { background: #fff; color: var(--c-primary); }
.newsletter .btn--primary:hover { background: #e9e9e6; }
.newsletter .form-note { color: #9d9d99; }
.newsletter :focus-visible { outline-color: #fff; }
.newsletter .notice { background: #1d1d1d; border-color: #3a3a3a; color: #e4e4e1; }

/* ==========================================================================
   Shop
   ========================================================================== */
.shop-layout { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-8); }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.shop-toolbar__count { font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; }
.shop-toolbar__actions { display: flex; align-items: center; gap: var(--s-2); }
.shop-search { position: relative; margin-bottom: var(--s-4); }
.shop-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.shop-search .input { padding-left: 42px; }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.active-filters:empty { display: none; }

.filters { display: grid; gap: 0; }
.filter-group { border-bottom: 1px solid var(--c-border); padding-block: var(--s-4); }
.filter-group:first-child { padding-top: 0; }
.filter-group__title {
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.filter-options { display: grid; gap: var(--s-2); }
.filter-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: var(--s-2); }
.filter-colors { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-3);
}

/* ==========================================================================
   Product detail
   ========================================================================== */
.pdp { display: grid; gap: var(--s-6); padding-block: var(--s-4) var(--s-8); }

.gallery { min-width: 0; }
.gallery__main {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
}
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: start; aspect-ratio: 4 / 5; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--s-3); }
.gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-border-strong);
  transition: width var(--t-base) var(--ease), background-color var(--t-base);
}
.gallery__dot.is-active { width: 22px; background: var(--c-primary); }
.gallery__thumbs { display: none; }
.gallery__badge { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; }

.pdp__info { min-width: 0; }
.pdp__brand { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.pdp__brand a { text-decoration: none; }
.pdp__brand a:hover { color: var(--c-text); text-decoration: underline; }
.pdp__title { margin-top: var(--s-2); font-size: var(--fs-xl); }
.pdp__cat { margin-top: var(--s-2); color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
.pdp__price { margin-top: var(--s-4); }
.pdp__price .price { font-size: var(--fs-lg); }
.pdp__tax { margin-top: 2px; font-size: var(--fs-xs); color: var(--c-muted); }
.pdp__block { margin-top: var(--s-6); }
.pdp__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.pdp__label { font-size: var(--fs-sm); font-weight: 800; }
.pdp__label span { font-weight: 600; color: var(--c-muted); }
.pdp__actions { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); margin-top: var(--s-6); }
.pdp__stock { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); font-weight: 600; }
.pdp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); }
.pdp__stock.is-out::before { background: var(--c-error); }

.info-cards { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.info-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.info-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--c-bg-alt); }
.info-card__icon svg { width: 20px; height: 20px; }
.info-card strong { display: block; }
.info-card p { color: var(--c-muted); margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.spec-table th { width: 40%; color: var(--c-muted); font-weight: 600; padding-right: var(--s-4); }
.spec-table td { font-weight: 600; }

.feature-list { display: grid; gap: var(--s-2); padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 1.5rem; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-accent);
}

.pdp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--gutter);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 24px rgba(17, 17, 17, 0.06);
  transform: translateY(110%);
  transition: transform var(--t-base) var(--ease);
}
.pdp-sticky.is-visible { transform: none; }
.pdp-sticky__info { flex: 1; min-width: 0; }
.pdp-sticky__name { font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.not-found { padding-block: var(--s-9); text-align: center; }
.not-found p { margin-top: var(--s-3); color: var(--c-muted); }
.not-found .btn { margin-top: var(--s-5); }

/* ==========================================================================
   Cart & checkout
   ========================================================================== */
.cart-layout, .checkout-layout { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-8); align-items: start; }

.cart-items { display: grid; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--c-border);
}
.cart-item:first-child { padding-top: 0; }
.cart-item__media { display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-alt); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__top { display: flex; justify-content: space-between; gap: var(--s-3); }
.cart-item__brand { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.cart-item__name { font-weight: 700; text-decoration: none; }
.cart-item__name:hover { text-decoration: underline; }
.cart-item__price { text-align: right; font-weight: 800; white-space: nowrap; }
.cart-item__price .price__mrp { display: block; font-size: var(--fs-xs); }
.cart-item__opts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.cart-item__opts .field { margin: 0; }
.cart-item__opts .select { height: 40px; min-width: 7.5rem; font-size: var(--fs-sm); }
.cart-item__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.cart-item__each { font-size: var(--fs-xs); color: var(--c-muted); }
.cart-item__links { display: flex; gap: var(--s-4); }

.summary {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
}
.summary h2 { font-size: var(--fs-lg); }
.summary__rows { display: grid; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--fs-sm); }
.summary__row { display: flex; justify-content: space-between; gap: var(--s-3); }
.summary__row dt { color: var(--c-muted); font-weight: 600; }
.summary__row dd { font-weight: 700; text-align: right; }
.summary__row--saving dd { color: var(--c-success); }
.summary__row--total {
  padding-top: var(--s-4);
  margin-top: var(--s-2);
  border-top: 1px solid var(--c-border-strong);
  font-size: var(--fs-md);
}
.summary__row--total dt { color: var(--c-text); font-weight: 800; }
.summary__row--total dd { font-weight: 800; }
.summary__note { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-muted); }
.summary .btn { margin-top: var(--s-5); }
.summary__trust { display: grid; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--c-muted); }
.summary__trust li { display: flex; gap: var(--s-2); align-items: center; }
.summary__trust svg { width: 16px; height: 16px; color: var(--c-primary); flex: none; }

.ship-progress { margin-top: var(--s-4); font-size: var(--fs-sm); }
.ship-progress__bar { height: 6px; margin-top: var(--s-2); border-radius: var(--r-pill); background: var(--c-border); overflow: hidden; }
.ship-progress__fill { height: 100%; background: var(--c-primary); border-radius: inherit; transition: width 400ms var(--ease); }

.summary-items { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-border-strong); }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); }
.summary-item__media { position: relative; }
.summary-item__media img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-sm); background: #fff; }
.summary-item__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--c-muted);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
}
.summary-item__name { font-weight: 700; line-height: 1.3; }
.summary-item__meta { color: var(--c-muted); font-size: var(--fs-xs); margin-top: 2px; }
.summary-item__price { font-weight: 700; white-space: nowrap; }

.checkout-section { padding-block: var(--s-6); border-bottom: 1px solid var(--c-border); }
.checkout-section:first-child { padding-top: 0; }
.checkout-section__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.checkout-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  flex: none;
}
.checkout-section h2 { font-size: var(--fs-lg); }
.form-grid { display: grid; gap: var(--s-4); }

.checkout-steps { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.checkout-steps li { display: flex; align-items: center; gap: var(--s-2); }
.checkout-steps li[aria-current="step"] { color: var(--c-text); }
.checkout-steps li[aria-current="step"] span { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.checkout-steps span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--c-border-strong); font-size: 0.6875rem; font-weight: 800;
}

/* ==========================================================================
   Content pages (about, contact, policies, FAQ)
   ========================================================================== */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s-7); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); }
.prose p, .prose ul, .prose ol, .prose table { margin-top: var(--s-3); }
.prose p, .prose li { color: #3b3b3b; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s-2); }
.prose a { font-weight: 600; }
.prose strong { color: var(--c-text); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--s-3); border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.prose th { background: var(--c-bg-alt); font-weight: 700; }
.table-wrap { overflow-x: auto; }

.policy-layout { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); }
.policy-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }
.toc { font-size: var(--fs-sm); }
.toc__title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-3); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-left: 2px solid var(--c-border);
  color: var(--c-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.toc a:hover { color: var(--c-text); }
.toc a.is-active { color: var(--c-text); border-left-color: var(--c-primary); }

.about-hero { padding-block: var(--s-7) var(--s-6); }
.about-hero h1 { max-width: 16ch; margin-top: var(--s-3); }
.about-hero p { max-width: 40rem; margin-top: var(--s-4); }
.about-banner { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-bg-deep); }
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-split { display: grid; gap: var(--s-6); align-items: center; }
.about-split__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-bg-deep); }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
.about-split__body h2 { margin-top: var(--s-3); }
.about-split__body p { margin-top: var(--s-4); color: var(--c-muted); }
.values { display: grid; gap: var(--s-4); }
.value-card {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--c-border);
}
.value-card__num { font-size: var(--fs-xs); font-weight: 800; color: var(--c-accent); letter-spacing: 0.1em; }
.value-card h3 { margin-top: var(--s-3); }
.value-card p { margin-top: var(--s-2); color: var(--c-muted); font-size: var(--fs-sm); }

.contact-layout { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); align-items: start; }
.contact-cards { display: grid; gap: var(--s-3); }
.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  font-style: normal;
}
.contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--c-bg-alt); }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card h2 { font-size: var(--fs-base); }
.contact-card p, .contact-card a { margin-top: 2px; font-size: var(--fs-sm); }
.contact-card p { color: var(--c-muted); }
.contact-card a { display: inline-block; font-weight: 700; }

.faq-layout { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); }
.faq-cats { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2); }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.help-box {
  margin-top: var(--s-8);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
  display: grid;
  gap: var(--s-4);
}
.help-box p { color: var(--c-muted); margin-top: var(--s-2); }

/* Wishlist / account / 404 */
.simple-page { padding-block: var(--s-7) var(--s-8); }
.account-grid { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.account-card {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.account-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.account-card svg { width: 24px; height: 24px; }
.account-card p { color: var(--c-muted); font-size: var(--fs-sm); }

/* Keep grid children from growing past the viewport on small screens */
.faq-layout > *, .policy-layout > *, .contact-layout > * { min-width: 0; }
.pdp__actions .btn--lg { min-width: 0; padding-inline: var(--s-4); }

/* Mobile menu chevrons */
.mobile-menu__link svg { width: 20px; height: 20px; color: var(--c-muted); flex: none; }

/* Filter groups are <fieldset>s: reset browser chrome, keep separators.
   Floating the legend lets it sit inside the padding like a normal heading. */
.filter-group { margin: 0; min-width: 0; border: 0; border-bottom: 1px solid var(--c-border); padding: var(--s-4) 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group__title { float: left; width: 100%; padding: 0; }
.filter-group__title + * { clear: both; }

/* Small screens: even CTA widths, two-column footer links, compact cart options */
.hero__ctas .btn { flex: 1 1 auto; }
.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; }
.cart-item__opts .field { flex: 1 1 110px; }
.cart-item__opts .select { min-width: 0; }

/* Checkout: order total shortcut shown above the form on small screens */
.checkout-mobile-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-bg-alt);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.checkout-mobile-total strong { font-size: var(--fs-base); }
@media (min-width: 900px) {
  .hero__ctas .btn { flex: 0 0 auto; }
  .footer__brand { grid-column: auto; }
  .checkout-mobile-total { display: none; }
}

/* Long email addresses must wrap instead of widening the page on phones */
.footer__contact a, .contact-card a { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .footer__grid > :last-child { grid-column: 1 / -1; }
}
