:root {
  --bg: #f6f9fe;
  --surface: #ffffff;
  --surface-soft: #eef3fc;
  --text: #0a1a33;
  --muted: #5a6b87;
  --accent: #2563eb;
  --accent-dark: #1e3a8a;
  --accent-soft: #dbe7fb;
  --border: rgba(10, 26, 51, 0.1);
  --line: rgba(37, 99, 235, 0.22);
  --shadow: 0 18px 45px rgba(20, 44, 92, 0.12);
  --radius: 0.1rem;
  --container: 1180px;
  --button-inverse: #ffffff;
  --font: "Inter", Arial, Helvetica, sans-serif;

  /* surfaces that are light-colored panels in light mode */
  --header-bg: rgba(246, 249, 254, 0.9);
  --announce-bg: #1e3a8a;
  --announce-text: #eaf1ff;
  --panel-top: #ffffff;
  --cta-a: #eaf1ff;
  --cta-b: #dbe7fb;
  --footer-a: #eef3fc;
  --footer-b: #e3ecfa;
  --badge-bg: var(--accent-dark);
  --badge-text: #ffffff;
  --hover-strong: var(--accent-dark);
  --on-accent-pill: var(--accent-dark);
}

[data-theme="dark"] {
  --bg: #060d1a;
  --surface: #0d1728;
  --surface-soft: #111f38;
  --text: #e9f0ff;
  --muted: #93a6c9;
  --accent: #3b82f6;
  --accent-dark: #84acf8;
  --accent-soft: rgba(59, 130, 246, 0.2);
  --border: rgba(140, 170, 230, 0.16);
  --line: rgba(96, 140, 230, 0.24);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);

  --header-bg: rgba(6, 13, 26, 0.82);
  --announce-bg: #0a1730;
  --announce-text: #c7dcff;
  --panel-top: var(--surface);
  --cta-a: #0e1c34;
  --cta-b: #12213c;
  --footer-a: #0a1526;
  --footer-b: #0c1930;
  --badge-bg: var(--accent);
  --badge-text: #ffffff;
  --hover-strong: #1d4ed8;
  --on-accent-pill: #1e3a8a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
}

/* Ambient background layers (blue glow + grid lines + noise) */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-layer--glow {
  z-index: -3;
  opacity: 0.9;
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.2), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(30, 58, 138, 0.14), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(59, 130, 246, 0.16), transparent 30%),
    radial-gradient(circle at 28% 88%, rgba(37, 99, 235, 0.12), transparent 28%);
  animation: bg-float 20s ease-in-out infinite alternate;
}

.bg-layer--grid {
  z-index: -2;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 12%, black 88%, transparent);
}

.bg-layer--noise {
  z-index: -1;
  opacity: 0.35;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 80% 80%, rgba(10, 26, 51, 0.1) 0 1px, transparent 1px 100%);
  background-size: 26px 26px, 30px 30px;
  mix-blend-mode: soft-light;
}

