:root {
  --ink: #111111;
  --muted: #5d5d5d;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --berry: #8e236f;
  --coral: #cf6958;
  --container: 1152px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
body.is-locked { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 8px; }

.announcement {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #050505;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand sup, .footer-brand sup { font-size: 7px; line-height: 1; margin-left: 2px; letter-spacing: 0; }
.desktop-nav { display: flex; align-items: center; gap: 25px; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: var(--berry); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-search, .mobile-search {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: #888;
  background: #fff;
}
.header-search { width: 185px; }
.header-search input, .mobile-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.account-button {
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.cart-button, .icon-button {
  width: 38px;
  height: 40px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
}
.cart-button svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: var(--berry);
  color: #fff;
  font-size: 10px;
  transform: scale(0);
  transition: transform .2s ease;
}
.cart-count.has-items { transform: scale(1); }
.mobile-menu-button, .mobile-search-wrap { display: none; }

.page-hero { padding: 29px max(5vw, calc((100vw - var(--container)) / 2)); 31px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 10px; color: #606060; margin-bottom: 10px; }
.breadcrumbs a:hover { text-decoration: underline; }
.hero-title-row { display: flex; align-items: flex-end; justify-content: space-between; }
h1 { margin: 0; font-size: 53px; line-height: 1.08; font-weight: 400; letter-spacing: -.035em; }
.quick-order { display: flex; align-items: center; gap: 7px; padding-bottom: 5px; }

.category-strip { border-bottom: 1px solid var(--line); padding: 31px max(5vw, calc((100vw - var(--container)) / 2)) 43px; overflow: hidden; }
.category-scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-scroller::-webkit-scrollbar { display: none; }
.category-chip {
  flex: none;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid #111;
  border-radius: 10px;
  background: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.category-chip:hover, .category-chip.active { color: #fff; background: #111; }

.mobile-perk { display: none; }
.results-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
}
.sort-control { margin-left: auto; position: relative; }
.sort-control select {
  min-width: 211px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 38px 0 14px;
  background: #fff;
  cursor: pointer;
}
.filter-trigger { display: none; }

.catalog-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 0 48px;
}
.filters { padding-right: 20px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.filters legend {
  width: 100%;
  margin-bottom: 17px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 400;
}
.filters label { display: flex; align-items: center; gap: 11px; margin: 7px 0; color: #505050; cursor: pointer; }
.health-filter-list label { justify-content: flex-start; }
.health-filter-list label span { flex: 1; }
.health-filter-list label small { color: #8b8b8b; font-size: 11px; }
.filters input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #898989;
  border-radius: 1px;
  display: grid;
  place-items: center;
  margin: 0;
}
.filters input[type="checkbox"]:checked { background: #111; border-color: #111; }
.filters input[type="checkbox"]:checked::after { content: "✓"; color: #fff; font-size: 10px; }
.text-button, .legend-row button { border: 0; background: none; padding: 0; cursor: pointer; }
.text-button { margin-top: 5px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; }
.legend-row button { float: right; font-size: 14px; }
.ingredient-search { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 11px; outline: 0; }
.more-health-needs { display: none; }
.more-health-needs.is-open { display: block; }
.mobile-filter-head, .apply-filter-button, .filter-backdrop { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-content: start; gap: 30px 21px; }
.product-card { min-width: 0; position: relative; }
.product-image-link { display: block; width: 100%; height: 100%; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  background: var(--soft);
  overflow: hidden;
}
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .28s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.025); }
.badge { position: absolute; top: 11px; left: 11px; z-index: 1; font-size: 12px; }
.price { position: absolute; left: 11px; bottom: 9px; background: rgba(255,255,255,.93); padding: 2px 4px; font-size: 12px; }
.add-button {
  position: absolute;
  right: 11px;
  bottom: 8px;
  width: 44px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #171717;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.add-button:hover { background: var(--berry); transform: translateY(-1px); }
.add-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-title { margin: 11px 0 1px; font-size: 20px; line-height: 1.15; font-weight: 400; letter-spacing: -.015em; }
.product-meta { margin: 0; color: #666; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 11px; }
.stars { letter-spacing: -1px; font-size: 12px; }
.assistant-card {
  min-height: 280px;
  padding: 23px 13px 12px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(110deg, #74246f, #9f3278 48%, #c46a55);
}
.assistant-mark { font-size: 32px; line-height: 1; font-weight: 700; }
.assistant-card h2 { margin: 18px 0 3px; font-size: 20px; line-height: 1.2; }
.assistant-card p { margin: 0 0 15px; font-size: 16px; line-height: 1.45; }
.assistant-card button { margin-top: auto; min-height: 48px; border: 0; border-radius: 6px; color: #111; background: #fff; font-weight: 700; cursor: pointer; }
.no-results { grid-column: 1 / -1; min-height: 300px; display: grid; place-items: center; text-align: center; color: #555; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 15px 16px 65px; }
.pagination button { min-width: 40px; height: 40px; border: 0; border-radius: 6px; background: #fff; cursor: pointer; }
.pagination button.active { color: #fff; background: #111; }
.pagination .next-page { width: auto; padding: 0 26px; }

.site-footer { border-top: 1px solid var(--line); padding: 50px max(5vw, calc((100vw - var(--container)) / 2)) 25px; }
.footer-brand { margin-bottom: 28px; }
.footer-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 34px; }
.footer-links section { display: flex; flex-direction: column; gap: 8px; }
.footer-links h2, .newsletter h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.footer-links a { color: #444; }
.footer-links a:hover { text-decoration: underline; }
.newsletter { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter p { margin: 0; color: #666; }
.newsletter form { display: flex; width: min(420px, 45vw); }
.newsletter input { flex: 1; min-width: 0; height: 44px; border: 1px solid #cfcfcf; border-right: 0; padding: 0 13px; }
.newsletter button { width: 90px; border: 1px solid #111; background: #111; color: #fff; cursor: pointer; }
.legal-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; }
.legal-row nav { display: flex; gap: 20px; }
.disclaimer { color: #666; font-size: 12px; margin: 30px 0 0; }

.mobile-menu, .cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 60;
  transform: translateX(103%);
  transition: transform .3s ease;
  box-shadow: -14px 0 40px rgba(0,0,0,.1);
}
.mobile-menu.is-open, .cart-drawer.is-open { transform: translateX(0); }
.menu-backdrop, .cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.34); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.menu-backdrop.is-open, .cart-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu-head, .cart-head { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.mobile-menu-head button, .cart-head button { border: 0; background: none; font-size: 30px; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 18px 22px; }
.mobile-menu nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.cart-drawer { display: flex; flex-direction: column; }
.cart-head > div { display: flex; flex-direction: column; font-size: 20px; }
.cart-head small { color: #777; font-size: 12px; }
.cart-items { flex: 1; overflow: auto; padding: 16px 22px; }
.empty-cart { min-height: 220px; display: grid; place-items: center; color: #777; text-align: center; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: var(--soft); }
.cart-line h3 { margin: 3px 0 4px; font-size: 14px; font-weight: 500; }
.cart-line p { margin: 0; color: #666; }
.cart-line button { border: 0; background: none; cursor: pointer; color: #777; align-self: start; }
.cart-footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.cart-footer > div { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 15px; }
.cart-footer > button { width: 100%; height: 48px; border: 0; border-radius: 5px; color: #fff; background: #111; font-weight: 600; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 7px; background: #111; color: #fff; box-shadow: 0 9px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { transform: translate(-50%,0); opacity: 1; }

@media (max-width: 1050px) {
  .desktop-nav { gap: 15px; }
  .header-search { display: none; }
  .catalog-shell, .results-toolbar { margin-left: 28px; margin-right: 28px; }
  .catalog-shell { grid-template-columns: 235px minmax(0,1fr); }
}

@media (max-width: 760px) {
  .announcement { height: 20px; padding: 0 8px; font-size: 8px; }
  .site-header { height: 47px; justify-content: space-between; padding: 0 10px; position: sticky; }
  .brand { font-size: 11px; }
  .desktop-nav, .account-button { display: none; }
  .header-actions { margin-left: 0; gap: 3px; }
  .mobile-menu-button { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 28px; padding: 5px; }
  .mobile-menu-button span { display: block; width: 15px; height: 1px; background: #111; }
  .cart-button { width: 30px; height: 34px; }
  .cart-button svg { width: 20px; }
  .mobile-search-wrap { display: block; padding: 6px 12px; border-bottom: 1px solid var(--line); }
  .mobile-search { height: 31px; border-radius: 5px; background: #fafafa; }
  .page-hero { padding: 20px 12px 17px; }
  .breadcrumbs { margin-bottom: 7px; font-size: 11px; }
  h1 { font-size: 34px; }
  .quick-order { display: none; }
  .category-strip { padding: 0 8px 18px; }
  .category-scroller { gap: 5px; }
  .category-chip { min-height: 34px; padding: 0 16px; border-radius: 5px; font-size: 11px; }
  .mobile-perk { display: grid; grid-template-columns: 42% 1fr; border-bottom: 1px solid var(--line); background: #f4f0ec; }
  .mobile-perk-art { min-height: 128px; background: linear-gradient(145deg,#9a8a76,#ded4c8); display: grid; place-items: center; overflow: hidden; }
  .mobile-perk-art img { width: 90%; height: 120px; object-fit: contain; }
  .mobile-perk > div:last-child { padding: 18px 13px; }
  .mobile-perk strong { font-size: 14px; }
  .mobile-perk p { margin: 5px 0 0; font-size: 11px; line-height: 1.35; }
  .results-toolbar { margin: 0; min-height: 49px; padding: 7px 12px; }
  .results-toolbar > span { font-size: 12px; }
  .filter-trigger { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; height: 34px; padding: 0 12px; border: 0; background: #fff; }
  .sort-control select { min-width: 0; width: 44px; height: 34px; padding: 0; color: transparent; border: 0; background: transparent; }
  .sort-control::after { content: "↕"; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: 17px; }
  .catalog-shell { display: block; margin: 0; padding: 16px 12px 35px; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(390px, 94vw);
    z-index: 70;
    padding: 0 21px 95px;
    overflow-y: auto;
    background: #fff;
    transform: translateX(103%);
    transition: transform .3s ease;
  }
  .filters.is-open { transform: translateX(0); }
  .filter-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .filter-backdrop.is-open { display: block; opacity: 1; pointer-events: auto; }
  .mobile-filter-head { position: sticky; top: 0; z-index: 1; height: 65px; margin: 0 -21px 25px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; font-size: 20px; }
  .mobile-filter-head button { border: 0; background: none; font-size: 28px; }
  .apply-filter-button { display: block; position: fixed; right: 20px; bottom: 18px; width: calc(min(390px,94vw) - 40px); height: 48px; border: 0; border-radius: 5px; color: #fff; background: #111; font-weight: 600; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 10px; }
  .product-title { margin-top: 8px; font-size: 16px; line-height: 1.17; }
  .badge, .price, .product-meta, .rating { font-size: 10px; }
  .badge { top: 8px; left: 8px; }
  .price { left: 8px; bottom: 7px; }
  .add-button { right: 8px; bottom: 7px; width: 36px; height: 32px; border-radius: 6px; }
  .add-button svg { width: 17px; }
  .assistant-card { grid-column: 1 / -1; min-height: 215px; }
  .assistant-card p { font-size: 14px; }
  .pagination { padding-bottom: 45px; }
  .pagination .next-page { display: none; }
  .site-footer { padding: 35px 18px 18px; }
  .footer-links { grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
  .newsletter { display: block; margin-top: 35px; }
  .newsletter form { width: 100%; margin-top: 17px; }
  .legal-row { display: block; }
  .legal-row nav { flex-wrap: wrap; margin-top: 15px; gap: 12px 20px; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .assistant-card { grid-column: auto; }
}

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