/* SUNDAY Hair Co. — luxury DTC theme */
:root {
  --ink: #1f1814;
  --ink-soft: #3a2f29;
  --muted: #7a6c63;
  --line: rgba(31, 24, 20, 0.12);
  --line-soft: rgba(31, 24, 20, 0.08);

  /* Hero wall: top-left + bottom-left swatches from hero-landscape.png (12%×20% corners) */
  --hero-grad-tl: #efe1d8;
  --hero-grad-bl: #e9d7cc;
  --page: var(--hero-grad-tl);
  --page-warm: #f0e3d8;
  --cream: var(--hero-grad-tl);
  --cream-soft: #fbf6ee;
  --white: #ffffff;

  --hero-bg: var(--hero-grad-tl);
  --strip-bg: #ede2d2;
  --section-cream: #f2e8d9;
  --match-bg: #e7dccc;

  --brown: #3d2a23;
  --brown-deep: #2a1c17;

  --accent: #d6683e;
  --accent-deep: #b8552e;
  --accent-pale: #e8a882;
  --accent-glow: rgba(214, 104, 62, 0.16);

  --font-display: "DM Serif Display", "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 158px;
  /* Shop dropdown top (JS overwrites when open, min ~1101px width) */
  --shop-panel-top: 9rem;
  --container: 1280px;
}

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

/* Remove tap highlight on all clickable elements */
a, button, input, select, textarea, [role="button"], [tabindex] {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent-deep);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

h1.display {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
}

h2.display {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* ======== Announcement ======== */
.announcement {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
}

/* ======== Header (transparent — sits on page/hero, no bar or seam) ======== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: transparent;
  border-bottom: none;
  transition: background 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(239, 225, 216, 0.82);
  background: color-mix(in srgb, var(--hero-grad-tl) 82%, transparent);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1400px, 94vw);
  margin-inline: auto;
  min-height: var(--header-h);
  gap: 1rem;
}

.primary-nav {
  justify-self: start;
}

.primary-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-deep);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Shop mega dropdown (desktop) */
button.nav-link {
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

button.nav-link::after {
  display: none;
}

.nav-item--shop {
  position: relative;
}

.nav-link--shop .nav-link-caret {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.2s var(--ease-out);
  opacity: 0.75;
}

.nav-item--shop.is-open .nav-link--shop .nav-link-caret {
  transform: rotate(180deg);
}

.nav-dropdown[hidden] {
  display: none !important;
}

.nav-dropdown {
  z-index: 5001;
  padding-top: 0.35rem;
  box-sizing: border-box;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 12px 32px rgba(30, 24, 20, 0.08);
}

.nav-dropdown-panel {
  width: 100%;
  position: static;
  background: var(--cream);
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.nav-dropdown-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, min(380px, 34vw));
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: start;
  width: min(1180px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 1.5rem max(
    env(safe-area-inset-left, 0px),
    calc((100vw - min(1400px, 94vw)) / 2)
  );
  padding-right: max(env(safe-area-inset-right, 0px), clamp(1rem, 3vw, 2rem));
  box-sizing: border-box;
}

.nav-dropdown-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  -webkit-tap-highlight-color: transparent;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  text-align: left;
  box-sizing: border-box;
}

.nav-dropdown-media {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.nav-dropdown-media-link {
  display: block;
  line-height: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 24, 20, 0.12);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.nav-dropdown-media-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 24, 20, 0.16);
}

.nav-dropdown-media-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 24, 20, 0.16);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-dropdown-slides {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1024 / 682;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-soft);
}

.nav-dropdown-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.nav-dropdown-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.nav-dropdown-media-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 380px;
  width: 100%;
}

.nav-dropdown-copy {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.nav-dropdown-copy > p {
  margin: 0 0 0.65rem;
}

.nav-dropdown-tagline {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.nav-dropdown-copy-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.35rem 0 0.45rem;
}

.nav-dropdown-benefits {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-dropdown-benefits li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.nav-dropdown-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-dropdown-outro {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink);
  margin: 0.25rem 0 0;
}

/* Desktop: pin menu to header bottom + viewport; avoids broken 100vw breakout from a narrow <li> */
@media (min-width: 1101px) {
  .nav-item--shop {
    position: static;
  }

  .nav-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--shop-panel-top, 9rem);
    width: 100%;
    max-width: 100%;
    max-height: min(80vh, calc(100dvh - var(--shop-panel-top, 6rem) - 0.75rem));
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .nav-dropdown-panel {
    width: 100%;
    min-height: 0;
    background: var(--cream);
  }

  .nav-dropdown-slides {
    max-height: min(360px, calc(80vh - var(--shop-panel-top, 6rem) - 3rem));
    width: 100%;
    max-width: min(380px, 100%);
  }
}

.nav-dropdown-viewall {
  grid-column: 1 / -1;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent !important;
}
.nav-dropdown-viewall-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  user-select: none;
}
.nav-dropdown-viewall-link:hover {
  color: var(--accent-deep);
}
.nav-dropdown-viewall-link:active,
.nav-dropdown-viewall-link:focus {
  color: var(--accent-deep);
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.nav-dropdown-viewall-link:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-dropdown-head {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  margin: 0 0 0.65rem;
  padding: 0;
  line-height: 1.2;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.5rem;
}

.nav-dropdown-group {
  -webkit-tap-highlight-color: transparent;
}

.nav-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-dropdown-list a {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: color 0.2s var(--ease-out);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.nav-dropdown-list a:active {
  background: transparent;
}

.nav-dropdown-list a:hover,
.nav-dropdown-list a:focus-visible {
  color: var(--accent-deep);
  outline: none;
}

.nav-dropdown-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logo {
  justify-self: center;
  display: flex;
  align-items: center;
  line-height: 0;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.logo:focus:not(:focus-visible) {
  outline: none;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 1024px master; large display = downscale, cleaner than tiny upsample */
.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  vertical-align: top;
  image-rendering: auto; /* smooth band-limited downscale of 1024px art */
  -ms-interpolation-mode: bicubic;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.logo-img--header {
  height: clamp(5.25rem, 10vw, 8.5rem);
  max-width: min(720px, 92vw);
}

.logo-img--footer {
  height: clamp(3.75rem, 6.25vw, 5.5rem);
  max-width: min(500px, 85vw);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.icon-btn:hover {
  background: var(--accent-glow);
  color: var(--accent-deep);
}

.cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(30, 24, 20, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* ======== Buttons ======== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.btn:focus {
  outline: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(214, 104, 62, 0.2);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(214, 104, 62, 0.3);
}
.btn-primary:active {
  background: var(--accent-deep);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(214, 104, 62, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-outline:active {
  background: var(--ink);
  color: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--brown-deep);
}
.btn-outline-light:active {
  background: var(--cream);
  color: var(--brown-deep);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2.4rem;
}

/* Hero Shade Finder — readable label (global .btn is all-caps). */
#hero-cta-shade-finder.hero-cta-shade-finder,
#hero-cta-shade-finder .hero-cta-shade-label {
  text-transform: none !important;
  letter-spacing: 0.04em;
}

#hero-cta-shade-finder.hero-cta-shade-finder {
  font-size: 0.78rem;
  font-weight: 600;
}

/* ======== Eyebrow ======== */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

/* ======== Hero — landscape art: full image + copy in left half (no narrow strip) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--hero-grad-tl);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  min-height: min(calc(100vw * 622 / 1024), 92vh);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-base {
  position: absolute;
  inset: 0;
  background-color: var(--hero-grad-tl);
  background-image: url("../assets/hero-landscape.png"),
    linear-gradient(180deg, var(--hero-grad-tl) 0%, var(--hero-grad-bl) 100%);
  background-size: contain, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: right center, 0 0;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: 1;
}

.hero-bg-video.is-visible {
  opacity: 1;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: min(1400px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem);
  min-height: 0;
  flex: 1 0 auto;
  /* Copy uses full left half; right column is empty (photo shows behind) */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.hero-inner .hero-copy {
  grid-column: 1;
  min-width: 0;
  max-width: min(40rem, 100%);
  padding-right: clamp(0.5rem, 1.5vw, 1.25rem);
}

.hero-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 0.99;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #141210;
  margin: 0 0 1.1rem;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 0.5rem;
}

.eyebrow--hero {
  color: var(--muted);
  font-weight: 500;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: stretch;
  max-width: 100%;
  gap: 0;
  flex-wrap: nowrap;
}

.hero-trust li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 0.55rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
  color: var(--ink-soft);
}

.hero-trust li:not(:last-child) {
  border-right: 1px solid var(--line);
}

.hero-trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ======== Trust strip ======== */
.trust-strip {
  background: var(--strip-bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.trust-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}

/* ======== Help quick links (homepage) ======== */
.help-quick {
  background: var(--bg-soft, var(--cream));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.help-quick-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.help-quick-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.help-quick-inner a:hover,
.help-quick-inner a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink-soft);
  outline: none;
}

.help-quick-sep {
  color: var(--muted);
  user-select: none;
}

/* ======== Platform depth (homepage) ======== */
.platform-depth {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line-soft, var(--line));
  border-bottom: 1px solid var(--line-soft, var(--line));
}

.platform-depth-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.platform-depth-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.platform-depth-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .platform-depth-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .platform-depth-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.depth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.depth-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}

.depth-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.depth-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.ext-guide-cta {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

/* ======== Hair guide (long-form) ======== */
.guide-article .static-prose--guide {
  max-width: 40rem;
}

.guide-toc {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream-soft);
}

.guide-toc-title,
.guide-more-title,
.guide-accordions .guide-toc-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.guide-toc a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-toc a:hover {
  color: var(--ink);
}

.guide-sections {
  padding-top: 0;
}

.guide-section {
  scroll-margin-top: 5.25rem;
}

.guide-section h2 {
  margin-top: 2.5rem;
}

.guide-section:first-of-type h2 {
  margin-top: 0;
}

.guide-more {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft, var(--line));
}