@keyframes bg-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -22px, 0) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-layer--glow {
    animation: none;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

/* Announcement bar */
.announcement {
  background: var(--announce-bg);
  color: var(--announce-text);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0rem 0;
}

.header-theme {
  justify-self: end;
  margin-left: -1rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  color: var(--accent);
}

.search {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
}

.search input:focus {
  outline: none;
}

.search-button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 1.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background: var(--hover-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-link-top {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-link-bottom {
  font-size: 0.95rem;
  font-weight: 700;
}

.header-link:hover .header-link-bottom {
  color: var(--accent);
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-button:hover {
  background: var(--hover-strong);
  border-color: var(--hover-strong);
  transform: translateY(-1px);
}

.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  background: #fff;
  color: var(--on-accent-pill);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.header-orders {
  position: relative;
  margin-right: -1rem;
}

.orders-count {
  position: absolute;
  top: -0.15rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--header-bg);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.orders-count[hidden] {
  display: none !important;
}

/* Category bar */
.category-bar {
  border-top: 1px solid var(--border);
}

.category-bar-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-pill:hover {
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.category-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: transparent;
  color: var(--text);
}

/* Collapsible hero + intro region: fades and collapses to reveal the catalog
   the moment the user searches. Uses the grid 1fr->0fr row trick so the height
   animates smoothly without hard-coded pixel values. */
.home-preface {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  transition: grid-template-rows 0.45s ease, opacity 0.3s ease, transform 0.4s ease;
}

.home-preface__inner {
  overflow: hidden;
  min-height: 0;
}

body.is-searching .home-preface {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-preface {
    transition: opacity 0.2s ease;
  }
}

.hero-copy-side {
  display: flex;
  align-items: center;
  min-height: 62vh;
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem) 3.5rem clamp(1.25rem, 4vw, 3rem);
}

.hero-media {
  min-height: 62vh;
  background:
    linear-gradient(rgba(10, 26, 51, 0.42), rgba(30, 58, 138, 0.42)),
    var(--r2-bg, none) center/cover no-repeat;
  background-color: #0a1a33;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(100%, 38rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.section h2,
.cta-box h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-line {
  display: block;
}

.hero-eyebrow {
  margin-bottom: 0.75rem;
}

.hero-copy {
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 2rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.button-primary:hover {
  background: var(--hover-strong);
  border-color: var(--hover-strong);
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

/* Intro strip */
.intro-strip {
  padding: 1rem 0 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.intro-grid article,
.newsletter-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
}

.intro-grid article {
  padding: 1.5rem 1.5rem 1.6rem;
}

.intro-number {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.intro-grid h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.intro-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100vw;
  max-width: none;
  padding: 2.5rem 0 0.75rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

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

.section-divider-mark {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
  display: inline-block;
  transform: rotate(45deg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel-top) 0%, var(--accent-soft) 100%);
  box-shadow: 0 0 0 0.45rem rgba(37, 99, 235, 0.07);
}

.section-accent {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--surface-soft) 100%);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-box h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Catalog */
.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
  flex-wrap: wrap;
}

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.result-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.sort-field {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sort-field select {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.sort-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, transform 0.2s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem 1.25rem;
}

.product-cat {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.product-rating {
  color: var(--accent-dark);
  font-weight: 700;
}

.product-dose {
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.add-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.add-button:hover {
  background: var(--hover-strong);
  border-color: var(--hover-strong);
  transform: translateY(-1px);
}

.add-button.is-added {
  background: var(--surface);
  color: var(--accent-dark);
}

.catalog-empty {
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.catalog-page-section {
  padding-top: 2.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.catalog-more[hidden] {
  display: none;
}

.catalog-more .button {
  min-width: 16rem;
}

/* Quality split */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.quality-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.quality-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.quality-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  transform: rotate(45deg);
  background: var(--accent);
}

.quality-image-card {
  margin: 0;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quality-image-card img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

.quality-image-card figcaption {
  padding: 0.95rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marquee gallery */
.gallery-marquee {
  width: 100vw;
  max-width: none;
  overflow: hidden;
  margin-top: 2.25rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-scroll 45s linear infinite;
}

.gallery-slide {
  flex: 0 0 20rem;
  margin: 0;
  position: relative;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

.gallery-slide::after {
  content: attr(data-label);
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.15rem 1rem 0.9rem;
  background: linear-gradient(180deg, rgba(10, 26, 51, 0) 0%, rgba(10, 26, 51, 0.78) 100%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #eaf1ff;
  pointer-events: none;
}

@keyframes gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
  }
}

/* CTA / newsletter */
.cta-section {
  padding-top: 1rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--cta-a) 0%, var(--cta-b) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
}

.newsletter-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.newsletter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.newsletter-card input {
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.newsletter-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.newsletter-submit {
  margin-top: 0.35rem;
  width: 100%;
}

.newsletter-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Special request */
.request-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.request-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.request-copy > p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.request-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.request-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.request-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  transform: rotate(45deg);
  background: var(--accent);
}

.request-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.request-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.request-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.request-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.request-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.request-optional {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
}

.request-field input,
.request-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.request-field textarea {
  resize: vertical;
}

.request-field input:focus,
.request-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.request-submit {
  margin-top: 0.35rem;
  width: 100%;
}

.request-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.request-note.is-success {
  color: var(--accent-dark);
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--footer-a) 0%, var(--footer-b) 100%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding-bottom: 1.75rem;
}

.footer-brand {
  max-width: 26rem;
}

.footer-grid > * {
  min-width: 0;
  padding: 1.6rem 1.4rem 1.35rem;
  border-right: 1px solid var(--line);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.95rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-brand p,
.footer-column p,
.footer-column a,
.footer-bottom {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-column p,
.footer-column a,
.footer-brand p {
  margin: 0;
}

.footer-column a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1.35rem;
}

.footer-bottom p {
  margin: 0;
}

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

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: cart-fade-in 0.22s ease forwards;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 28rem);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  animation: cart-slide-in 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.cart-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-top);
}

.cart-panel-head__text .eyebrow {
  margin: 0 0 0.35rem;
}

.cart-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cart-close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cart-close:hover {
  background: var(--accent-soft);
  transform: scale(1.05);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.cart-item-cat {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cart-item-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item-dose {
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.cart-qty button {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cart-qty button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.cart-qty span {
  min-width: 1.35rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
}

.cart-line-total {
  font-weight: 800;
  font-size: 1rem;
  padding-top: 0.15rem;
}

.cart-empty {
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--surface-soft);
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-total-row > span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-total-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cart-checkout {
  width: 100%;
}

.cart-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.cart-note.is-success {
  color: var(--accent-dark);
  font-weight: 700;
}

.cart-note.is-error {
  color: #d64545;
  font-weight: 700;
}

@keyframes cart-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cart-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Orders drawer */
body.orders-open {
  overflow: hidden;
}

.orders-drawer {
  position: fixed;
  inset: 0;
  z-index: 65;
}

.orders-drawer[hidden] {
  display: none;
}

.orders-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: cart-fade-in 0.22s ease forwards;
}

.orders-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 30rem);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  animation: cart-slide-in 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.orders-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-top);
}

.orders-panel-head__text .eyebrow {
  margin: 0 0 0.35rem;
}

.orders-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.orders-close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.orders-close:hover {
  background: var(--accent-soft);
  transform: scale(1.05);
}

.orders-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
}

.orders-state {
  margin: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.orders-state.is-error {
  color: #d64545;
  font-weight: 700;
}

.orders-sections {
  display: grid;
  gap: 1.35rem;
}

.orders-section__title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.orders-list {
  display: grid;
  gap: 0.85rem;
}

.order-history-card {
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-history-meta {
  min-width: 0;
}

.order-history-id {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
  word-break: break-all;
}

.order-history-date {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.order-history-total {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.order-status-badge--new {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.order-status-badge--processing {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.order-status-badge--fulfilled {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.order-status-badge--cancelled {
  background: rgba(214, 69, 69, 0.12);
  color: #d64545;
}

.order-history-items {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.order-history-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.order-history-item-name {
  font-weight: 700;
}

.order-history-item-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.order-history-shipping {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ─── Checkout modal ─────────────────────────────────────────────────────── */

body.checkout-open {
  overflow: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.checkout-modal.hidden {
  display: none !important;
}

.checkout-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.checkout-modal.is-open .checkout-modal__overlay {
  opacity: 1;
}

.checkout-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(58rem, 94vw);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.28s ease;
}

.checkout-modal.is-open .checkout-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.checkout-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.checkout-modal__close:hover {
  background: var(--accent-soft);
  transform: scale(1.05);
}

.checkout-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.75fr);
  gap: 0;
}

.checkout-modal__main {
  padding: 1.75rem 1.75rem 1.5rem;
}

.checkout-modal__title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.checkout-modal__subtitle {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36rem;
}

.checkout-form {
  display: grid;
  gap: 1rem;
}

.checkout-section {
  display: grid;
  gap: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkout-section__title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-row {
  display: grid;
  gap: 0.85rem;
}

.checkout-row + .checkout-row,
.checkout-row + .checkout-field,
.checkout-field + .checkout-row {
  margin-top: 0.85rem;
}

.checkout-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-row--3 {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.checkout-field {
  display: grid;
  gap: 0.35rem;
}

.checkout-field + .checkout-field {
  margin-top: 0.85rem;
}

.checkout-row .checkout-field + .checkout-field {
  margin-top: 0;
}

.checkout-field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-field em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
}

.checkout-field input {
  width: 100%;
  height: 2.25rem;
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
  -webkit-appearance: none;
}

.checkout-field input:-webkit-autofill,
.checkout-field input:-webkit-autofill:hover,
.checkout-field input:-webkit-autofill:focus,
.checkout-field input:-webkit-autofill:active,
.checkout-field input:autofill,
.checkout-field input:autofill:hover,
.checkout-field input:autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  caret-color: var(--text);
  height: 2.25rem !important;
  padding: 0 0.85rem !important;
  line-height: 1.4 !important;
  font-size: 0.98rem !important;
  font-family: inherit !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  box-shadow: 0 0 0 1000px var(--bg) inset !important;
  transition: background-color 99999s ease-out 0s;
}

.checkout-field input:-webkit-autofill:focus,
.checkout-field input:autofill:focus {
  border-color: var(--accent) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset, 0 0 0 3px var(--accent-soft) !important;
  box-shadow: 0 0 0 1000px var(--bg) inset, 0 0 0 3px var(--accent-soft) !important;
}

.checkout-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.checkout-field input[aria-invalid="true"] {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15);
}

.checkout-payment-note {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-feedback {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-feedback.is-error {
  color: #d64545;
  font-weight: 700;
}

.checkout-feedback.is-success {
  color: var(--accent-dark);
  font-weight: 700;
}

.checkout-submit {
  width: 100%;
  margin-top: 0.15rem;
}

.checkout-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.checkout-summary {
  padding: 1.75rem 1.35rem 1.5rem;
  border-left: 1px solid var(--border);
  background: var(--surface-soft);
}

.checkout-summary .eyebrow {
  margin: 0 0 0.35rem;
}

.checkout-summary__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.checkout-summary__items {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.checkout-summary__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-summary__item img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.checkout-summary__item-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.checkout-summary__item-meta {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.checkout-summary__item-price {
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.checkout-summary__total > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-summary__total strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.checkout-summary__note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .cart-backdrop,
  .cart-panel,
  .checkout-modal__overlay,
  .checkout-modal__dialog {
    animation: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "brand actions theme"
      "search search search";
    row-gap: 0.85rem;
  }

  .brand { grid-area: brand; justify-self: start; }
  .header-actions { grid-area: actions; justify-self: end; }
  .header-theme { grid-area: theme; justify-self: end; }
  .search { grid-area: search; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy-side {
    order: 2;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-media {
    order: 1;
    min-height: 42vh;
  }

  .intro-grid,
  .split-layout,
  .cta-box,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    margin-top: -2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .gallery-slide {
    flex-basis: 16rem;
  }

  .checkout-modal__layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .checkout-row--2,
  .checkout-row--3 {
    grid-template-columns: 1fr;
  }

  .checkout-modal {
    padding: 0 !important;
    align-items: flex-end;
  }

  .checkout-modal__dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-top: 2px solid var(--accent) !important;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-heading {
    align-items: flex-start;
  }

  .header-actions {
    gap: 0.85rem;
  }

  .header-link {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta-box {
    padding: 1.75rem;
  }

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

  .footer-grid > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Theme toggle (header) */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  opacity: 0.85;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.theme-toggle__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-toggle__svg--dark {
  width: 90%;
  height: 90%;
  margin: auto;
}

/* ─── Auth gate ─────────────────────────────────────────────────────────── */

/* Hide the store chrome until we know the visitor is signed in. */
body.auth-pending .site-header,
body.auth-pending main,
body.auth-pending .site-footer,
body.auth-pending .announcement,
body.auth-pending .cart-drawer,
body.auth-pending .orders-drawer {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  transition: opacity 0.25s ease;
}

body:not(.auth-pending) .auth-gate {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.auth-gate__spinner {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: auth-gate-spin 0.7s linear infinite;
}

.auth-gate__text {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

@keyframes auth-gate-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate__spinner {
    animation-duration: 2s;
  }
}

/* ─── Account modal ─────────────────────────────────────────────────────── */

body.account-open {
  overflow: hidden;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.account-modal[hidden] {
  display: none;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.5);
  backdrop-filter: blur(3px);
  animation: cart-fade 0.2s ease;
}

.account-dialog {
  position: relative;
  width: min(100%, 24rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  animation: account-pop 0.2s ease;
}

@keyframes account-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.account-close:hover {
  background: var(--accent-soft);
  transform: scale(1.05);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
}

.account-avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

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

.account-head-text {
  min-width: 0;
}

.account-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.account-email {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
}

.account-details {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.account-detail {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
}

.account-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-detail dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.account-detail dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.account-mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
}

.account-signout {
  width: 100%;
}

/* ─── Product detail modal ──────────────────────────────────────────────── */

body.product-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.product-modal.hidden {
  display: none !important;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.product-modal.is-open .product-modal__overlay {
  opacity: 1;
}

.product-modal__content {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.28s ease;
}

.product-modal.is-open .product-modal__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 10;
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-modal__close:hover {
  background: var(--accent-soft);
  transform: scale(1.05);
}

.product-modal__body {
  padding: 22px;
}

.product-detail__image {
  height: 450px;
  margin: -22px -22px 18px;
  overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}

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

.product-detail__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.7rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-detail__badge:empty {
  display: none;
}

.product-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-detail__title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.product-detail__cat {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

.product-detail__description {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-detail__meta-item {
  padding: 0 12px;
  border: none;
  border-radius: 0;
  background: none;
}

.product-detail__meta-item:first-child {
  padding-left: 0;
}

.product-detail__meta-item + .product-detail__meta-item {
  border-left: 1px solid var(--border);
}

.product-detail__meta-item .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.product-detail__meta-item .value {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.product-detail__cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-detail__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-detail__add:hover {
  background: var(--hover-strong);
  border-color: var(--hover-strong);
  transform: translateY(-1px);
}

.product-detail__add.is-added {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--border);
}

.product-detail__add.is-added:hover {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-modal__overlay,
  .product-modal__content {
    transition: none;
  }
}

@media (max-width: 768px) {
  .product-modal {
    padding: 0 !important;
    align-items: flex-end;
  }

  .product-modal__content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 2px solid var(--accent) !important;
  }

  .product-detail__image {
    height: 250px;
  }
}

/* ─── Profile gate (mandatory) ──────────────────────────────────────────── */

body.profile-gate-open {
  overflow: hidden;
}

.profile-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 26, 51, 0.6);
  backdrop-filter: blur(5px);
}

.profile-gate[hidden] {
  display: none;
}

.profile-gate__dialog {
  position: relative;
  width: min(100%, 27rem);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 1.9rem 1.6rem 1.6rem;
  animation: account-pop 0.2s ease;
}

.profile-gate__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.profile-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.profile-gate__subtitle {
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.profile-field label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-field input {
  width: 100%;
  padding: 0.25rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: var(--radius);
  font: inherit;
}

.profile-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.profile-field input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

.profile-field input[aria-invalid="true"] {
  border-color: #d64545;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-feedback {
  min-height: 1.2em;
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: #d64545;
}

.profile-gate__submit {
  width: 100%;
  margin-top: 0.3rem;
}

@media (max-width: 480px) {
  .profile-row {
    grid-template-columns: 1fr;
  }
}
