:root {
  --ink: #17352a;
  --muted: #5f746b;
  --green: #246b4a;
  --green-dark: #174c35;
  --green-soft: #e7f2eb;
  --lime: #cce58a;
  --cream: #f7f6ef;
  --white: #ffffff;
  --line: #dce5df;
  --amber: #c47a16;
  --amber-soft: #fff3d7;
  --red: #b83f3f;
  --red-soft: #fde9e8;
  --grey-soft: #eef1ef;
  --shadow: 0 18px 60px rgba(23, 53, 42, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.prototype-banner {
  padding: 8px 20px;
  color: #69480e;
  background: #fff0c3;
  font-size: 13px;
  text-align: center;
}
.prototype-banner span { margin-right: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 239, .94); border-bottom: 1px solid rgba(220, 229, 223, .9); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 47px; height: 47px; color: white; background: var(--green); border-radius: 15px 15px 15px 5px; font: 800 34px/1 Georgia, serif; }
.brand strong { display: block; font: 800 27px/1.05 Georgia, serif; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--green); }
.favorite-nav { display: inline-flex; align-items: center; gap: 6px; }
.favorite-nav > span:first-child { color: var(--red); }
.cart-nav, .account-nav { display: inline-flex; align-items: center; gap: 6px; }
.nav-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; color: white; background: var(--green); border-radius: 50px; font-size: 11px; }
.account-greeting { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { margin: 0; }
.nav-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--ink); background: none; border: 0; font-weight: 700; cursor: pointer; }
.nav-button:hover { color: var(--green); }
.message-stack { position: relative; z-index: 8; display: grid; gap: 8px; margin-top: 14px; }
.message { padding: 12px 16px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; box-shadow: 0 8px 24px rgba(23,53,42,.07); font-size: 13px; font-weight: 700; }
.message-warning { border-left-color: var(--amber); }
.message-error { border-left-color: var(--red); }

.hero { padding: 66px 0 84px; color: white; background: var(--green-dark); overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--lime); opacity: .11; }
.hero::before { width: 360px; height: 360px; right: -80px; top: -180px; }
.hero::after { width: 220px; height: 220px; left: 44%; bottom: -170px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .75fr; align-items: end; gap: 70px; }
.eyebrow, .filter-kicker { display: block; margin-bottom: 8px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 720px; margin: 0; font: 700 clamp(42px, 6vw, 72px)/.98 Georgia, serif; letter-spacing: -.035em; }
.hero p { max-width: 680px; margin: 20px 0 0; color: #dbe8df; font-size: 18px; }
.hero-note { display: flex; gap: 16px; padding: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: var(--radius); }
.hero-note-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; color: var(--green-dark); background: var(--lime); border-radius: 50%; font-weight: 900; }
.hero-note strong { font-size: 16px; }
.hero-note p { margin: 5px 0 0; font-size: 14px; }