.guide-more-title {
  margin-bottom: 0.5rem;
}

.guide-more p {
  margin: 0;
  font-size: 0.92rem;
}

.guide-more a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-more a:hover {
  color: var(--ink);
}

.guide-more-row {
  font-weight: 600;
}

.guide-back-top {
  margin-top: 1.25rem;
}

.guide-accordions {
  margin-top: 2rem;
}

.guide-details {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

.guide-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  list-style: none;
}

.guide-details summary::-webkit-details-marker {
  display: none;
}

.guide-details summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

.guide-details[open] summary::after {
  content: "−";
}

.guide-details p {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ======== Haircare banner (dark brown) ======== */
.hc-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--brown);
  color: var(--cream);
}

.hc-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.hc-copy {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hc-copy .eyebrow {
  color: var(--accent-pale);
}

.hc-copy h2.display {
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.hc-copy p {
  color: rgba(255, 244, 232, 0.78);
  max-width: 28rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

/* ======== Hair Extensions deep section ======== */
.ext-section {
  background: var(--section-cream);
}

.ext-inner {
  width: min(var(--container), 94vw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ext-copy {
  max-width: 30rem;
}

.ext-copy p {
  color: var(--ink-soft);
  max-width: 24rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.ext-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
}

.ext-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.35;
}

.ext-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--white);
}

.ext-image img {
  width: 100%;
  aspect-ratio: 681 / 1024;
  object-fit: cover;
  border-radius: 4px;
}

/* ======== Interactive 360° hair spin viewer (homepage) ======== */
.hair-viewer-wrap {
  display: block;
  width: 100%;
  max-width: min(480px, 92%);
  margin-inline: auto;
}

.hair-viewer-wrap:not(.is-ready) .hair-viewer-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.hair-viewer-wrap:not(.is-ready) .hair-viewer-canvas-host {
  display: none;
}

.hair-viewer-wrap.is-ready .hair-viewer-fallback {
  display: none;
}

.hair-viewer-canvas-host {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(165deg, #ece4dc 0%, #ddd4cc 100%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(31, 24, 20, 0.07);
}

.hair-viewer-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.hair-viewer-canvas-host canvas:active {
  cursor: grabbing;
}

.hair-viewer-spin-bar {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  background: rgba(20, 16, 14, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.hair-viewer-canvas-host:hover .hair-viewer-spin-bar,
.hair-viewer-canvas-host:focus-within .hair-viewer-spin-bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (hover: none) {
  .hair-viewer-canvas-host:active .hair-viewer-spin-bar,
  .hair-viewer-canvas-host:focus-within .hair-viewer-spin-bar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.hair-viewer-play-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent, #c87850);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hair-viewer-play-toggle:hover {
  transform: scale(1.06);
  background: #fff;
}

.hair-viewer-play-toggle .hair-viewer-icon-play {
  display: none;
}

.hair-viewer-play-toggle.is-paused .hair-viewer-icon-pause {
  display: none;
}

.hair-viewer-play-toggle.is-paused .hair-viewer-icon-play {
  display: block;
}

.hair-viewer-spin-slider {
  flex: 1;
  display: block;
  width: 100%;
  height: 0.24rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  outline: none;
  cursor: ew-resize;
}

.hair-viewer-spin-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: var(--accent, #c87850);
  box-shadow: 0 2px 6px rgba(20, 16, 14, 0.3);
  cursor: grab;
}

.hair-viewer-spin-slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: var(--accent, #c87850);
  box-shadow: 0 2px 6px rgba(20, 16, 14, 0.3);
  cursor: grab;
}

.hair-viewer-spin-slider:active::-webkit-slider-thumb,
.hair-viewer-spin-slider:active::-moz-range-thumb {
  cursor: grabbing;
}

.hair-viewer-spin-slider:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.hair-viewer-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hair-viewer-control-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hair-viewer-control-row--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.hair-viewer-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hair-viewer-label strong {
  color: var(--accent);
  font-weight: 600;
}

.hair-viewer-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.hair-viewer-pills--wrap {
  flex-wrap: wrap;
  overflow: visible;
}

.hair-viewer-pills::-webkit-scrollbar {
  display: none;
}

.hair-viewer-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.hair-viewer-pill:hover {
  border-color: var(--accent);
}

.hair-viewer-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.hair-viewer-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hair-viewer-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  background: var(--swatch, #ccc);
  cursor: pointer;
  padding: 0;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.hair-viewer-swatch:hover {
  transform: scale(1.08);
}

.hair-viewer-swatch.is-active {
  box-shadow: 0 0 0 2px var(--ink);
  transform: scale(1.1);
}

.hair-viewer-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 8rem;
}

.hair-viewer-select {
  border: 1px solid var(--line);
  background: var(--cream-soft);
  border-radius: 6px;
  padding: 0.42rem 0.55rem;
  font-size: 0.82rem;
  color: var(--ink);
}

.hair-viewer-wet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.hair-viewer-wind {
  width: 100%;
  accent-color: var(--accent);
}

@media (max-width: 900px) {
  .hair-viewer-canvas-host {
    aspect-ratio: 1 / 1;
  }
}

/* ======== Find perfect match ======== */
.match-section {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--match-bg);
}

.match-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.match-copy {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--page-warm);
}

.match-copy h2.display {
  margin-bottom: 1rem;
}

.match-copy p {
  color: var(--ink-soft);
  max-width: 26rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

/* ======== Real Results ======== */
.results-section {
  background: var(--cream);
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.result-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.result-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.result-card:hover .result-media img {
  transform: scale(1.03);
}

.results-cta {
  text-align: center;
  margin: 2rem 0 0;
}

.text-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

/* ======== Best Sellers ======== */
.bestsellers-section {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}

.bestsellers-section#bestsellers .bestsellers-hero-title {
  font-size: clamp(1.05rem, 2.2vw, 1.52rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: clamp(0.75rem, 2vw, 1.15rem);
  text-wrap: balance;
}

.bestsellers-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bestsellers-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.25rem;
  scroll-padding-right: 0.25rem;
  padding: 0.25rem 0 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bestsellers-grid::-webkit-scrollbar {
  display: none;
}

.bestsellers-grid .product-card {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 280px);
  max-width: min(280px, 82vw);
  scroll-snap-align: start;
}

.bestsellers-grid .bestsellers-coming-soon,
.bestsellers-grid .bestsellers-empty,
.bestsellers-grid .bestsellers-loading {
  flex: 1 1 auto;
  min-width: 100%;
  box-sizing: border-box;
}

.product-card {
  background: var(--cream-soft);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.product-card:hover {
  box-shadow: 0 14px 30px rgba(45, 32, 25, 0.08);
  transform: translateY(-2px);
}

.product-card-link {
  display: block;
  padding: 0;
  color: inherit;
}

.product-card-link:hover {
  color: inherit;
}

.product-card-actions {
  padding: 0 1rem 1.05rem;
}

.product-card-atc {
  width: 100%;
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  padding: 0.62rem 0.75rem !important;
}

.product-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f0eb;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-card-trending {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  padding: 1rem 1rem 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ink);
}

.product-card-trending-star {
  flex-shrink: 0;
  margin-top: 0.06rem;
  color: var(--accent);
  display: flex;
  line-height: 0;
}

.product-card-trending-text {
  flex: 1;
  min-width: 0;
}

.product-card-trending-n {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.product-card h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.4rem;
  padding: 0 1rem;
  line-height: 1.4;
}

.product-price {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4rem;
  padding: 0 1rem 0.75rem;
}

.product-rating {
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rating-count {
  color: var(--muted);
  font-size: 0.7rem;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ======== Footer ======== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
}

.footer-brand .logo-footer {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 260px;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--accent-deep);
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  max-width: 320px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--muted);
}

.newsletter-form button {
  width: 44px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out);
}

.newsletter-form button:hover {
  background: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 1rem 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-legal a {
  color: var(--ink-soft);
}

.footer-legal a:hover {
  color: var(--accent-deep);
}

.newsletter-form.is-submitted {
  pointer-events: none;
  opacity: 0.85;
}

.newsletter-form.is-submitted input,
.newsletter-form.is-submitted button {
  background: #e8e0d8;
}

.newsletter-status {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--accent-deep);
  font-weight: 500;
}

/* Search (header) */
.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(31, 24, 20, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.search-open {
  overflow: hidden;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 6100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15vh 1.25rem 1.25rem;
  pointer-events: none;
}

.search-dialog:not([hidden]) {
  pointer-events: auto;
}

.search-dialog[hidden] {
  display: none;
}

.search-backdrop[hidden] {
  display: none;
}

.search-dialog-inner {
  width: 100%;
  max-width: 28rem;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1.5rem 3rem rgba(31, 24, 20, 0.15);
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
  pointer-events: auto;
}

.search-dialog-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}

.search-dialog-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.search-input::placeholder {
  color: #9a8f88;
}

.search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent-pale);
}

.search-results {
  margin-top: 1rem;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}

