:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-2: #eef7fa;
  --ink: #10211f;
  --muted: #60706d;
  --line: #dbe4df;
  --green: #0d4b3f;
  --green-2: #173f38;
  --sky: #d9f0f7;
  --sky-strong: #78c8df;
  --amber: #c68b32;
  --danger-soft: #fff5e8;
  --shadow: 0 18px 60px rgba(17, 42, 38, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-cart-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  background: var(--green-2);
  color: #f7fffb;
  font-size: 0.82rem;
}

.topbar__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 5vw, 72px);
}

.topbar span {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 223, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 198px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 75, 63, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fffd, #e9f8f2);
}

.brand__mark span {
  width: 17px;
  height: 26px;
  border: 2px solid var(--green);
  border-top: 0;
  border-radius: 4px 4px 9px 9px;
  position: relative;
}

.brand__mark span::before,
.brand__mark span::after {
  content: "";
  position: absolute;
  background: var(--green);
}

.brand__mark span::before {
  width: 15px;
  height: 2px;
  top: -5px;
  left: -1px;
}

.brand__mark span::after {
  width: 9px;
  height: 9px;
  right: -8px;
  top: -13px;
  border-radius: 9px 9px 0 9px;
  transform: rotate(-25deg);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 0.9rem;
  color: #253a36;
}

.nav a {
  padding: 28px 2px 25px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
}

.search {
  width: min(28vw, 330px);
  min-width: 230px;
}

.search input,
.consult-form input,
.consult-form textarea,
.section-tools select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search input {
  height: 42px;
  padding: 0 14px;
}

.search input:focus,
.consult-form input:focus,
.consult-form textarea:focus,
.section-tools select:focus {
  border-color: var(--sky-strong);
  box-shadow: 0 0 0 4px rgba(120, 200, 223, 0.22);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  position: relative;
}

.cart-icon {
  width: 17px;
  height: 15px;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: rotate(-18deg);
}

#cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sky-strong);
  color: #06333f;
  font-size: 0.72rem;
  border: 2px solid #fff;
}

.hero {
  min-height: min(72vh, 680px);
  display: grid;
  align-items: center;
  padding: clamp(54px, 7vw, 96px) clamp(20px, 6vw, 78px);
  background-image:
    linear-gradient(90deg, rgba(247, 248, 245, 0.98) 0%, rgba(247, 248, 245, 0.86) 38%, rgba(247, 248, 245, 0.3) 66%),
    url("assets/hero-supplements.jpg");
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  width: 100%;
  max-width: 590px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  font-weight: 700;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.4vw, 6.2rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero__copy {
  width: min(520px, 100%);
  margin-bottom: 28px;
  color: #354744;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 75, 63, 0.18);
}

.button--secondary {
  background: #fff;
  color: var(--green);
  border-color: rgba(13, 75, 63, 0.28);
}

.button--ghost {
  background: var(--surface-2);
  color: #0c4857;
  border-color: rgba(120, 200, 223, 0.35);
}

.button[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted);
  background: #f4f7f6;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(13, 75, 63, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f3934;
  font-size: 0.84rem;
  font-weight: 700;
}

.category-rail {
  width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 14px clamp(20px, 6vw, 78px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-chip {
  min-width: max-content;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344540;
  font-weight: 800;
}

.category-chip.is-active {
  border-color: var(--sky-strong);
  background: var(--sky);
  color: #0a3d49;
}

.section {
  padding: clamp(56px, 8vw, 94px) clamp(20px, 6vw, 78px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section-tools select {
  min-width: 152px;
  height: 42px;
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 386px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(17, 42, 38, 0.06);
}

.product-card__visual {
  min-height: 146px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(217, 240, 247, 0.92), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 72% 18%, rgba(198, 139, 50, 0.18), transparent 26%);
  border-bottom: 1px solid var(--line);
}

.product-bottle {
  width: 62px;
  height: 96px;
  border: 2px solid rgba(16, 33, 31, 0.18);
  border-radius: 9px 9px 13px 13px;
  background: #fff;
  position: relative;
  box-shadow: 0 16px 24px rgba(16, 33, 31, 0.1);
}

.product-bottle::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -15px;
  width: 28px;
  height: 16px;
  border-radius: 5px 5px 0 0;
  background: var(--green);
}

.product-bottle::after {
  content: "";
  position: absolute;
  inset: 36px 7px auto;
  height: 24px;
  border-radius: 4px;
  background: var(--sky);
  border-top: 5px solid var(--green);
}

.product-card:nth-child(3n) .product-bottle::after {
  background: #f6e1bd;
}

.product-card:nth-child(4n) .product-bottle::before {
  background: #101f1c;
}

.product-card__body {
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 10px;
}

.pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef7f3;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
}

.stock-status {
  color: #0c4857;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-card h3 {
  min-height: 48px;
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.24;
}

.product-brand,
.product-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-note {
  min-height: 42px;
  margin: 10px 0 0;
}

.product-card__footer {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row strong {
  font-size: 1.16rem;
}

.ml-badge {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions .button {
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.75fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  background: #fff;
  border-block: 1px solid var(--line);
}

.consult-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.consult-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(120, 200, 223, 0.45);
  border-radius: 8px;
  background: var(--surface-2);
}

.consult-form label {
  display: grid;
  gap: 7px;
  color: #263c37;
  font-size: 0.88rem;
  font-weight: 800;
}

.consult-form input,
.consult-form textarea {
  padding: 12px 13px;
  resize: vertical;
}

.ml-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(247, 248, 245, 0.92)),
    var(--bg);
}

.ml-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ml-panel {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ml-panel--blue {
  background: var(--surface-2);
  border-color: rgba(120, 200, 223, 0.5);
}

.ml-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(13, 75, 63, 0.08);
  color: var(--green);
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) 1fr;
  gap: 28px;
  align-items: start;
  background: var(--danger-soft);
  border-top: 1px solid #eedfc9;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  color: #4d4032;
  font-weight: 700;
}

.legal-list li + li {
  margin-top: 10px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  justify-content: flex-end;
  background: rgba(10, 25, 23, 0.28);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-drawer__panel {
  width: min(420px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-drawer__header,
.cart-drawer__footer {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__header h2 {
  font-family: inherit;
  font-size: 1.1rem;
}

.cart-items {
  overflow: auto;
  padding: 10px 20px;
}

.cart-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong {
  line-height: 1.2;
}

.cart-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-drawer__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-drawer__footer p {
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-drawer__footer .button {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 78px);
  background: var(--green-2);
  color: #effbf8;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(239, 251, 248, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 18px;
}

.footer-links a {
  color: rgba(239, 251, 248, 0.88);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

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

@media (max-width: 820px) {
  .topbar__inner {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 14px;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
  }

  .search {
    width: 100%;
    min-width: 0;
  }

  .hero {
    min-height: 620px;
    align-items: end;
    background-image:
      linear-gradient(180deg, rgba(247, 248, 245, 0.22), rgba(247, 248, 245, 0.98) 58%),
      url("assets/hero-supplements.jpg");
    background-position: center top;
  }

  .hero__content {
    padding-top: 210px;
    max-width: 100%;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .product-grid,
  .ml-grid,
  .section--split,
  .legal-section {
    grid-template-columns: 1fr;
  }

  .section--split {
    gap: 28px;
  }
}

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

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

  .hero__actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