.filter-section { position: relative; z-index: 3; margin-top: -42px; }
.filter-panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.search-row { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; background: #f5f8f5; border: 1px solid transparent; border-radius: 14px; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36,107,74,.12); }
.search-box > span { font-size: 25px; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-select { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 6px 14px; background: #f5f8f5; border-radius: 14px; }
.category-select span { color: var(--muted); font-size: 11px; font-weight: 700; }
.category-select select { border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: var(--green-soft); border-color: #cfe1d5; }
.button-secondary:hover, .button-secondary.is-active { background: #d5eadb; border-color: var(--green); }
.button-quiet { color: var(--muted); background: transparent; }
.button-disabled { color: #7f8b85; background: var(--grey-soft); border-color: var(--line); cursor: not-allowed; }
.button-disabled:hover { transform: none; }
.button-full { width: 100%; }
.filter-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-heading-row h2 { margin: 0; font: 700 26px/1.1 Georgia, serif; }
.filter-kicker { margin-bottom: 4px; }
.filter-explanation { color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.status-contains.status-dot { background: var(--red); }
.status-traces.status-dot { background: var(--amber); }
.status-not_declared.status-dot { background: var(--green); }
.status-unknown.status-dot { background: #8b9691; }
.allergen-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.filter-chip { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 86px; padding: 10px; background: #f8faf8; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: .16s ease; }
.filter-chip:hover { border-color: #a9c7b4; transform: translateY(-1px); }
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip:has(input:checked) { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 8px 20px rgba(36,107,74,.2); }
.filter-chip:has(input:focus-visible) { outline: 3px solid rgba(36,107,74,.25); outline-offset: 2px; }
.allergen-symbol { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; color: var(--green-dark); background: var(--green-soft); border-radius: 10px; font-size: 11px; font-weight: 900; }
.filter-chip:has(input:checked) .allergen-symbol { color: var(--green-dark); background: var(--lime); }
.filter-chip > span:nth-of-type(2) { font-size: 12px; font-weight: 750; line-height: 1.15; }
.chip-check { position: absolute; top: 9px; right: 9px; opacity: 0; }
.filter-chip:has(input:checked) .chip-check { opacity: 1; }
.additional-filters { margin-top: 16px; }
.additional-filters summary { width: fit-content; color: var(--green); font-size: 13px; font-weight: 800; cursor: pointer; }
.claim-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.claim-filter input { position: absolute; opacity: 0; }
.claim-filter span { display: inline-flex; padding: 8px 12px; background: #f5f8f5; border: 1px solid var(--line); border-radius: 50px; cursor: pointer; font-size: 12px; font-weight: 750; }
.claim-filter:has(input:checked) span { color: white; background: var(--green); border-color: var(--green); }
.mobile-filter-actions { display: none; }

.products-section { padding: 64px 0 90px; }
.results-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.results-header h2 { margin: 0; font: 700 36px/1.1 Georgia, serif; }
.results-header .eyebrow { margin-bottom: 4px; }
.clear-link { color: var(--green); font-size: 13px; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-visual { position: relative; aspect-ratio: 1.16; overflow: hidden; background: #eef4ef; }
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.favorite-form { margin: 0; }
.product-visual .favorite-form { position: absolute; top: 13px; right: 13px; }
.favorite-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #73847b; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; box-shadow: 0 6px 18px rgba(23,53,42,.11); }
.favorite-button:hover, .favorite-button.is-active { color: white; background: var(--red); border-color: var(--red); }
.favorite-button:disabled { opacity: .6; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.product-brand { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.product-body h3 { min-height: 52px; margin: 6px 0 4px; font: 700 19px/1.25 Georgia, serif; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { color: var(--green); }
.product-meta { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.allergen-summary { display: flex; flex-wrap: wrap; gap: 5px; min-height: 48px; }
.status-badge, .more-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; line-height: 1.15; }
.status-badge.status-contains { color: #8f2f2f; background: var(--red-soft); }
.status-badge.status-traces { color: #82500d; background: var(--amber-soft); }
.status-badge.status-not_declared { color: var(--green-dark); background: var(--green-soft); }
.more-badge { color: var(--muted); background: var(--grey-soft); }
.claim-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.claim-list span { padding: 3px 7px; color: #3d6655; background: #f0f6f2; border: 1px solid #d8e6dc; border-radius: 30px; font-size: 9px; font-weight: 800; }
.product-buy-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: auto 0 15px; padding-top: 19px; }
.price-block { display: flex; flex-direction: column; }
.price { font: 800 20px/1.1 Georgia, serif; }
.price-block small { color: var(--muted); font-size: 9px; }
.stock { padding: 5px 8px; border-radius: 30px; font-size: 9px; font-weight: 850; }
.in-stock { color: var(--green-dark); background: var(--green-soft); }
.out-of-stock { color: var(--red); background: var(--red-soft); }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.cart-add-form { display: flex; gap: 7px; min-width: 0; }
.cart-add-form .button { flex: 1; min-width: 0; padding-inline: 12px; }
.cart-add-form .cart-icon-button { flex: 0 0 48px; width: 48px; padding: 0; }
.cart-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quantity-input { width: 58px; min-height: 46px; padding: 0 7px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; font-weight: 800; text-align: center; }
.quantity-input:focus { border-color: var(--green); outline: 3px solid rgba(36,107,74,.12); }
.empty-state { padding: 70px 20px; text-align: center; background: white; border: 1px dashed #b9c8bf; border-radius: var(--radius); }
.empty-state > span { display: block; color: var(--green); font-size: 50px; transform: rotate(-20deg); }
.empty-state h3 { margin: 10px 0 4px; font: 700 28px Georgia, serif; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

.detail-page { padding: 34px 0 90px; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--green); font-size: 13px; font-weight: 800; text-decoration: none; }
.detail-hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: 60px; align-items: center; }
.detail-visual { overflow: hidden; aspect-ratio: 1; background: white; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.detail-visual img { width: 100%; height: 100%; object-fit: contain; }
.detail-intro h1 { max-width: 680px; margin: 7px 0 16px; font: 700 clamp(40px, 5vw, 64px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.detail-description { max-width: 660px; color: var(--muted); font-size: 17px; }
.detail-quickfacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 12px; }
.detail-quickfacts span { padding: 7px 11px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 750; }
.claim-list-large span { padding: 6px 10px; font-size: 11px; }
.detail-price-row { display: flex; align-items: center; gap: 24px; margin: 28px 0 18px; }
.price-large { font-size: 34px; }
.detail-favorite .button { min-width: 230px; }
.detail-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.detail-cart-form { align-items: end; }
.detail-cart-form label { color: var(--muted); font-size: 11px; font-weight: 800; }
.detail-cart-form { display: grid; grid-template-columns: auto auto; gap: 5px 8px; }
.detail-cart-form label { grid-column: 1 / -1; }
.detail-cart-form .button { min-width: 190px; }

.allergen-panel { margin-top: 64px; padding: 34px; background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .content-card h2, .source-card h2 { margin: 0; font: 700 34px/1.1 Georgia, serif; }
.source-date { color: var(--muted); font-size: 12px; font-weight: 700; }
.allergen-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.allergen-group { padding: 20px; border-radius: 17px; }
.allergen-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; }
.allergen-group p { margin: 0; color: var(--muted); font-size: 12px; }
.allergen-group ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.allergen-group li { padding: 5px 8px; background: rgba(255,255,255,.65); border-radius: 8px; font-size: 11px; font-weight: 750; }
.group-contains { background: var(--red-soft); }
.group-traces { background: var(--amber-soft); }
.group-not-declared { background: var(--green-soft); }
.group-unknown { background: var(--grey-soft); }
.safety-note { margin-top: 16px; padding: 14px 16px; color: #604918; background: #fff8e8; border-left: 4px solid var(--amber); border-radius: 10px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.content-card, .source-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.content-card > p { color: var(--muted); }
.product-facts { margin: 26px 0 0; }
.product-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.product-facts dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.product-facts dd { margin: 0; font-size: 13px; font-weight: 750; }
.nutrition-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 13px; }
.nutrition-table th, .nutrition-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.nutrition-table th { text-align: left; font-weight: 650; }
.nutrition-table td { text-align: right; font-weight: 800; }
.nutrition-table .subrow th { padding-left: 18px; color: var(--muted); font-weight: 500; }
.source-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 20px; }
.source-card p { max-width: 780px; margin-bottom: 0; color: var(--muted); }

.page-heading { padding: 52px 0 58px; color: white; background: var(--green-dark); }
.page-heading .eyebrow { color: var(--lime); }
.page-heading h1 { margin: 0; font: 700 clamp(42px, 6vw, 64px)/1 Georgia, serif; letter-spacing: -.03em; }
.page-heading p { max-width: 680px; margin: 15px 0 0; color: #dbe8df; font-size: 17px; }

.account-page { display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 28px; align-items: center; padding-block: 64px 90px; }
.account-card { padding: 36px; background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.account-card h1 { margin: 0; font: 700 46px/1.05 Georgia, serif; letter-spacing: -.03em; }
.account-intro { margin: 14px 0 28px; color: var(--muted); }
.account-form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 800; }
.form-field input { width: 100%; min-height: 50px; padding: 0 14px; color: var(--ink); background: #f8faf8; border: 1px solid var(--line); border-radius: 12px; outline: 0; }
.form-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36,107,74,.12); }
.field-help { color: var(--muted); font-size: 11px; font-weight: 500; }
.field-help ul { margin: 5px 0 0; padding-left: 18px; }
.field-error { color: var(--red); font-size: 11px; }
.form-errors { padding: 12px 14px; color: #8f2f2f; background: var(--red-soft); border-radius: 10px; font-size: 12px; }
.form-errors p { margin: 0; }
.account-switch { margin: 22px 0 0; color: var(--muted); text-align: center; }
.account-switch a { color: var(--green); font-weight: 800; }
.account-benefits { padding: 36px; color: #dce8e0; background: var(--ink); border-radius: 28px; }
.account-benefits > span { display: grid; place-items: center; width: 50px; height: 50px; color: var(--green-dark); background: var(--lime); border-radius: 50%; font-size: 22px; font-weight: 900; }
.account-benefits h2 { margin: 20px 0 8px; font: 700 30px/1.1 Georgia, serif; }
.account-benefits p { margin: 0; color: #b8c8c0; }

.cart-page, .checkout-page { padding-block: 44px 90px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.cart-card { overflow: hidden; margin-bottom: 20px; background: white; border: 1px solid var(--line); border-radius: 22px; }
.cart-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-card-heading h2 { margin: 0; font: 700 26px/1.1 Georgia, serif; }
.cart-card-heading > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 118px minmax(180px, 1fr) auto auto; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-image { overflow: hidden; aspect-ratio: 1; background: white; border-radius: 14px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info h3 { margin: 4px 0; font: 700 18px/1.2 Georgia, serif; }
.cart-item-info h3 a { text-decoration: none; }
.cart-item-info p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.cart-quantity-form { display: grid; gap: 6px; }
.cart-quantity-form label { color: var(--muted); font-size: 11px; font-weight: 800; }
.cart-quantity-form > div { display: flex; gap: 6px; }
.cart-quantity-form .button { min-height: 42px; padding-inline: 10px; font-size: 11px; }
.cart-line-total { display: grid; justify-items: end; gap: 10px; min-width: 90px; }
.text-button { padding: 0; color: var(--red); background: none; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; text-decoration: underline; }
.shipping-card { padding-bottom: 22px; }
.shipping-card form { padding-inline: 24px; }
.shipping-options { display: grid; gap: 10px; margin: 20px 0; }
.shipping-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px; background: #f8faf8; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.shipping-option.is-selected, .shipping-option:has(input:checked) { background: var(--green-soft); border-color: var(--green); }
.shipping-copy { display: grid; }
.shipping-copy small { color: var(--muted); font-size: 11px; }
.cart-summary { position: sticky; top: 104px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.cart-summary h2 { margin: 0 0 20px; font: 700 30px/1.1 Georgia, serif; }
.cart-summary dl { margin: 0 0 22px; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-summary dd { margin: 0; font-weight: 800; text-align: right; }
.cart-summary .cart-total { padding-top: 17px; font-size: 17px; font-weight: 900; border-bottom: 0; }
.demo-checkout-note, .cart-login-note { color: var(--muted); font-size: 11px; }
.cart-login-note a { color: var(--green); font-weight: 800; }
.cart-empty { margin-block: 20px; }
.checkout-notice { display: flex; gap: 15px; align-items: center; margin-bottom: 22px; padding: 18px 22px; color: var(--green-dark); background: var(--lime); border-radius: 16px; }
.checkout-notice > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; color: white; background: var(--green); border-radius: 50%; font-weight: 900; }
.checkout-notice p { margin: 2px 0 0; font-size: 12px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.checkout-items { margin: 0; padding: 4px 24px; list-style: none; }
.checkout-items li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checkout-items li:last-child { border-bottom: 0; }
.checkout-summary { position: static; }

.site-footer { padding: 48px 0; color: #dce8e0; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.brand-footer { color: white; }
.brand-footer .brand-mark { width: 40px; height: 40px; background: var(--lime); color: var(--green-dark); }
.site-footer p { max-width: 650px; color: #afc0b7; font-size: 13px; }

@media (max-width: 1050px) {
  .allergen-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-greeting { display: none; }
  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 105px minmax(160px, 1fr) auto; }
  .cart-line-total { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, 1180px); }
  .prototype-banner { font-size: 11px; }
  .header-inner { min-height: 72px; }
  .brand small { display: none; }
  .main-nav { gap: 14px; }
  .main-nav > a:first-child { display: none; }
  .main-nav .nav-label { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: 46px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row > .button { display: none; }
  .filter-panel { padding: 18px; }
  .filter-heading-row { align-items: start; flex-direction: column; }
  .allergen-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-filter-actions { display: flex; gap: 8px; margin-top: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 1fr; gap: 30px; }
  .detail-visual { max-width: 520px; }
  .allergen-groups { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .source-card { align-items: start; flex-direction: column; }
  .account-page { grid-template-columns: 1fr; padding-block: 36px 70px; }
  .account-benefits { order: -1; }
  .cart-item { grid-template-columns: 90px 1fr; }
  .cart-quantity-form, .cart-line-total { grid-column: 2; }
  .cart-line-total { justify-items: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 23px; }
  .brand-mark { width: 42px; height: 42px; }
  .main-nav { gap: 8px; font-size: 12px; }
  .nav-count { min-width: 20px; height: 20px; padding-inline: 5px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { aspect-ratio: 1.35; }
  .results-header { align-items: start; flex-direction: column; }
  .detail-intro h1 { font-size: 41px; }
  .detail-price-row, .section-heading { align-items: start; flex-direction: column; }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-cart-form { grid-template-columns: 70px 1fr; }
  .detail-favorite .button { width: 100%; min-width: 0; }
  .section-heading > div { width: 100%; min-width: 0; }
  .allergen-panel { padding: 22px; }
  .product-facts div { grid-template-columns: 1fr; gap: 2px; }
  .account-card, .account-benefits { padding: 25px; }
  .account-card h1 { font-size: 38px; }
  .page-heading { padding-block: 38px 44px; }
  .page-heading h1 { font-size: 40px; }
  .cart-page, .checkout-page { padding-block: 28px 70px; }
  .cart-card-heading, .cart-item { padding-inline: 16px; }
  .cart-item { grid-template-columns: 74px 1fr; gap: 13px; }
  .cart-quantity-form > div { flex-wrap: wrap; }
  .shipping-card form { padding-inline: 16px; }
  .shipping-option { align-items: start; }
  .shipping-option > strong { grid-column: 2; }
  .cart-summary { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