.search-results-heading {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #7c6f66);
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results-link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.search-results-link:hover {
  color: var(--accent);
}

.search-results-link small {
  color: var(--muted, #7c6f66);
  white-space: nowrap;
}

.search-results-empty {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #7c6f66);
}

.search-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  margin: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-close:hover {
  color: var(--accent-deep);
}

/* Community welcome (first visit) */
body.community-welcome-open {
  overflow: hidden;
}

.community-welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: rgba(31, 24, 20, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.community-welcome-backdrop[hidden] {
  display: none;
}

.community-welcome {
  position: fixed;
  inset: 0;
  z-index: 8600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(6vh, 3rem) 1rem;
  pointer-events: none;
}

.community-welcome:not([hidden]) {
  pointer-events: auto;
}

.community-welcome[hidden] {
  display: none;
}

.community-welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(44rem, 100%);
  max-height: min(88vh, 40rem);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 1.5rem 4rem rgba(31, 24, 20, 0.2);
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .community-welcome:not([hidden]) .community-welcome-panel {
    animation: community-welcome-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes community-welcome-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.community-welcome-pattern {
  min-height: 100%;
  background-color: #f2e1d9;
  background-image: url("../assets/sunday-community-pattern.png");
  background-size: cover;
  background-position: center;
}

.community-welcome-copy {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.35rem) clamp(1.25rem, 4vw, 2.25rem) clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.community-welcome-x {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  margin: 0;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-welcome-x:hover {
  color: var(--accent-deep);
}

.community-welcome-x:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.community-welcome-eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8867a;
}

.community-welcome-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  max-width: 16ch;
}

.community-welcome-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32rem;
}

.community-welcome-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: 18rem;
}

.community-welcome-actions .btn {
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 0.72rem 1rem;
}

.community-welcome-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.community-welcome-ig-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-welcome-account {
  font-size: 0.8rem;
}

.community-welcome-later {
  margin: 0.25rem 0 0;
  padding: 0.45rem 0;
  align-self: flex-start;
  font: inherit;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}

.community-welcome-later:hover {
  color: var(--accent-deep);
}

.community-welcome-later:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.community-welcome-foot {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}

.community-welcome-jump {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.community-welcome-jump:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 700px) {
  .community-welcome-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, 22vw) auto;
    max-height: none;
  }

  .community-welcome-pattern {
    min-height: 120px;
  }

  .community-welcome-heading {
    max-width: none;
  }
}

/* Static / policy pages (trust & ops) */
body.page-static {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-static main {
  flex: 1 0 auto;
}

.site-header--sub {
  position: relative;
  background: color-mix(in srgb, var(--hero-grad-tl) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner--sub {
  min-height: 88px;
  grid-template-columns: 1fr auto 1fr;
  width: min(1400px, 94vw);
}

.header-inner--sub .header-actions {
  justify-self: end;
}

.sub-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sub-nav a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Shop dropdown nav for sub-pages */
.sub-nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sub-nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0;
  cursor: pointer;
}
.sub-nav-main:hover { color: var(--accent); }
.sub-nav-caret {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.sub-nav-wrap:hover .sub-nav-caret,
.sub-nav-wrap.is-open .sub-nav-caret { transform: rotate(180deg); }
.sub-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.sub-nav-wrap:hover .sub-nav-dropdown,
.sub-nav-wrap.is-open .sub-nav-dropdown {
  opacity: 1;
  visibility: visible;
}
.sub-nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.sub-nav-dropdown a:hover {
  background: var(--cream);
  color: var(--accent);
}

@media (max-width: 640px) {
  .sub-nav-wrap {
    position: static;
  }
  .sub-nav-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    min-width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 0 2rem;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .sub-nav-wrap:hover .sub-nav-dropdown,
  .sub-nav-wrap.is-open .sub-nav-dropdown {
    transform: translateY(0);
  }
  .sub-nav-dropdown a {
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
  }
}

.static-wrap {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.static-prose {
  max-width: 38rem;
  margin-inline: auto;
  width: min(38rem, 92vw);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}

.static-prose h1,
.static-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.static-hero p.lead {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.static-prose h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2.25rem 0 0.6rem;
}

.static-prose p,
.static-prose li {
  margin: 0 0 0.9rem;
}

.static-prose ul,
.static-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.static-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent-deep);
}

.static-prose a:hover {
  color: var(--ink);
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.legal-notice {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 24rem;
  margin-top: 0.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 28rem;
  line-height: 1.5;
}

/* Account */
.account-wrap {
  width: min(22rem, 94vw);
  max-width: min(22rem, 94vw);
  margin-inline: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.account-auth-shell {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}

.account-panel {
  padding: 0.2rem 0 0;
}

.account-form {
  display: grid;
  gap: 0.8rem;
  max-width: 100%;
  width: 100%;
}

.account-form label {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.account-form input {
  width: 100%;
  padding: 0.62rem 0.72rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: var(--white);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.account-form input:focus-visible,
.account-role-select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line) 42%);
  box-shadow: 0 0 0 3px rgba(214, 104, 62, 0.16);
}

.account-form .btn {
  margin-top: 0.7rem;
  width: 100%;
  min-width: 0;
  padding: 0.78rem 1rem;
  border-radius: 1px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

#signin .account-form .btn.btn-primary {
  background: #090909;
  border-color: #090909;
  color: var(--white);
}

#signin .account-form .btn.btn-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.account-status {
  margin-top: 1.15rem;
  padding: 0.82rem 0.95rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}

.account-status.is-error {
  color: #7d2525;
  background: #fff5f5;
  border-color: rgba(125, 37, 37, 0.25);
}

.account-status.is-success {
  color: #1f5334;
  background: #f2fbf6;
  border-color: rgba(31, 83, 52, 0.24);
}

.account-session,
.account-admin {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.35rem;
}

.account-session h2,
.account-admin h2 {
  margin: 0 0 0.6rem;
}

.account-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.account-alt-cta {
  border-top: 1px solid var(--line-soft);
  margin-top: 1.45rem;
  padding-top: 1rem;
}

.account-alt-cta p {
  margin: 0 0 0.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--ink);
}

.account-switch-btn {
  width: 100%;
  padding: 0.72rem 1rem;
  border-color: rgba(31, 24, 20, 0.72);
  color: var(--ink);
  border-radius: 1px;
  font-size: 0.6rem;
}

.account-switch-btn:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--cream) 68%, transparent);
}

.account-field-password {
  position: relative;
}

.account-field-password input {
  padding-left: 2.45rem;
}

.account-eye {
  position: absolute;
  left: 0.62rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  opacity: 0.9;
  line-height: 0;
}

.account-forgot {
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
}

.account-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-session-actions,
.account-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.account-admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.account-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.account-admin-table th,
.account-admin-table td {
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.72rem 0.78rem;
  font-size: 0.82rem;
  vertical-align: middle;
}

.account-admin-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink-soft);
}

.account-role-select {
  font: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.account-role-save {
  padding: 0.45rem 0.8rem;
  font-size: 0.64rem;
}

/* Account exact sign-in layout (reference match) */
.account-wrap {
  width: min(22rem, 94vw);
  max-width: min(22rem, 94vw);
}

.static-prose .account-heading {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.06;
  margin: 0 0 1.15rem;
  color: var(--ink);
}

.account-panel {
  padding-top: 0;
}

.account-form {
  gap: 0.95rem;
}

.account-form label {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.account-form input {
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.82rem 0.9rem;
  border-radius: 2px;
  border-color: rgba(31, 24, 20, 0.2);
}

.account-field-password input {
  padding-left: 2.45rem;
}

.account-eye {
  left: 0.7rem;
}

.account-forgot {
  margin-top: 0.1rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.account-form .btn {
  margin-top: 0.35rem;
  padding: 0.96rem 1rem;
  border-radius: 2px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

#signin .account-form .btn.btn-primary {
  background: #050505;
  border-color: #050505;
}

.account-alt-cta {
  margin-top: 1.9rem;
  padding-top: 1.2rem;
}

.account-alt-cta p {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: none;
}

.account-switch-btn {
  padding: 0.88rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .account-wrap {
    width: min(22rem, 94vw);
    max-width: min(22rem, 94vw);
  }
  .account-heading {
    font-size: 2.25rem;
  }
  .account-form .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .account-wrap {
    width: 92vw;
    max-width: 92vw;
  }

  .account-heading {
    font-size: 1.95rem;
    margin-bottom: 0.95rem;
  }

  .account-form label {
    font-size: 0.92rem;
  }

  .account-form input {
    font-size: 0.98rem;
    padding: 0.74rem 0.78rem;
  }

  .account-field-password input {
    padding-left: 2.25rem;
  }

  .account-eye {
    left: 0.58rem;
  }

  .account-forgot {
    font-size: 0.84rem;
  }

  .account-form .btn,
  .account-switch-btn {
    min-height: 44px;
  }

  .account-alt-cta {
    margin-top: 1.6rem;
    padding-top: 0.95rem;
  }

  .account-alt-cta p {
    font-size: 0.95rem;
    margin-bottom: 0.72rem;
  }
}

.site-footer--compact {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 0;
  background: var(--section-cream);
}

.footer-compact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.footer-compact-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.footer-compact-nav a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Buyer dashboard (logged-in customer home) —— */
body.buyer-dash-active .announcement,
body.buyer-dash-active .site-header,
body.buyer-dash-active .site-footer--compact,
body.buyer-dash-active .search-dialog,
body.buyer-dash-active #search-dialog,
body.buyer-dash-active #search-backdrop {
  display: none !important;
}

body.buyer-dash-active.page-static main#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.buyer-dash-active .buyer-page-wrap.static-wrap {
  padding: 0;
  flex: 1;
  max-width: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.buyer-page-wrap > .buyer-dash-global-status:not([hidden]) {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-radius: 0;
}

body.buyer-dash-active:not(.buyer-dash-sidebar-open) .buyer-page-wrap > .buyer-dash-global-status:not([hidden]) {
  border-bottom: 1px solid var(--line-soft);
}

/*
 * Account page only: logged-in UI sets body.buyer-dash-active. Without it, keep the buyer shell
 * out of the document flow so sign-in never stacks above a leaked dashboard (scroll issue).
 */
.page-account:not(.buyer-dash-active) #buyer-dashboard.buyer-dash {
  display: none !important;
}

/*
 * Buyer dashboard shell — used by account.html, orders.html, track.html, wishlist.html
 * and account-settings.html. Sidebar is rendered on the left.
 * Only layout when visible: a bare display:flex here overrides [hidden] in some browsers.
 */
.buyer-dash:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: var(--cream-soft);
}

