:root{--primary:#1f4e5a;--accent:#d9714f;--bg:#fbf8f3;--text:#1b2a2f;--on-primary:#ffffff;--font:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;}
/* Styles for the working parts every design shares: buttons, forms, the
   shopping bag, pack chooser, Supplement Facts panel, totals and notices.
   Brand colors and font arrive as CSS variables written by the build step.
   Each design adds its own look after this file. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.note { font-size: 0.92rem; color: color-mix(in srgb, var(--text) 72%, var(--bg)); }
.notice { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 6px; }

.button {
  display: inline-block; background: var(--primary); color: var(--on-primary);
  border: 2px solid var(--primary); border-radius: var(--radius-button, 999px);
  padding: 11px 24px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button.small { padding: 6px 16px; font-size: 0.95rem; }
.button.ghost { background: transparent; color: var(--primary); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Forms */
form section { margin-bottom: 28px; }
label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 12px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: inherit;
  background: #fff; border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); border-radius: var(--radius-input, 10px);
}
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 0 16px; }

/* Totals */
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 12px 0; }
.totals dd { margin: 0; text-align: right; }
.totals .total { font-weight: 700; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--text) 15%, transparent); }

/* Shopping bag */
.sf-bag-button { background: none; border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.sf-bag-count { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #111; font-size: 0.85rem; text-align: center; }
.sf-bag-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 40; }
.sf-bag { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18); }
.sf-bag-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.sf-bag-head h2 { margin: 0; font-size: 1.2rem; }
.sf-bag-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--text); }
.sf-bag-lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.sf-bag-empty { padding: 20px; }
.sf-bag-foot { padding: 16px 20px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.sf-bag-foot .button { display: block; }
.sf-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.sf-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #fff; }
.sf-line-name { font-weight: 600; }
.sf-line-detail { font-size: 0.85rem; color: color-mix(in srgb, var(--text) 70%, var(--bg)); }
.sf-line-price { font-weight: 600; text-align: right; }
.sf-line-controls { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.9rem; }
.sf-line-controls button { border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); background: #fff; border-radius: 6px; min-width: 28px; height: 28px; cursor: pointer; font: inherit; color: var(--text); }
.sf-line-controls .sf-remove { border: 0; background: none; text-decoration: underline; padding: 0 4px; }

/* Pack chooser */
.sf-packs fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.sf-packs legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.sf-pack { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: var(--radius-card, 14px); font-weight: 400; cursor: pointer; background: #fff; }
.sf-pack:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.sf-pack input { width: 18px; height: 18px; margin: 0; }
.sf-pack-name { font-weight: 600; }
.sf-pack-name small { font-weight: 400; color: color-mix(in srgb, var(--text) 70%, var(--bg)); }
.sf-pack-total { font-weight: 700; }
.sf-badge { font-style: normal; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--accent); color: #111; padding: 2px 8px; border-radius: 999px; }
.sf-packs .button { width: 100%; }

/* Supplement Facts */
.facts { border: 2px solid #111; padding: 16px; background: #fff; color: #111; }
.facts h2 { font-size: 1.6rem; border-bottom: 6px solid #111; padding-bottom: 6px; font-family: Arial, Helvetica, sans-serif; }
/* Designs style their own headings; the facts panel keeps the plain label look in every design. */
body .facts h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-style: normal; text-transform: none; letter-spacing: 0; color: #111; }
.facts table { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #111; font-weight: 400; vertical-align: top; }
.facts thead th { font-weight: 700; font-size: 0.85rem; border-bottom: 3px solid #111; }
.facts th.indent-1 { padding-left: 20px; }
.facts th.indent-2 { padding-left: 36px; }
.facts td:last-child, .facts thead th:last-child { text-align: right; }
.facts-note { font-size: 0.88rem; margin: 10px 0 0; }

/* Checkout */
.sf-order-lines .sf-line { grid-template-columns: 56px 1fr auto; }
.sf-addon { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: var(--radius-card, 14px); background: #fff; }
.sf-coupon-row { display: flex; gap: 10px; align-items: flex-end; }
.sf-coupon-row label { flex: 1; margin: 0; }
.sf-terms { margin: 14px 0; }
.status { margin-top: 16px; }
.status.error { color: #a4161a; font-weight: 600; }
.status.info { color: color-mix(in srgb, var(--text) 72%, var(--bg)); }
.status ul { margin: 6px 0 0; padding-left: 1.2em; font-weight: 400; }
.confirmation { border: 2px solid var(--primary); border-radius: 18px; padding: 24px; }

.claims { padding-left: 1.2em; }
.claims li { margin-bottom: 0.3em; }
.claims li::marker { color: var(--accent); }
.contact-list { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }
.disclaimer { font-size: 0.85rem; }
.copyright { font-size: 0.85rem; margin: 0; }

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Subscription plans (only on a brand that sells them). */
.sf-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 24px 0; }
.sf-plan { background: #fff; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: var(--radius-card, 14px); padding: 20px; }
.sf-plan h3 { margin: 0 0 6px; }
.sf-renewal { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius-card, 14px); padding: 14px 16px; }

/* "clean" design: light, airy, sans-serif, rounded cards. Comes after
   ../shared/base.css. */

:root { --radius-card: 18px; --radius-button: 999px; --radius-input: 10px; }

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
.block { padding-block: 44px; }
.lead { font-size: 1.15rem; max-width: 36em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.price { font-size: 1.2rem; font-weight: 700; }

.announcement { margin: 0; padding: 8px 16px; text-align: center; font-size: 0.9rem; background: var(--primary); color: var(--on-primary); }

.site-header { border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1; justify-content: center; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 0.97rem; }
.site-header nav a:hover { text-decoration: underline; }

.hero { background: color-mix(in srgb, var(--primary) 7%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: 56px; }
.hero-image { border-radius: 24px; width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; }
.trust li::before { content: "\2713"; color: var(--primary); font-weight: 700; margin-right: 6px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; }
.card { border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: var(--radius-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 a { color: var(--text); text-decoration: none; }
.card-text { font-size: 0.93rem; color: color-mix(in srgb, var(--text) 75%, #fff); flex: 1; }
.card-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-buy small { color: var(--primary); font-weight: 600; }
.bundle-images { display: flex; justify-content: center; gap: 4px; padding: 16px 16px 0; background: color-mix(in srgb, var(--primary) 6%, #fff); }
/* A bundle can hold up to 8 products: the pictures shrink so all of them fit. */
.bundle-images img { flex: 0 1 30%; min-width: 0; max-width: 110px; height: auto; }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .chip { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--text); text-decoration: none; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-section { padding-top: 28px; scroll-margin-top: 90px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.category { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--primary) 9%, var(--bg)); color: var(--text); text-decoration: none; min-height: 140px; }
.category strong { font-size: 1.15rem; }
.category span { font-size: 0.92rem; flex: 1; }
.category small { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; color: var(--primary); }
.category:hover { background: color-mix(in srgb, var(--primary) 15%, var(--bg)); }
.category.has-image { padding: 0 0 18px; overflow: hidden; }
.category.has-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.category.has-image strong, .category.has-image span, .category.has-image small { padding-inline: 18px; }

.band { background: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.steps span { font-size: 0.95rem; }

details { border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding-block: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

.breadcrumb { font-size: 0.88rem; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-image { border-radius: 24px; width: 100%; background: #fff; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 1px solid color-mix(in srgb, var(--text) 20%, transparent); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding-top: 0; }
.product-details h2 { font-size: 1.15rem; margin-top: 1.4em; }
.product-details h2:first-child { margin-top: 0; }
.label-note { margin-top: 18px; }
.label-image { border: 1px solid color-mix(in srgb, var(--text) 15%, transparent); border-radius: 8px; }

.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.glossary-item { display: flex; gap: 14px; align-items: flex-start; }
.glossary-item img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.glossary-item p { font-size: 0.94rem; margin: 0; }

.legal section { margin-top: 28px; }
.legal h2 { font-size: 1.2rem; }

.site-footer { margin-top: 48px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: color-mix(in srgb, var(--text) 4%, var(--bg)); font-size: 0.92rem; padding-block: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.footer-brand, .footer-title { font-weight: 700; margin-bottom: 6px; }

@media (max-width: 860px) {
  .hero-grid, .product, .product-details { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-row { flex-wrap: wrap; }
  .site-header nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
