:root {
  --bg: #f5f7f4;
  --surface: #fff;
  --surface-soft: #f0f5ef;
  --ink: #142018;
  --muted: #667269;
  --line: #dfe7df;
  --brand: #14532d;
  --brand-2: #1f8a4d;
  --danger: #b42318;
  --warning: #9a6700;
  --success: #067647;
  --shadow: 0 12px 36px rgba(18, 49, 29, .09);
  --radius: 20px;
  --header-h: 126px;
  --bottom-h: 72px;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.booting .app { opacity: 0; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; min-height: calc(var(--header-h) + var(--safe-top)); padding: calc(12px + var(--safe-top)) 14px 12px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-top { max-width: 1180px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 148px; height: 42px; object-fit: contain; }
.brand > span { display: none; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .cart-button { position: relative; min-height: 42px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.icon-button { width: 42px; display: grid; place-items: center; font-size: 20px; }
.icon-button b, .cart-button b, .bottom-nav b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 11px; }
.cart-button { padding: 6px 12px; display: grid; text-align: left; }
.cart-button span { font-size: 10px; color: var(--muted); }
.cart-button strong { font-size: 13px; }
.search-form { max-width: 1180px; margin: 0 auto; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #cbd7cc; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(20, 83, 45, .05); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.search-form button { width: 32px; height: 32px; border: 0; border-radius: 99px; background: var(--surface-soft); }
.app { position: fixed; inset: calc(var(--header-h) + var(--safe-top)) 0 0; overflow: auto; padding: 14px 12px calc(var(--bottom-h) + var(--safe-bottom) + 20px); transition: opacity .15s ease; }
.page-container { width: min(100%, 1180px); margin: 0 auto; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.page-header h1 { margin: 0; font-size: clamp(22px, 4vw, 34px); line-height: 1.05; }
.page-header p { margin: 5px 0 0; color: var(--muted); }
.back-button { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 22px; }
.bottom-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; min-height: calc(var(--bottom-h) + var(--safe-bottom)); padding: 8px 10px calc(8px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 40, 25, .08); }
.bottom-nav a, .bottom-nav button { position: relative; border: 0; background: transparent; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: 20px; }
.bottom-nav span { font-size: 10px; font-weight: 700; }
.home-hero { min-height: 250px; padding: 24px; display: grid; grid-template-columns: 1fr 120px; gap: 18px; align-items: center; border-radius: 28px; background: linear-gradient(135deg, #0f4a28, #1f8a4d); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.home-hero span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.home-hero h2 { margin: 10px 0 8px; font-size: clamp(26px, 5vw, 46px); line-height: 1; letter-spacing: -.04em; }
.home-hero p { margin: 0; color: rgba(255,255,255,.8); }
.home-hero img { width: 120px; height: 120px; object-fit: contain; padding: 10px; border-radius: 24px; background: rgba(255,255,255,.94); }
.hero-actions, .bundle-actions, .panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-button, .secondary-button, .danger-button, .send-order { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid transparent; font-weight: 800; }
.primary-button, .send-order { background: var(--brand); color: #fff; }
.secondary-button { background: #fff; color: var(--brand); border-color: var(--line); }
.danger-button { background: #fff1f0; color: var(--danger); border-color: #fecdca; }
.home-hero .primary-button { background: #fff; color: var(--brand); }
.home-hero .secondary-button { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.quick-links { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-links a { min-height: 90px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; align-content: center; gap: 5px; }
.quick-links strong { font-size: 15px; }
.quick-links span { color: var(--muted); font-size: 12px; }
.content-section { margin-top: 28px; }
.section-heading { margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.section-heading > a { color: var(--brand); font-weight: 800; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(20, 50, 28, .04); content-visibility: auto; contain-intrinsic-size: 280px; }
.product-card.compact { min-width: 160px; width: 160px; }
.product-card-media { position: relative; height: 150px; display: grid; place-items: center; background: linear-gradient(#fff, #f7faf7); border-bottom: 1px solid #edf2ed; }
.product-card-media > a { width: 100%; height: 100%; display: grid; place-items: center; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.favorite-button { position: absolute; z-index: 2; top: 8px; right: 8px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.94); color: var(--muted); font-size: 22px; }
.favorite-button.active { color: #d92d20; background: #fff1f0; }
.discount-badge { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 5px 8px; border-radius: 99px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 900; }
.product-card-body { padding: 11px; display: grid; gap: 7px; }
.product-packaging { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.product-name { min-height: 38px; font-size: 13.5px; line-height: 1.35; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-expiry { font-size: 10.5px; color: var(--muted); }
.product-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-price { display: grid; }
.product-price s, .bundle-price s, .detail-price s { color: var(--muted); font-size: 11px; }
.product-price strong { font-size: 18px; letter-spacing: -.04em; }
.qty-add { width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: 24px; }
.qty-control { height: 38px; display: inline-grid; grid-template-columns: 34px minmax(24px, auto) 34px; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-control button { height: 100%; border: 0; background: var(--surface-soft); font-size: 20px; }
.qty-control span { text-align: center; font-weight: 800; }
.qty-control-detail { height: 48px; grid-template-columns: 44px 48px 44px; }
.horizontal-rail { display: flex; gap: 10px; overflow: auto; padding-bottom: 5px; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.category-card { min-height: 90px; padding: 12px; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.category-card img { width: 64px; height: 64px; object-fit: contain; }
.category-card span { display: grid; gap: 4px; }
.category-card small { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow: auto; margin-bottom: 14px; padding-bottom: 4px; }
.chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); font-weight: 700; white-space: nowrap; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.bundle-grid { display: grid; gap: 12px; }
.bundle-card { padding: 12px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.bundle-media-wrap { position: relative; }
.bundle-media { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 16px; background: #f8faf8; overflow: hidden; }
.bundle-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.bundle-name { display: block; margin-bottom: 5px; font-weight: 900; }
.bundle-card p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.bundle-price { display: grid; margin-bottom: 10px; }
.bundle-price strong { font-size: 20px; }
.bundle-detail-hero { padding: 18px; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.bundle-detail-hero > img { width: 160px; height: 160px; object-fit: contain; }
.bundle-detail-hero h1 { margin: 6px 0; }
.bundle-detail-hero p { color: var(--muted); }
.bundle-lines { display: grid; gap: 8px; }
.bundle-line { min-height: 76px; padding: 8px; display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bundle-line img { width: 64px; height: 64px; object-fit: contain; }
.bundle-line > div:nth-child(2) { display: grid; gap: 4px; }
.bundle-line small { color: var(--muted); }
.bundle-line-link > span { font-weight: 800; }
.bundle-total { position: sticky; bottom: calc(var(--bottom-h) + 8px); margin-top: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.bundle-total strong { margin-right: auto; font-size: 20px; }
.product-detail { display: grid; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.product-detail-media { position: relative; }
.product-detail-media > img { width: 100%; max-height: 440px; object-fit: contain; }
.image-thumbs { margin-top: 10px; display: flex; gap: 8px; overflow: auto; }
.image-thumbs button { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.image-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-copy { position: relative; }
.product-detail-copy h1 { margin: 6px 0 12px; font-size: clamp(25px, 4vw, 42px); }
.product-detail-copy > .favorite-button { top: 0; right: 0; }
.detail-price { display: grid; margin-bottom: 14px; }
.detail-price strong { font-size: 34px; color: var(--brand); }
.offer-note { margin: 12px 0; padding: 10px; border-radius: 12px; background: #fff7e6; color: #8a4b08; font-weight: 700; }
.product-description { color: var(--muted); line-height: 1.6; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tags span { padding: 6px 9px; border-radius: 99px; background: var(--surface-soft); font-size: 12px; }
.banner-zone { margin-bottom: 14px; }
.banner-track { display: flex; gap: 10px; overflow: auto; scroll-snap-type: x mandatory; }
.banner-card { min-width: min(72vw, 260px); aspect-ratio: .78; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); }
.banner-card img { width: 100%; height: 100%; object-fit: cover; }
.empty-state { min-height: 180px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; border: 1px dashed #cbd7cc; border-radius: 20px; background: rgba(255,255,255,.7); }
.empty-state span { color: var(--muted); }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.info-card p { color: var(--muted); line-height: 1.6; }
.info-card dl { display: grid; gap: 10px; }
.info-card dl > div { padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.info-card dt { font-weight: 800; }
.info-card dd { margin: 4px 0 0; color: var(--muted); }
.policy-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.policy-links a { padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.drawer-overlay { position: fixed; z-index: 60; inset: 0; background: rgba(15, 23, 18, .48); opacity: 0; pointer-events: none; transition: .2s; }
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(100%, 560px); display: grid; grid-template-rows: auto 1fr; background: #fff; transform: translateX(105%); transition: transform .24s ease; box-shadow: -20px 0 60px rgba(12, 30, 18, .16); }
.drawer.open { transform: translateX(0); }
.drawer-header { padding: calc(16px + var(--safe-top)) 16px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-header strong, .drawer-header small { display: block; }
.drawer-header small { margin-top: 4px; color: var(--muted); }
.drawer-header button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 24px; }
.drawer-content { overflow: auto; padding: 14px 14px calc(20px + var(--safe-bottom)); }
.menu-card, .checkout-section { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.menu-card p, .checkout-section > p { color: var(--muted); }
.menu-links { display: grid; gap: 7px; margin-bottom: 12px; }
.menu-links a { padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-weight: 750; }
.checkout-section h2 { margin: 0 0 12px; font-size: 18px; }
.checkout-items { display: grid; gap: 8px; }
.checkout-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; }
.checkout-item img { width: 58px; height: 58px; object-fit: contain; }
.checkout-item small { display: block; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--brand); font-weight: 800; }
.text-button.danger { color: var(--danger); }
.lookup-row { display: flex; gap: 8px; }
.field { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #cbd7cc; border-radius: 11px; background: #fff; outline: 0; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 138, 77, .12); }
.lookup-status { margin-top: 8px; font-size: 12px; }
.lookup-status.error { color: var(--danger); }
.lookup-status.warning { color: var(--warning); }
.lookup-status.success { color: var(--success); }
.delivery-options, .payment-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.delivery-options label, .payment-option { position: relative; }
.delivery-options input, .payment-option input { position: absolute; opacity: 0; }
.delivery-options span, .payment-option span { min-height: 44px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: center; font-size: 12px; font-weight: 700; }
.delivery-options input:checked + span, .payment-option input:checked + span { border-color: var(--brand); background: #eaf6ee; color: var(--brand); }
.form-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form-grid label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.form-grid .wide { grid-column: 1 / -1; }
fieldset { margin: 14px 0 0; border: 0; padding: 0; }
legend { margin-bottom: 8px; font-weight: 800; }
.active-coupon { padding: 12px; display: flex; justify-content: space-between; align-items: center; border-radius: 12px; background: #eaf6ee; color: var(--brand); }
.active-coupon small { display: block; }
.checkout-totals { display: grid; gap: 8px; }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 10px; }
.checkout-totals .discount { color: var(--success); }
.checkout-totals .total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; }
.minimum-order { margin-top: 12px; padding: 10px; border-radius: 12px; background: #fff7e6; color: #8a4b08; }
.send-order { width: 100%; min-height: 52px; margin-top: 14px; background: #19a55a; }
.send-order:disabled { opacity: .45; cursor: not-allowed; }
.checkout-errors { margin-bottom: 12px; padding: 12px; border: 1px solid #fecdca; border-radius: 12px; background: #fff1f0; color: var(--danger); }
.checkout-errors ul { margin-bottom: 0; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--bottom-h) + var(--safe-bottom) + 16px); max-width: calc(100% - 24px); padding: 12px 16px; border-radius: 99px; background: #16251b; color: #fff; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.personalization-consent { position: fixed; z-index: 110; left: 12px; right: 12px; bottom: calc(var(--bottom-h) + var(--safe-bottom) + 12px); max-width: 920px; margin: 0 auto; padding: 14px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.personalization-consent strong, .personalization-consent span { display: block; }
.personalization-consent span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.personalization-consent > div:last-child { display: flex; gap: 8px; }
.personalization-overlay { position: fixed; z-index: 130; inset: 0; padding: 16px; display: grid; place-items: center; background: rgba(15,23,18,.48); opacity: 0; pointer-events: none; transition: .2s; }
.personalization-overlay.show { opacity: 1; pointer-events: auto; }
.personalization-panel { width: min(100%, 520px); padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.personalization-panel header { display: flex; justify-content: space-between; gap: 12px; }
.personalization-panel h2 { margin: 0; }
.personalization-panel header p, .personalization-panel > p { color: var(--muted); }
.personalization-panel header button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 22px; }
.personalization-status { padding: 12px; display: flex; justify-content: space-between; border-radius: 12px; background: var(--surface-soft); }
.loading-shell { width: min(100%, 1180px); margin: 0 auto; display: grid; gap: 12px; }
.loading-shell div { min-height: 120px; border-radius: 20px; background: linear-gradient(90deg, #edf2ed, #f9fbf9, #edf2ed); background-size: 200% 100%; animation: loading 1.2s infinite; }
.loading-shell div:first-child { min-height: 240px; }
@keyframes loading { to { background-position: -200% 0; } }
@media (min-width: 720px) {
  :root { --header-h: 118px; --bottom-h: 0px; }
  .site-header { padding-inline: 24px; }
  .brand > span { display: block; }
  .bottom-nav { display: none; }
  .app { padding: 24px 24px 36px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .product-card-media { height: 180px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); padding: 24px; }
  .personalization-consent { bottom: 18px; grid-template-columns: 1fr auto; align-items: center; }
  .toast { bottom: 24px; }
}
@media (min-width: 1040px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(5, 1fr); }
  .bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: 1fr 220px; min-height: 320px; padding: 38px; }
  .home-hero img { width: 200px; height: 200px; }
  .banner-card { min-width: 240px; }
}
@media (max-width: 520px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero img { display: none; }
  .quick-links { grid-template-columns: 1fr; }
  .bundle-card { grid-template-columns: 96px 1fr; }
  .bundle-media { width: 96px; height: 96px; }
  .bundle-detail-hero { grid-template-columns: 1fr; }
  .bundle-detail-hero > img { margin: 0 auto; }
  .bundle-total { display: grid; grid-template-columns: 1fr auto; }
  .bundle-total .primary-button { grid-column: 1 / -1; }
  .delivery-options, .payment-options, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .policy-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