.buyer-dash-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(42, 28, 23, 0.45);
  border: none;
  padding: 0;
}

.buyer-dash-sidebar {
  width: clamp(258px, 28vw, 288px);
  flex-shrink: 0;
  background: linear-gradient(180deg, #3d2b1f 0%, #34261c 52%, #2e2118 100%);
  color: #f6efe6;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.35rem 1.75rem;
  position: relative;
  z-index: 50;
  box-shadow: 4px 0 28px rgba(31, 24, 20, 0.12);
}

.buyer-dash-brand {
  margin-bottom: 1.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(246, 239, 230, 0.12);
}

.buyer-dash-brand-main {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  margin: 0;
  font-weight: 400;
}

.buyer-dash-brand-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
  margin: 0.15rem 0 0;
}

.buyer-dash-profile-block {
  margin-bottom: 1.85rem;
}

.buyer-dash-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(246, 239, 230, 0.12);
  border: 1px solid rgba(246, 239, 230, 0.22);
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  color: #fff;
}

.buyer-dash-welcome-line {
  font-size: 0.94rem;
  line-height: 1.35;
  margin: 0 0 0.55rem;
  color: rgba(246, 239, 230, 0.92);
}

.buyer-dash-welcome-line strong {
  font-weight: 600;
  color: #fff;
}

.buyer-dash-vip-badge {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(214, 104, 62, 0.28);
  color: var(--accent-pale);
  border: 1px solid rgba(214, 104, 62, 0.45);
}

.buyer-dash-nav-heading {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(246, 239, 230, 0.45);
  margin: 1.05rem 0 0.5rem;
}

.buyer-dash-nav-heading:first-child {
  margin-top: 0;
}

.buyer-dash-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.buyer-dash-nav-list li {
  margin-bottom: 0.12rem;
}

.buyer-dash-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.54rem 0.72rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: rgba(246, 239, 230, 0.88);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.buyer-dash-nav-link:hover {
  background: rgba(246, 239, 230, 0.08);
  color: #fff;
}

.buyer-dash-nav-link.is-active {
  background: rgba(214, 104, 62, 0.22);
  color: var(--accent-pale);
}

.buyer-dash-nav-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.buyer-dash-signout {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.55rem 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.88rem;
  color: rgba(246, 239, 230, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.buyer-dash-signout:hover {
  color: #fff;
}

.buyer-dash-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--cream-soft);
}

.buyer-dash-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem clamp(1.1rem, 3vw, 2rem);
  background: rgba(251, 246, 238, 0.92);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.buyer-dash-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.buyer-dash-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.buyer-dash-topbar-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  color: var(--ink);
}

.buyer-dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.buyer-dash-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.buyer-dash-icon-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.buyer-dash-badge-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c83c3c;
  border: 2px solid var(--white);
}

.buyer-dash-shop-btn {
  font-size: 0.62rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.72rem 1.05rem !important;
  white-space: nowrap;
}

.buyer-dash-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.1rem, 3vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 1120px;
}

.buyer-dash-hero-card {
  border-radius: 16px;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: linear-gradient(135deg, #3f2f24 0%, #4a3930 40%, #3d322c 100%);
  color: #f6efe6;
  box-shadow: 0 14px 40px rgba(31, 24, 20, 0.12);
}

.buyer-dash-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.buyer-dash-eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 0.55rem;
  opacity: 0.78;
}

.buyer-dash-hero-status {
  font-size: 1.06rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.buyer-dash-hero-course {
  margin: 0 0 0.95rem;
  font-size: 0.93rem;
  opacity: 0.95;
}

.buyer-dash-hero-course strong {
  font-weight: 700;
  color: var(--accent-pale);
}

.buyer-dash-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(246, 239, 230, 0.15);
  overflow: hidden;
  max-width: 320px;
  margin-bottom: 1rem;
}

.buyer-dash-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-pale) 100%);
}

.buyer-dash-cta-light {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  background: #fff;
  color: var(--brown) !important;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.buyer-dash-cta-light:hover {
  opacity: 0.93;
}

.buyer-dash-hero-metric {
  text-align: center;
  padding: 0.5rem 1.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.buyer-dash-hero-modules {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  margin: 0;
  line-height: 1;
}

.buyer-dash-hero-modules .slash {
  opacity: 0.4;
  font-size: 0.55em;
  margin: 0 0.12em;
}

.buyer-dash-hero-modules-label {
  margin: 0.65rem 0 0;
  font-size: 0.61rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.buyer-dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.buyer-dash-kpi {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(31, 24, 20, 0.04);
}

.buyer-dash-kpi h2 {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.buyer-dash-kpi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
  color: var(--ink);
}

.buyer-dash-kpi-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.buyer-dash-mid-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1rem;
}

.buyer-dash-card {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  padding: clamp(1.1rem, 2.6vw, 1.55rem);
  box-shadow: 0 8px 28px rgba(31, 24, 20, 0.05);
}

.buyer-dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.buyer-dash-card-head h2,
.buyer-dash-card-title-only {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.buyer-dash-order-meta {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.buyer-dash-order-empty .buyer-dash-empty-copy {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 22rem;
}

.buyer-dash-order-line {
  margin: 0 0 1.15rem;
  font-weight: 500;
  font-size: 0.93rem;
}

.order-stepper {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 0 0 1.1rem;
  padding: 0;
  gap: 0.15rem;
  overflow-x: auto;
}

.order-stepper__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 64px;
  position: relative;
}

.order-stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.order-stepper__item.is-complete:not(:last-child)::after {
  background: rgba(214, 104, 62, 0.5);
}

.order-stepper__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  color: transparent;
  z-index: 1;
}

.order-stepper__item.is-complete .order-stepper__circle {
  border-color: #2d7a4a;
  background: #e9f7ec;
  color: #2d7a4a;
}

.order-stepper__item.is-current .order-stepper__circle {
  border-width: 3px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 104, 62, 0.2);
}

.order-stepper__label {
  margin-top: 0.42rem;
  font-size: 0.61rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}

.order-stepper__item.is-current .order-stepper__label {
  color: var(--accent-deep);
}

.buyer-dash-delivery-meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.buyer-dash-card-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.buyer-dash-btn-muted {
  font-size: 0.62rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.65rem 1rem !important;
}

.buyer-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.buyer-activity-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.58rem 0;
  border-top: 1px solid var(--line-soft);
}

.buyer-activity-row:first-child {
  border-top: none;
}

.buyer-activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.buyer-activity-icon--check {
  background: #e9f7ec;
  color: #2d7a4a;
}

.buyer-activity-icon--edu {
  background: #f6eadf;
  color: var(--accent-deep);
}

.buyer-activity-icon--star {
  background: #fff9e8;
  color: var(--accent);
}

.buyer-activity-body strong {
  display: block;
  font-size: 0.91rem;
  font-weight: 600;
}

.buyer-activity-body small {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.buyer-dash-rec-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 400;
  margin: 1.65rem 0 1rem;
  color: var(--ink);
}

.buyer-dash-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.buyer-dash-rec-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  padding: 0.95rem;
  box-shadow: 0 8px 24px rgba(31, 24, 20, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.buyer-dash-rec-media {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(145deg, #ede6dd 0%, #e7ddd2 58%, #e2d9cc 100%);
  border: 1px solid var(--line-soft);
}

.buyer-dash-rec-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.45rem 0 0;
  line-height: 1.35;
  color: var(--ink);
}

.buyer-dash-stars {
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.buyer-dash-stars span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(214, 104, 62, 0.18);
}

.buyer-dash-stars[data-stars="5"] span,
.buyer-dash-stars[data-stars="4"] span:nth-child(-n + 4),
.buyer-dash-stars[data-stars="3"] span:nth-child(-n + 3) {
  background: var(--accent);
}

.buyer-dash-rec-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0;
}

.buyer-dash-was-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: 0.35rem;
}

