body {
  min-width: 320px;
  --action-bg: oklch(0.57 0.122 162);
  --action-bg-hover: var(--green-700);
  --action-fg: #fff;
  --sh-action: 0 12px 28px oklch(0.57 0.122 162 / 0.28);
}

.card,
.field,
.listing-layout > *,
.detail-grid > *,
.checkout-grid > * {
  min-width: 0;
}

.promo-ribbon {
  background: var(--green-800);
  color: #fff;
  border-bottom: 1px solid oklch(0.38 0.06 160);
  font-size: var(--fs-xs);
  padding-block: var(--s-2);
}

.promo-ribbon a,
.promo-ribbon .muted {
  color: inherit;
}

.topbar-inner {
  min-height: 34px;
}

.nav-shell {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}

.brand-logo img {
  width: 212px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-3), 2vw, var(--s-6));
  justify-content: center;
}

.mobile-nav {
  display: none;
}

.cart-button {
  min-width: 76px;
  padding-inline: var(--s-4);
}

.btn-primary,
.btn-dark {
  --btn-bg: var(--action-bg);
  --btn-fg: var(--action-fg);
  box-shadow: var(--sh-action);
}

.btn-primary:hover,
.btn-dark:hover {
  --btn-bg: var(--action-bg-hover);
  box-shadow: 0 16px 34px oklch(0.57 0.122 162 / 0.34);
}

.btn-primary:focus-visible,
.btn-dark:focus-visible {
  box-shadow: 0 0 0 3px oklch(0.57 0.122 162 / 0.32), var(--sh-action);
}

.hero-poc {
  padding-block: var(--s-16) var(--s-12);
  overflow: hidden;
}

.hero-grid-poc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: var(--s-12);
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 470px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xl);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-2xl);
  background:
    linear-gradient(90deg, oklch(1 0 0 / 0.68), transparent 44%),
    linear-gradient(180deg, oklch(0.28 0.05 165 / 0.05), oklch(0.28 0.05 165 / 0.22));
  pointer-events: none;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: heroSlide 24s infinite;
}

.hero-slide:nth-child(1) {
  opacity: 1;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes heroSlide {
  0%,
  20% {
    opacity: 1;
    transform: scale(1);
  }

  25%,
  95% {
    opacity: 0;
    transform: scale(1.035);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.float-card {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s-4) var(--s-5);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .hero-slide:first-child {
    opacity: 1;
  }
}

.hero-search {
  margin-top: var(--s-7);
  max-width: 620px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.stats-band {
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
  padding-block: var(--s-7);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.metric strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--green-800);
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 132px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: var(--s-5);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #fff, var(--cream));
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--s-4);
}

.product-thumb.is-empty {
  color: var(--green-700);
  background:
    radial-gradient(circle at 72% 22%, var(--green-100), transparent 31%),
    linear-gradient(145deg, var(--green-50), var(--cream));
}

.product-card h3 {
  font-size: 1.08rem;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.28;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-block: var(--s-3);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-2);
  margin-top: auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-10);
  align-items: start;
}

.product-visual {
  min-height: 420px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 74% 24%, var(--green-100), transparent 30%),
    linear-gradient(150deg, var(--surface), var(--cream));
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--s-8);
}

.product-visual-image {
  width: min(100%, 330px);
  min-height: 280px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  background: #fff;
}

.product-visual-image img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
  padding: var(--s-6);
}

.product-visual-image.is-empty {
  color: var(--green-700);
  background:
    radial-gradient(circle at 72% 22%, var(--green-100), transparent 31%),
    linear-gradient(145deg, #fff, var(--cream));
}

.pill-bottle {
  width: 142px;
  height: 180px;
  border-radius: 30px 30px 18px 18px;
  background: linear-gradient(180deg, #fff 0 26%, var(--green-100) 26% 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  margin-inline: auto;
  display: grid;
  place-content: center;
}

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

.fact {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s-4);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-5);
  align-items: center;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  gap: var(--s-8);
  align-items: start;
}

.checkout-panel {
  position: sticky;
  top: 132px;
}

.mobile-step-label {
  display: none;
}

.checkout-step {
  display: none;
}

.checkout-step.is-active {
  display: block;
}

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

.option-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  cursor: pointer;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
}

.option-card.is-active {
  background: var(--green-50);
  border-color: var(--green-600);
}