.buyer-dash-rec-atb {
  margin-top: 0.25rem !important;
  display: inline-block;
  align-self: flex-start;
  font-size: 0.54rem !important;
  letter-spacing: 0.12em !important;
  padding: 0.6rem 0.92rem !important;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .buyer-dash-kpis {
    grid-template-columns: 1fr;
  }
  .buyer-dash-mid-grid {
    grid-template-columns: 1fr;
  }
  .buyer-dash-rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .buyer-dash-menu-btn {
    display: inline-flex;
  }

  .buyer-dash-sidebar-open .buyer-dash-backdrop {
    display: block;
  }

  body.buyer-dash-sidebar-open .buyer-dash:not([hidden]) {
    overflow: hidden;
  }

  .buyer-dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    max-width: 86vw;
    transform: translateX(-102%);
    transition: transform 0.22s var(--ease-out);
  }

  .buyer-dash-sidebar-open .buyer-dash-sidebar {
    transform: translateX(0);
  }

  .buyer-dash-rec-grid {
    grid-template-columns: 1fr;
  }

  .buyer-dash-hero-grid {
    grid-template-columns: 1fr;
  }

  .buyer-dash-hero-metric {
    justify-self: start;
  }

  .order-stepper__item:not(:last-child)::after {
    top: 15px;
  }
}

@media (max-width: 520px) {
  .buyer-dash-topbar-actions .buyer-dash-shop-btn {
    font-size: 0.5rem !important;
    padding: 0.6rem 0.72rem !important;
  }

  .order-stepper__label {
    font-size: 0.56rem;
  }
}

.buyer-dash-exit-banner {
  background: var(--ink, #1a1a1a);
  color: var(--cream, #fff8f0);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}
.buyer-dash-exit-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.buyer-dash-exit-banner-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.buyer-dash-exit-banner-link:hover {
  text-decoration: none;
}

/* Cart drawer (storefront) */
body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(42, 28, 23, 0.42);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2600;
  width: min(400px, 92vw);
  height: 100%;
  height: 100dvh;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(31, 24, 20, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.25s var(--ease-out);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.cart-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.cart-drawer-close {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1.1rem 1rem;
  font-size: 0.9rem;
}

.cart-drawer-line {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.cart-drawer-line:last-child {
  border-bottom: none;
}

.cart-drawer-line strong {
  font-weight: 600;
}

.cart-drawer-line-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.cart-drawer-empty {
  color: var(--muted);
  margin: 2rem 0;
  font-size: 0.92rem;
}

.cart-drawer-foot {
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.65rem;
}

.cart-drawer-subtotal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.cart-drawer-checkout {
  justify-self: stretch;
  text-align: center;
}

/* Checkout page */
.page-checkout .header-inner--sub {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.checkout-page-title {
  margin: 0;
  justify-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 400;
}

.page-checkout .header-inner--sub > .btn {
  justify-self: end;
}

.checkout-page {
  padding-bottom: 3rem;
}

.checkout-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--white);
}

.checkout-lines li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.checkout-lines li:last-child {
  border-bottom: none;
}

.cl-name {
  font-weight: 600;
}

.cl-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.checkout-sub {
  font-size: 1rem;
}

.checkout-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

.checkout-empty {
  margin-bottom: 0.5rem;
}

.checkout-form-shell {
  max-width: 28rem;
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
}

.checkout-form-shell label {
  font-size: 0.82rem;
  font-weight: 600;
}

.checkout-form-shell input,
.checkout-form-shell textarea {
  font: inherit;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
}

.checkout-guest-fields {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--cream-soft) 88%, var(--white));
}

.checkout-h2 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.checkout-status {
  margin: 0;
  padding: 0.65rem 0.72rem;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid var(--line);
}

.checkout-status.is-success {
  background: #f2fbf6;
  border-color: rgba(31, 83, 52, 0.24);
  color: #1f5334;
}

.checkout-status.is-error {
  background: #fff5f5;
  border-color: rgba(125, 37, 37, 0.25);
  color: #7d2525;
}

/* Buyer — full order list (orders.html) */
.orders-page-root {
  position: relative;
}

.orders-page-loading {
  margin: clamp(2rem, 5vw, 3rem) auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.buyer-dash-active .orders-page-loading[hidden] {
  display: none !important;
}

#orders-buyer-shell:not([hidden]) {
  animation: orders-fade-up 0.38s var(--ease-out);
}

@keyframes orders-fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orders-page-lead {
  margin: 0 0 1.35rem;
  max-width: 44rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.orders-full-card {
  overflow: visible;
}

.orders-full-card .buyer-dash-empty-copy {
  padding: 1rem 0 0;
}

.orders-full-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.orders-full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.orders-full-table th,
.orders-full-table td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.orders-full-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--cream-soft) 70%, var(--white));
}

.orders-full-table tbody tr:last-child td {
  border-bottom: none;
}

.orders-full-cell-items {
  max-width: 18rem;
  word-break: break-word;
}

/* Shade Finder — mockup-aligned (cream / chocolate / terracotta) */
.page-shade-finder {
  --sf-chocolate: #3d2b1f;
  --sf-terra: #c66331;
  --sf-terra-hover: #a85528;
  --sf-cream: #f9f4ee;
  --sf-white: #fffefc;
  --sf-line: #e3dcd3;
  --sf-muted: rgba(61, 43, 31, 0.55);
  --sf-warn-bg: #fde8e4;
  --sf-warn-text: #9b1c1c;

  font-family: var(--font-body);
  background: var(--sf-cream);
  color: var(--sf-chocolate);
  min-height: 100vh;
}

.page-shade-finder .skip-link:focus {
  outline: 2px solid var(--sf-terra);
  outline-offset: 2px;
}

.sf-header {
  background: var(--sf-chocolate);
  color: var(--sf-cream);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) clamp(2.25rem, 6vw, 3.25rem);
}

.sf-header-inner {
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-shade-finder .sf-header-inner .sf-header-logo {
  flex-shrink: 0;
  text-decoration: none;
}

.page-shade-finder .sf-header-logo .logo-img--sf-header {
  display: block;
  height: clamp(5rem, 18vw, 9.5rem);
  width: auto;
  max-width: min(720px, 94vw);
  object-fit: contain;
}

.page-shade-finder .sf-header-logo:focus-visible {
  outline: 2px solid rgba(249, 244, 238, 0.9);
  outline-offset: 4px;
  border-radius: 4px;
}

.sf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--sf-terra);
}

.sf-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sf-white);
  opacity: 0.95;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.sf-hero-copy {
  max-width: 40rem;
  margin: 2.75rem auto 0;
  text-align: center;
}

.sf-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(249, 244, 238, 0.52);
  margin: 0 0 1rem;
}

.sf-title {
  font-family: "Playfair Display", var(--font-display), Georgia, serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--sf-white);
  letter-spacing: 0.01em;
}

.sf-title-accent {
  font-family: "Great Vibes", cursive;
  font-size: 1.45em;
  font-weight: 400;
  color: var(--sf-terra);
  display: inline-block;
  margin: 0 0.06em;
  vertical-align: baseline;
  transform: translateY(0.04em);
}

.sf-lead {
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(249, 244, 238, 0.78);
  margin: 0;
  font-weight: 400;
}

.sf-privacy-hint {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(249, 244, 238, 0.42);
  font-weight: 400;
}

.sf-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3.5rem;
}

.sf-stepper-shell {
  background: var(--sf-cream);
  margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2rem)) 2.25rem;
  padding: 1.35rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 40px rgba(61, 43, 31, 0.06);
}

.sf-stepper {
  margin-bottom: 0;
}

.sf-stepper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}

.sf-stepper-list::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 1.125rem;
  height: 2px;
  background: rgba(227, 220, 211, 0.95);
  z-index: 0;
}

.sf-stepper-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 5rem;
}

.sf-stepper-item:not(.is-active):not(.is-done) {
  opacity: 1;
}

.sf-stepper-item:not(.is-active):not(.is-done) .sf-stepper-label {
  color: rgba(61, 43, 31, 0.35);
}

.sf-stepper-item:not(.is-active):not(.is-done) .sf-stepper-circle {
  border-color: #d5cec6;
  background: var(--sf-white);
  color: rgba(61, 43, 31, 0.35);
}

.sf-stepper-circle {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  background: var(--sf-white);
  color: rgba(61, 43, 31, 0.45);
  box-shadow: 0 2px 8px rgba(61, 43, 31, 0.06);
}

.sf-stepper-item.is-active .sf-stepper-circle {
  background: var(--sf-terra);
  border-color: var(--sf-terra);
  color: var(--sf-white);
  box-shadow: 0 4px 14px rgba(198, 99, 49, 0.35);
}

.sf-stepper-item.is-done .sf-stepper-circle {
  background: rgba(198, 99, 49, 0.15);
  border-color: var(--sf-terra);
  color: var(--sf-terra);
}

.sf-stepper-item.is-active .sf-stepper-label {
  color: var(--sf-terra);
}

.sf-stepper-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(61, 43, 31, 0.45);
}

.sf-panel--hidden {
  display: none !important;
}

.sf-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .sf-guidance-grid {
    grid-template-columns: 1fr;
  }
}

.sf-guide-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  padding: 1.2rem 1.05rem 1.1rem;
  box-shadow: 0 6px 24px rgba(61, 43, 31, 0.05);
}

.sf-guide-card h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.4rem 0 0.4rem;
  color: var(--sf-chocolate);
}

.sf-guide-card p {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--sf-muted);
}

.sf-guide-icon {
  color: var(--sf-terra);
  display: flex;
}

.sf-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
}

.sf-tag--warn {
  background: var(--sf-warn-bg);
  color: var(--sf-warn-text);
  border: none;
}

.sf-dropzone {
  border: 2px dashed #c9c0b5;
  border-radius: 14px;
  background: rgba(255, 254, 252, 0.65);
  padding: clamp(1.85rem, 4vw, 2.65rem) 1.5rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.sf-dropzone:hover,
.sf-dropzone:focus-visible {
  border-color: color-mix(in srgb, var(--sf-terra) 42%, #c9c0b5);
  background: rgba(255, 254, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(198, 99, 49, 0.08);
  outline: none;
}

.sf-dropzone.is-drag {
  border-color: var(--sf-terra);
  background: rgba(198, 99, 49, 0.06);
}

.sf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sf-dropzone-inner {
  max-width: 28rem;
  margin-inline: auto;
}

.sf-upload-icon {
  display: inline-flex;
  width: 3.625rem;
  height: 3.625rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(198, 99, 49, 0.22);
  color: var(--sf-terra);
  margin-bottom: 1rem;
  background: rgba(198, 99, 49, 0.06);
}

.sf-upload-icon svg {
  stroke-width: 1.35;
}

.sf-dropzone-title {
  font-family: "Playfair Display", var(--font-display), Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.42rem);
  font-weight: 500;
  margin: 0 0 0.55rem;
  color: var(--sf-chocolate);
}

.sf-dropzone-text {
  font-size: 0.875rem;
  color: var(--sf-muted);
  margin: 0 0 1.35rem;
  line-height: 1.55;
}

.page-shade-finder .sf-choose-btn {
  min-width: min(100%, 14rem);
  width: min(100%, 20rem);
  padding-block: 1.05rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--sf-terra);
  border-color: var(--sf-terra);
  color: var(--sf-white);
  box-shadow: 0 8px 24px rgba(198, 99, 49, 0.25);
}

.page-shade-finder .sf-choose-btn:hover {
  background: var(--sf-terra-hover);
  border-color: var(--sf-terra-hover);
  transform: translateY(-1px);
}

.sf-dropzone-meta {
  font-size: 0.7rem;
  color: rgba(61, 43, 31, 0.45);
  margin: 1.2rem 0 0;
  line-height: 1.5;
}

.sf-error {
  margin-top: 0.85rem;
  color: var(--sf-warn-text);
  font-size: 0.82rem;
  font-weight: 500;
}

.sf-samples-section {
  margin-top: 2.25rem;
}

.sf-samples-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(61, 43, 31, 0.38);
  margin: 0 0 1.25rem;
}

.sf-samples-rule::before,
.sf-samples-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sf-line);
}

.sf-samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .sf-samples-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .sf-samples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sf-sample-card {
  border: none;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: 0 12px 32px rgba(61, 43, 31, 0.08);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  border: 1px solid rgba(227, 220, 211, 0.9);
}

.sf-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(61, 43, 31, 0.12);
}

.sf-sample-card:focus-visible {
  outline: 3px solid var(--sf-terra);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sf-sample-card:hover .sf-sample-thumb-img,
  .sf-sample-card:focus-visible .sf-sample-thumb-img {
    transform: none;
    transition: none;
  }
}

.sf-sample-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ebe4dc;
}

.sf-sample-thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(249, 244, 238, 0) 52%,
    rgba(61, 43, 31, 0.07) 100%
  );
}

.sf-sample-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.001);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sf-sample-card:hover .sf-sample-thumb-img {
  transform: scale(1.06);
}

.sf-sample-card:focus-visible .sf-sample-thumb-img {
  transform: scale(1.04);
}

.sf-sample-label {
  display: block;
  padding: 0.72rem 0.85rem;
  background: var(--sf-white);
  font-size: 0.796875rem;
  font-weight: 600;
  color: var(--sf-chocolate);
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
}

.page-shade-finder .sf-footer {
  background: transparent;
  border-top: 1px solid var(--sf-line);
  margin-top: 1rem;
}

.page-shade-finder .sf-footer-inner {
  max-width: 960px;
  margin-inline: auto;
}

.page-shade-finder .sf-footer a {
  color: rgba(61, 43, 31, 0.55);
}

.page-shade-finder .sf-footer a:hover {
  color: var(--sf-chocolate);
}

@media (max-width: 520px) {
  .sf-stepper-shell {
    margin-inline: clamp(-1rem, -4vw, -1.25rem);
    border-radius: 0;
  }

  .sf-stepper-list::before {
    left: 12%;
    right: 12%;
  }
}

/* Analyse + results panels — match Shade Finder palette */
.page-shade-finder .sf-scan-line {
  background: linear-gradient(90deg, transparent, rgba(198, 99, 49, 0.5), transparent);
  box-shadow: 0 0 14px rgba(198, 99, 49, 0.45);
}

.page-shade-finder .sf-progress-fill {
  background: linear-gradient(90deg, var(--sf-terra-hover), var(--sf-terra));
}

.page-shade-finder .sf-analyse-ui {
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: 12px;
}

.page-shade-finder .sf-ai-step.is-active {
  border-left-color: var(--sf-terra);
  background: rgba(198, 99, 49, 0.08);
  color: var(--sf-chocolate);
}

.page-shade-finder .sf-ai-step.is-done {
  color: var(--sf-chocolate);
}

/* Analyse step */
.sf-scan-wrap {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .sf-scan-wrap {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    gap: 2rem;
  }
}

.sf-scan-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1512;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.sf-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(232, 120, 70, 0.45), transparent);
  box-shadow: 0 0 14px rgba(214, 104, 62, 0.6);
  animation: sf-scan 2.4s ease-in-out infinite;
  pointer-events: none;
}

.sf-scan-corners {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

@keyframes sf-scan {
  0% {
    top: 8%;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 88%;
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-scan-line {
    animation: none;
    top: 50%;
  }
}

.sf-analyse-ui {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.sf-analyse-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.sf-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--cream-soft);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line-soft);
}

.sf-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 0.12s linear;
}

.sf-ai-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sf-ai-step {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.sf-ai-step.is-active {
  color: var(--ink);
  background: var(--accent-glow);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sf-ai-step.is-done {
  color: var(--ink-soft);
  border-left-color: rgba(214, 104, 62, 0.45);
}

/* Results */
.sf-results-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--brown-deep);
  color: var(--cream);
  border-radius: 16px;
  padding: 1.65rem clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
}

@media (max-width: 620px) {
  .sf-results-hero {
    grid-template-columns: 1fr;
  }
}

.sf-results-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 0.45rem;
}

.sf-results-shade-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.sf-results-confidence {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.88;
}

.sf-results-confidence strong {
  color: var(--accent-pale);
}

.sf-results-hero-swatch {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sf-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .sf-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.sf-breakdown-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.sf-breakdown-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sf-breakdown-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--ink);
}

.sf-spectrum-block {
  margin-bottom: 2.25rem;
}

.sf-spectrum-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.sf-spectrum-caption {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.52;
}

.sf-spectrum-rail {
  position: relative;
  padding-top: 1.85rem;
}

.sf-spectrum-gradient {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e8eaf0,
    #c8b89a,
    #d9b885,
    #9a6f4a,
    #6b4734,
    #3f2418,
    #1f1814
  );
  opacity: 0.95;
}

.sf-spectrum-ticks {
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  margin-top: 0.65rem;
}

.sf-spectrum-tick {
  flex: 1;
  font-size: 0.54rem;
  line-height: 1.22;
  text-align: center;
  color: var(--muted);
  max-width: 6.25rem;
  margin-inline: auto;
}

.sf-spectrum-tick.is-active {
  font-weight: 700;
  color: var(--ink);
}

.sf-spectrum-marker {
  position: absolute;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(31, 24, 20, 0.25);
  transform: translateX(0);
  transition: left 0.5s var(--ease-out);
}

.sf-matches-block h3,
.sf-adjacent-block h3,
.sf-notes-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.sf-match-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.sf-match-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.sf-match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .sf-match-top {
    flex-direction: column;
    align-items: stretch;
  }
}

.sf-match-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.sf-match-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.sf-match-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sf-match-atc {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .sf-match-atc {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    justify-self: unset;
    white-space: normal;
  }
}

.sf-match-bar {
  flex: 1;
  height: 6px;
  background: var(--cream-soft);
  border-radius: 999px;
  overflow: hidden;
}

.sf-match-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 1s var(--ease-out);
}

.sf-match-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-deep);
  min-width: 2.65rem;
  text-align: right;
}

.sf-adjacent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .sf-adjacent-grid {
    grid-template-columns: 1fr;
  }
}

.sf-adjacent-card {
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out);
}

.sf-adjacent-card:hover {
  border-color: var(--accent);
}

.sf-adjacent-card strong {
  display: block;
  font-size: 0.87rem;
  margin-bottom: 0.35rem;
}

.sf-adjacent-card span {
  font-size: 0.76rem;
  color: var(--muted);
}

.sf-ai-badge {
  font-size: 0.74rem;
  color: var(--muted);
  margin: -0.25rem 0 0.65rem;
  letter-spacing: 0.03em;
}

.sf-ai-notes-status {
  font-size: 0.8rem;
  line-height: 1.48;
  margin: -0.2rem 0 0.5rem;
  color: var(--ink-soft);
}

.sf-ai-notes-status.is-loading {
  color: var(--accent-deep);
}

.sf-ai-notes-status.is-offline {
  color: var(--muted);
}

.sf-ai-notes-status.is-error {
  color: #8b2929;
}

.sf-spectrum-ai-addon {
  font-style: italic;
  color: var(--ink-soft);
}

.sf-notes-copy {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  padding: 1.15rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.sf-cta-block {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-glow), var(--cream)) 0%, var(--cream-soft) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  margin-bottom: 2rem;
}

.sf-cta-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.sf-cta-text {
  margin: 0 0 1rem;
  font-size: 0.87rem;
  line-height: 1.56;
  color: var(--ink-soft);
}