.option-card:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
}

.summary-mini {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}

.summary-mini:last-child {
  border-bottom: 0;
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-2);
  color: var(--text-secondary);
}

.sum-row strong {
  color: var(--ink);
}

.dropzone {
  border: 2px dashed var(--green-300);
  border-radius: var(--r-lg);
  background: var(--green-50);
  padding: var(--s-8);
  text-align: center;
}

.family-grid,
.content-grid,
.account-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--s-5);
}

.family-grid > *,
.content-grid > *,
.account-grid > *,
.flow-grid > * {
  min-width: 0;
}

.family-grid h3,
.content-grid h3,
.account-grid h2,
.flow-grid h3 {
  overflow-wrap: anywhere;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: var(--s-10);
}

.footer-logo {
  width: 230px;
  max-width: 100%;
  border-radius: var(--r-sm);
  background: white;
}

.footer-links {
  margin-top: var(--s-4);
}

.footer-contact {
  margin-top: var(--s-4);
  line-height: 1.7;
}

.footer-legal {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid oklch(0.48 0.055 165);
  color: oklch(0.82 0.028 160);
  max-width: 920px;
}

.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-6);
}

.source-link {
  word-break: break-word;
}

.content-copy {
  color: var(--text-secondary);
  line-height: 1.72;
}

.content-copy p {
  margin: 0;
}

.search-assist {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-1);
}

.trust-proof-band {
  border-block: 1px solid var(--line);
  background: var(--cream);
  padding-block: var(--s-8);
}

.trust-proof-head {
  align-items: flex-end;
  margin-bottom: var(--s-7);
}

.trust-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.trust-proof-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s-4);
}

.trust-proof-item h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.25;
}

.trust-proof-note {
  margin-top: var(--s-5);
}

.ordering-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--s-8);
  align-items: start;
}

.ordering-copy {
  position: sticky;
  top: 132px;
}

.ordering-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.ordering-step {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s-5);
}

.ordering-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-full);
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 800;
  margin-bottom: var(--s-3);
}

.ordering-step strong {
  display: block;
  font-size: var(--fs-md);
}

.ordering-step p {
  margin-top: var(--s-2);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.family-card,
.browse-card {
  min-height: 100%;
}

.family-card .badge,
.browse-card .badge {
  white-space: normal;
  text-align: right;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: var(--s-10);
  align-items: center;
}

.offer-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.offer-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.offer-table th,
.offer-table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-sm);
}

.offer-table th {
  color: var(--text-secondary);
  font-weight: 800;
  background: var(--cream);
}

.offer-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    overflow-x: visible;
    padding: 0 var(--s-5) var(--s-3);
  }

  .mobile-nav a {
    flex: 1 1 calc(33.333% - var(--s-2));
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 0 var(--s-4);
  }

  .brand-logo img {
    width: 176px;
  }

  .hero-grid-poc,
  .detail-grid,
  .listing-layout,
  .checkout-grid,
  .footer-grid,
  .ordering-strip,
  .split-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel,
  .checkout-panel,
  .ordering-copy {
    position: static;
  }

  .stats-grid,
  .option-grid,
  .trust-proof-grid,
  .ordering-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-poc {
    padding-block: var(--s-10);
  }

  .hero-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: var(--r-xl);
    padding: var(--s-3);
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .stats-grid,
  .facts-grid,
  .option-grid,
  .trust-proof-grid,
  .ordering-steps,
  .cart-line {
    grid-template-columns: 1fr;
  }

  .trust-proof-head {
    align-items: stretch;
  }

  .trust-proof-item {
    grid-template-columns: 1fr;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .row.gap-3,
  .row.gap-4 {
    flex-wrap: wrap;
  }

  .row.gap-3 > .btn,
  .row.gap-3 > a.btn,
  .row.gap-3 > button.btn,
  .row.gap-4 > .btn,
  .row.gap-4 > a.btn,
  .row.gap-4 > button.btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-3);
  }

  .step {
    min-width: 0;
    justify-content: center;
  }

  .step-bar {
    display: none;
  }

  .mobile-step-label {
    display: block;
  }

  .checkout-grid .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-content-form] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-content-form] > * {
    min-width: 0;
    width: 100%;
  }

  .card-pad-lg {
    padding: var(--s-5);
  }
}