.sf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sf-restart-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.sf-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.35rem clamp(1.25rem, 4vw, 2rem) 2rem;
  font-size: 0.84rem;
}

.sf-footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sf-footer a {
  color: var(--accent-deep);
}

/* Cookie consent (UK/EU-style shell — wire analytics in site.config.js) */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8000;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(31, 24, 20, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12);
}

.cookie-consent__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.cookie-consent p {
  margin: 0;
  max-width: 40rem;
  color: rgba(251, 246, 238, 0.92);
}

.cookie-consent a {
  color: var(--accent-pale);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent a:hover {
  color: var(--white);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-essential,
.btn-cookie-all {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn-cookie-essential {
  background: transparent;
  color: var(--cream);
}

.btn-cookie-essential:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-cookie-all {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-cookie-all:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ======== Responsive ======== */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .primary-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-item--shop {
    width: 100%;
  }
  .nav-item--shop .nav-link--shop {
    width: 100%;
    justify-content: space-between;
  }
  /* Mobile: show shop categories immediately in the drawer */
  .primary-nav.is-open #nav-shop-panel[hidden] {
    display: block !important;
  }
  .nav-dropdown {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    max-height: none;
    max-width: none;
    overflow: visible;
    padding-top: 0;
    background: var(--cream-soft);
    border-top: 1px solid var(--line-soft);
    border-radius: 0 0 6px 6px;
    box-shadow: none;
  }
  .nav-dropdown-panel {
    position: static;
    width: 100%;
    left: auto;
    margin: 0;
    box-shadow: none;
    border: none;
    background: var(--cream-soft);
    border-radius: 0 0 4px 4px;
  }
  .nav-dropdown-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem 0.75rem 1rem;
    gap: 1rem;
  }
  .nav-dropdown-inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem 0 0 0.25rem;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    text-align: left;
  }
  .nav-dropdown-media {
    justify-content: center;
  }
  .nav-dropdown-media-col {
    max-width: 100%;
  }
  .nav-dropdown-slides {
    max-width: 100%;
    max-height: min(240px, 45vh);
    width: 100%;
    margin-inline: auto;
  }
  .nav-dropdown-tagline {
    font-size: 0.92rem;
  }
  .nav-dropdown-copy {
    font-size: 0.76rem;
  }
  .nav-dropdown-group:last-child {
    padding-bottom: 0.5rem;
  }
  .primary-nav.is-open .nav-link--shop {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: min(calc(100vw * 622 / 1024), 88vh);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    max-width: min(var(--container), 92vw);
  }

  .hero-inner .hero-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .hc-banner,
  .ext-inner,
  .match-section {
    grid-template-columns: 1fr;
  }
  .ext-image {
    order: -1;
  }
  .match-image img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-trust {
    flex-direction: column;
  }

  .hero-trust li {
    font-size: 0.7rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
    justify-content: center;
    padding: 0.65rem 0;
  }

  .hero-trust li:last-child {
    border-bottom: none;
  }

  .ext-features {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }
}

/* Mobile nav drawer */
.primary-nav.is-open {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  padding: 1.5rem 1.25rem;
  z-index: 5100;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.primary-nav.is-open .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.primary-nav.is-open .nav-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
}

.primary-nav.is-open .nav-dropdown-list a {
  padding: 0.45rem 0 0.45rem 0.35rem;
  font-size: 0.8rem;
  border-bottom: none;
  display: block;
  color: var(--muted);
}

.primary-nav.is-open .nav-dropdown-head {
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.primary-nav.is-open .nav-dropdown-head:first-of-type,
.primary-nav.is-open .nav-dropdown-group:first-child .nav-dropdown-head {
  margin-top: 0;
}

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

/* Admin dashboard */
.admin-page {
  background: var(--cream-soft);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: var(--cream);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-nav-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 0.8rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
}

.admin-nav-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--white) 88%);
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}

.admin-content {
  padding: clamp(1rem, 3vw, 2rem);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.admin-welcome {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-panel-head h2,
.admin-panel h2 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.admin-analytics-grid--ops {
  grid-template-columns: 1fr 1.3fr;
}

.admin-analytics-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream-soft);
  padding: 0.8rem;
}

.admin-analytics-card h3,
.admin-kpi h3 {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 142px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 0.5rem;
  background: var(--white);
}

.admin-bar-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.admin-bar {
  width: 100%;
  max-width: 18px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 3px 3px 2px 2px;
}

.admin-bar-label {
  font-size: 0.58rem;
  color: var(--muted);
}

.admin-chart--donut {
  justify-content: center;
  align-items: center;
  min-height: 160px;
  width: min(190px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 0;
  position: relative;
}

.admin-chart--donut::after {
  content: "";
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: var(--white);
}

.admin-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-kpi {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem;
  background: var(--white);
}

.admin-kpi p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-health-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.admin-health-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.45rem;
  font-size: 0.82rem;
}

.admin-health-list li strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.admin-events-list {
  display: grid;
  gap: 0.45rem;
  max-height: 260px;
  overflow: auto;
}

.admin-event-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--white);
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.admin-event-row strong {
  color: var(--ink);
  font-weight: 600;
}

.admin-stat-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem;
  background: var(--cream-soft);
}

.admin-stat-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-stat-card p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-analytics-grid,
  .admin-analytics-kpis {
    grid-template-columns: 1fr;
  }
}

/* Wishlist, tracking, rewards, account settings (buyer area) */
.product-card-actions--split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.product-card-wish {
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem !important;
}

.product-card-wish[aria-pressed="true"] {
  border-color: var(--brown);
  color: var(--brown);
  background: rgba(197, 101, 55, 0.08);
}

.wishlist-page-loading,
.orders-page-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.wishlist-card .wishlist-sku {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.wishlist-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.track-order-card + .track-order-card {
  margin-top: 1rem;
}

.track-stepper {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.track-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.track-step.is-done {
  color: var(--ink);
  font-weight: 500;
}

.track-step.is-current {
  color: var(--brown);
}

.track-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.track-step.is-done .track-dot {
  border-color: var(--brown);
  background: var(--brown);
}

.track-step.is-current .track-dot {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(197, 101, 55, 0.25);
}

.track-carrier-note,
.track-ship-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.track-refund-banner {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(197, 101, 55, 0.1);
  font-size: 0.82rem;
}

.track-refund-banner a {
  color: var(--brown);
  font-weight: 600;
}

.rewards-balance-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.rewards-balance-card .buyer-dash-kpi-value {
  font-size: 2.6rem;
}

.account-settings-form {
  max-width: 420px;
  display: grid;
  gap: 1rem;
}

.account-settings-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-settings-form input {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.account-settings-form input:disabled {
  opacity: 0.75;
  background: var(--cream-soft);
}

#settings-form-status.account-status {
  margin-bottom: 0.5rem;
}

.delivery-track-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  box-shadow: 0 6px 22px rgba(31, 24, 20, 0.06);
}

.delivery-track-callout h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.delivery-track-callout p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* === PRODUCT DETAIL + SHOP PAGE (v=shop11) === */

.bestsellers-loading,
.bestsellers-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.product-card-blurb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  padding: 0 1rem 0.75rem;
  line-height: 1.4;
}

.product-detail-wrap {
  padding: 2rem 1rem 4rem;
}

.product-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  letter-spacing: 0.04em;
}

.product-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-loading,
.product-error,
.shop-loading,
.shop-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-size: 1rem;
}

.product-error {
  color: #b03030;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-soft);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(31, 24, 20, 0.08);
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-thumb {
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb.is-active,
.product-thumb:hover {
  border-color: var(--ink);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.product-info-cat {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.product-info-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.product-info-blurb {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.product-info-price {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.product-info-price-meta {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.product-info-stock {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.2em;
}

.product-info-stock.is-low {
  color: #b06b1e;
}

.product-info-stock.is-out {
  color: #b03030;
}

.product-info-stock.is-ok {
  color: #2c7a4d;
}

.product-picker {
  border: none;
  margin: 0;
  padding: 0;
}

.product-picker legend {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.product-picker-current {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  margin-left: 0.5rem;
}

.product-colour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.product-colour-swatch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
  font-family: inherit;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--ink);
}

.product-colour-swatch:hover {
  border-color: var(--ink-soft);
}

.product-colour-swatch.is-active {
  border-color: var(--ink);
  background: var(--cream-soft);
}

.product-colour-swatch-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.product-colour-swatch-label {
  font-size: 0.8rem;
}

.product-colour-swatch-label em {
  color: #b06b1e;
  font-style: normal;
  margin-left: 0.25rem;
}

.product-length-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-length-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 120ms ease, background 120ms ease;
}

.product-length-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-length-btn:hover:not(:disabled) {
  border-color: var(--ink-soft);
}

.product-length-btn.is-active {
  border-color: var(--ink);
  background: var(--cream-soft);
}

.product-length-note {
  font-size: 0.7rem;
  color: #b06b1e;
}

.product-qty-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.product-qty-row label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.product-qty-row input {
  width: 70px;
  padding: 0.5rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  background: var(--white);
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-atc-btn {
  flex: 1 1 200px;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
}

.product-action-note {
  margin: 0;
  font-size: 0.85rem;
  color: #2c7a4d;
}

.product-info-section {
  margin-top: 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.product-info-section h2 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-family: inherit;
}

.product-info-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-description-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.product-description-heading {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-family: inherit;
}

.product-description-list {
  margin: 0;
  padding: 0.65rem 0 0.65rem 1.15rem;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  background: var(--cream-soft);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}

.product-description-list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.product-description-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #c9a962);
  transform: translateY(-50%);
}

.product-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.product-meta-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line-soft);
}

.product-meta-list li strong {
  color: var(--ink);
  font-weight: 500;
}

/* Shop landing */

.shop-page-wrap {
  padding: 2rem 1rem 4rem;
}

.shop-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.shop-hero-title {
  margin: 0 0 0.4rem;
}

.shop-hero-blurb {
  margin: 0 auto;
  max-width: 580px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.shop-tabs-label {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 1rem;
}

.shop-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--white);
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.shop-tab:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.shop-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.shop-subtabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: -1rem 0 1.75rem;
}

.shop-subtab {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
}

.shop-subtab:hover,
.shop-subtab.is-active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
}

.shop-subtab.is-active {
  font-weight: 600;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.shop-grid--grouped {
  display: block;
}

.shop-group {
  margin-bottom: 2.5rem;
}

.shop-group-title {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.shop-group-more {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.shop-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.bestsellers-section-foot {
  text-align: center;
  margin: 1.25rem 0 0;
}

.cart-promo-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cart-promo-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.cart-promo-banner p {
  margin: 0 0 0.35rem;
}

.cart-promo-banner--eligible {
  background: rgba(201, 169, 98, 0.14);
  border: 1px solid rgba(201, 169, 98, 0.35);
}

.cart-promo-banner--applied {
  background: rgba(76, 120, 86, 0.1);
  border: 1px solid rgba(76, 120, 86, 0.25);
}

.cart-drawer-discount {
  color: #3d6848;
  font-size: 0.9rem;
}

.checkout-discount {
  color: #3d6848;
  margin: 0.35rem 0;
}

.checkout-promo-hint {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  background: rgba(201, 169, 98, 0.12);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.product-pair-promo {
  margin: 1.75rem 0 0;
}

.product-pair-promo-inner {
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 225, 216, 0.35));
}

.product-pair-promo-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-pair-promo-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.product-pair-promo-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.product-pair-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.product-pair-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.product-pair-card-link {
  text-decoration: none;
  color: inherit;
}

.product-pair-card-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f6f0ea;
}

.product-pair-card h3 {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}

.product-pair-card-price {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.product-pair-card-atc {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.45rem 0.5rem;
}

.product-pair-promo-foot {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}


.nav-dropdown-soon {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.nav-dropdown-list li .nav-dropdown-soon::before {
  content: "Coming soon — ";
  color: var(--muted);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-empty {
  padding: 0;
}

.shop-empty-card {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.shop-empty-card h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.shop-empty-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.shop-empty-subscribe {
  display: flex;
  gap: 0.5rem;
  margin: 1.4rem auto 0.5rem;
  max-width: 380px;
}

.shop-empty-subscribe input[type="email"] {
  flex: 1 1 auto;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}

.shop-empty-subscribe button {
  flex: 0 0 auto;
}

.shop-empty-foot {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}


.bestsellers-section--secondary {
  padding-top: 1rem;
}

.bestsellers-section--secondary .section-title {
  margin-top: 0.25rem;
}

.eyebrow--center {
  text-align: center;
}

.bestsellers-section-lead {
  max-width: 540px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bestsellers-coming-soon {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.bestsellers-coming-soon-line {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--ink-soft);
}


/* ---------------- REELS / #SUNDAYHAIRCO ---------------- */
.reels-section {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(180deg, var(--cream-soft) 0%, var(--page-warm) 100%);
}

.reels-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.reels-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}

.reels-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.reels-section .section-title {
  margin: 0.4rem 0 0.75rem;
}

.reels-section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.reels-wrap {
  position: relative;
  margin-top: 0.5rem;
}

.reels-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.5rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reels-track::-webkit-scrollbar { display: none; }

.reel-card {
  flex: 0 0 auto;
  width: clamp(180px, 21vw, 240px);
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  scroll-snap-align: start;
  box-shadow: 0 14px 36px rgba(31, 24, 20, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
  isolation: isolate;
}

.reel-card:hover,
.reel-card:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 22px 48px rgba(31, 24, 20, 0.28);
  outline: none;
}

.reel-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.reel-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.reel-card:hover .reel-card-media img {
  transform: scale(1.05);
}

.reel-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.0) 35%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 28%);
  pointer-events: none;
}

.reel-card-platform {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.reel-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.reel-card-play svg {
  margin-left: 3px;
}

.reel-card:hover .reel-card-play,
.reel-card:focus-visible .reel-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reel-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.95rem 0.95rem;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.reel-card-caption {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.reel-card-stats {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.reel-card-handle {
  font-weight: 600;
}

.reel-card-views {
  opacity: 0.9;
}

.reels-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.reels-arrow.prev { left: -8px; }
.reels-arrow.next { right: -8px; }

.reels-cta {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .reels-section { padding: 3.25rem 0 3rem; }
  .reel-card { width: clamp(160px, 60vw, 220px); }
  .reels-arrow { display: none; }
  .reels-track { padding-left: 1rem; padding-right: 1rem; }
}


/* ---------------- COMMUNITY POSTS ---------------- */
.community-section {
  padding: 3rem 0 4rem;
  background: var(--page-warm);
  border-top: 1px solid var(--line-soft);
}

.community-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.community-top-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
}

.community-title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.community-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.community-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem;
  flex-shrink: 0;
}

.community-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.community-sort-btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* Composer */
.community-composer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.75rem;
  margin-top: 1rem;
  box-shadow: none;
}

.community-composer--after {
  margin-top: 1rem;
}

.community-composer-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.community-composer-meta {
  flex: 1;
  min-width: 0;
}

.community-composer-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.community-composer-handle input {
  appearance: none;
  width: 100%;
  margin-top: 2px;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  font-size: 0.8rem;
  color: var(--ink-soft);
  outline: none;
}

.community-composer-handle input:focus {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.community-composer-body {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 64px;
  background: var(--cream-soft);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease;
}

.community-composer-body:focus {
  border-color: var(--accent);
  background: var(--white);
}

.community-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.community-composer-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.community-composer-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #b8552e;
}

/* Compact join bar — below feed */
.community-signin--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.community-signin-line {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.community-signin-kicker {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

@media (min-width: 640px) {
  .community-signin-kicker {
    display: inline;
    margin-right: 0.35rem;
    margin-bottom: 0;
  }
}

.community-signin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem 0.9rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.community-ig-btn--sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.78rem;
  gap: 0.4rem;
}

.community-account-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.community-account-link:hover {
  color: var(--accent);
}

.community-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  color: #fff;
  border: 0;
}

.community-ig-btn:hover {
  filter: brightness(1.05);
}

.community-ig-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Track + cards */
.community-wrap {
  position: relative;
  margin-top: 0;
}

.community-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.5rem;
  padding: 0.35rem 0.1rem 1.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.community-track::-webkit-scrollbar { display: none; }

.community-loading {
  margin: 2rem auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.community-empty {
  flex: 0 0 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.community-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  margin: 0 auto 0.75rem;
}

.community-empty h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.community-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.community-post {
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 390px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 0.8rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 16px 40px rgba(31, 24, 20, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.community-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(31, 24, 20, 0.12);
}

.community-post-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.community-post-header:hover .community-post-name {
  color: var(--accent);
}

.community-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
}

.community-avatar--xs { width: 28px; height: 28px; font-size: 0.85rem; }
.community-avatar--sm { width: 38px; height: 38px; font-size: 1rem; }
.community-avatar--lg { width: 40px; height: 40px; font-size: 1.05rem; }

.community-post-author {
  min-width: 0;
}

.community-post-name {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 200ms ease;
}

.community-post-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.community-post-time {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.community-post-body {
  flex: 1;
}

.community-post-text {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  line-height: 1.52;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.community-post-image {
  margin-top: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-soft);
}

.community-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.community-action {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}

.community-action:hover {
  background: rgba(31, 24, 20, 0.06);
  color: var(--ink);
}

.community-action.is-active {
  color: var(--accent);
}

.community-action-count {
  font-variant-numeric: tabular-nums;
}

.community-comment-toggle {
  margin-left: 0;
}

.community-action-menu {
  margin-left: auto;
}

/* Comments */
.community-comments {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
  margin-top: 0.4rem;
}

.community-comments-loading,
.community-comments-empty,
.community-comments-signin {
  margin: 0 0 0.5rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.community-comment-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 220px;
  overflow-y: auto;
}

.community-comment {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.community-comment-body {
  flex: 1;
  min-width: 0;
}

.community-comment-meta {
  margin: 0 0 0.1rem;
  font-size: 0.75rem;
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
}

.community-comment-handle {
  font-weight: 600;
  color: var(--ink);
}

.community-comment-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}

.community-comment-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.community-comment-form input[type="text"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  outline: none;
  background: var(--cream-soft);
  color: var(--ink);
}

.community-comment-form input[type="text"]:focus {
  border-color: var(--accent);
  background: var(--white);
}

.btn.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
}

.community-arrow.prev { left: -8px; }
.community-arrow.next { right: -8px; }
.community-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

@media (max-width: 720px) {
  .community-section { padding: 2.25rem 0 3rem; }
  .community-post { width: clamp(268px, 82vw, 340px); }
  .community-arrow { display: none; }
  .community-track { padding-left: 0.25rem; padding-right: 0.25rem; }
  .community-composer { padding: 0.75rem; }
}

