:root {
  color-scheme: light;
  --ink: #20312a;
  --muted: #68766e;
  --line: #dfe7e1;
  --soft: #f1f5f0;
  --accent: #c96743;
  --accent-dark: #a84e30;
  --green: #2f7357;
  --card: #ffffff;
  --page: #f8f9f6;
  --cream: #f8f6f1;
  --focus: #2d8a68;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: clip; }
body { min-width: 0; margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 36%, transparent); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent); background: rgba(255,255,255,.93); position: sticky; top: 0; z-index: 5; box-shadow: 0 8px 25px rgba(32,49,42,.045); backdrop-filter: blur(14px); }
.topbar { height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button, .camera-button { border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; padding: 9px; border-radius: 11px; transition: background-color .18s ease, transform .18s ease; }
.icon-button:hover, .camera-button:hover { background: #edf2ed; }
.icon-button:active, .camera-button:active { transform: scale(.94); }
.icon-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-button { position: relative; }
.cart-count { position: absolute; right: 1px; top: 2px; min-width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; border: 2px solid #fff; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: block; margin-bottom: 4px; }
.brand-name { font-size: 16px; font-weight: 850; letter-spacing: -.45px; }
.brand-name span, .footer-brand b, .drawer-logo span { color: var(--accent); }
.brand-tagline { font-size: 6px; letter-spacing: .13em; color: #7f8a83; margin-top: 4px; }
.search-row { padding: 0 16px 9px; }
.search-box { border: 1px solid #ccd8cf; background: #fff; height: 46px; border-radius: 13px; display: flex; align-items: center; gap: 11px; padding: 0 11px; box-shadow: 0 2px 7px rgba(32,49,42,.035); transition: border-color .18s ease, box-shadow .18s ease; }
.search-box:focus-within { border-color: #8bb79f; box-shadow: 0 0 0 4px rgba(47,115,87,.11); }
.search-box > svg, .camera-button svg { width: 21px; height: 21px; fill: none; stroke: #7b877f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 14px; background: transparent; }
.search-box input::placeholder { color: #8a968e; }
.camera-button { padding: 0; }
.delivery-row { border-top: 1px solid #edf1ed; padding: 8px 16px 10px; font-size: 12px; color: #53645b; display: flex; align-items: center; gap: 5px; }
.delivery-row strong { color: var(--ink); }
.delivery-note { margin-left: auto; color: var(--green); font-weight: 750; }
.pin { font-size: 18px; vertical-align: -2px; margin-right: 1px; }

.content { width: min(1500px, 100%); margin: 0 auto; flex: 1; }
.offers { padding: 38px 16px 62px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 7px; }
.section-heading-copy { min-width: 0; }
.section-eyebrow { margin: 0 0 8px; color: #718078; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,115,87,.12); margin: 0 4px 1px 1px; }
h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.06; margin: 0; letter-spacing: -1.1px; }
.section-description { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 10px 0 0; max-width: 39rem; }
.offer-summary { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.82); box-shadow: 0 4px 15px rgba(32,49,42,.04); }
.summary-number { font-size: 23px; font-weight: 850; letter-spacing: -.5px; }
.summary-label { color: var(--muted); font-size: 11px; font-weight: 750; }
.results-note { color: var(--muted); font-size: 12px; margin: 18px 0 15px; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; background: var(--card); border: 1px solid #e0e8e1; border-radius: 16px; overflow: hidden; text-align: left; contain: layout paint; box-shadow: 0 2px 9px rgba(32,49,42,.035); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.product-card[hidden] { display: none; }
.product-card:hover, .product-card:focus-within { border-color: #c8d9cd; box-shadow: 0 13px 30px rgba(32,49,42,.11); transform: translateY(-3px); }
.product-card button { display: block; width: 100%; height: 100%; border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
.product-image-wrap { position: relative; background: linear-gradient(145deg, #fbfcf9, #edf3ed); aspect-ratio: 1.04 / 1; display: grid; place-items: center; overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-image, .product-card:focus-within .product-image { transform: scale(1.035); }
.discount-badge { position: absolute; left: 11px; top: 11px; border-radius: 999px; background: #fff; color: var(--green); padding: 6px 8px; font-size: 11px; font-weight: 850; box-shadow: 0 3px 9px rgba(32,49,42,.11); }
.product-info { padding: 14px 14px 13px; }
.product-category { display: block; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; }
.product-name { min-width: 0; font-size: clamp(13px, 1.3vw, 16px); line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; word-break: break-word; }
.price-line { display: flex; align-items: baseline; gap: 9px; margin-top: 11px; }
.discount { color: var(--accent); font-weight: 850; font-size: 12px; }
.price { font-size: 21px; font-weight: 880; letter-spacing: -.3px; }
.rrp { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-top: 7px; }
.product-footer { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.stock { color: var(--green); font-size: 11px; font-weight: 800; }
.card-cta { color: #3d6652; font-size: 12px; font-weight: 850; white-space: nowrap; }
.card-cta span { display: inline-block; margin-left: 3px; transition: transform .18s ease; }
.product-card:hover .card-cta span, .product-card:focus-within .card-cta span { transform: translateX(3px); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 30px; }
.empty-state h2 { color: var(--ink); margin: 0 0 5px; font-size: 21px; }
.empty-state p { margin: 0; }
.secondary-button { margin-top: 19px; border: 1px solid #c6d6ca; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 9px; font-weight: 800; font-size: 13px; transition: border-color .18s ease, background-color .18s ease; }
.secondary-button:hover { border-color: #85a792; background: #f9fbf8; }

.site-footer { background: #eef3ee; border-top: 1px solid var(--line); padding: 40px 20px max(40px, env(safe-area-inset-bottom)); text-align: center; color: #5d6d63; font-size: 12px; line-height: 1.5; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 22px; font-weight: 850; }
.footer-brand img { border-radius: 9px; }
.site-footer p { max-width: 600px; margin: 9px auto; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 16px 0; }
.footer-links a { color: #33483b; padding: 7px 1px; text-decoration: underline; text-underline-offset: 2px; }
.copyright { color: #89968d; }

.side-drawer { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); min-height: 100vh; min-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: #fff; padding: 28px; padding-left: max(28px, env(safe-area-inset-left)); padding-bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform .22s cubic-bezier(.2,.8,.2,1); box-shadow: 12px 0 36px rgba(32,49,42,.18); }
.side-drawer.is-open { transform: translateX(0); }
.drawer-backdrop { position: fixed; z-index: 15; inset: 0; background: rgba(32,49,42,.42); backdrop-filter: blur(2px); }
.drawer-close, .dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: #f0f4f0; width: 40px; height: 40px; border-radius: 10px; font-size: 25px; line-height: 1; color: #44584b; transition: background-color .18s ease, transform .18s ease; }
.drawer-close:hover, .dialog-close:hover { background: #e5eee7; transform: rotate(4deg); }
.drawer-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 22px; font-weight: 850; }
.drawer-logo img { border-radius: 9px; }
.drawer-intro { max-width: 220px; color: var(--muted); line-height: 1.5; margin: 18px 0 0; }
.side-drawer nav { display: grid; gap: 5px; margin-top: 30px; }
.side-drawer nav a { padding: 14px 12px; border-radius: 9px; color: #44584b; font-weight: 750; transition: background-color .18s ease, color .18s ease; }
.side-drawer nav a:hover, .side-drawer nav a:focus-visible { background: #f1f5f1; color: var(--ink); }
.drawer-note { display: grid; gap: 4px; margin-top: 34px; padding: 14px; background: var(--soft); border-radius: 12px; color: var(--muted); font-size: 12px; }
.drawer-note strong { color: var(--ink); }
.product-dialog { width: min(680px, calc(100% - 28px)); max-height: min(90vh, 760px); max-height: min(90dvh, 760px); overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(32,49,42,.28); color: var(--ink); }
.product-dialog::backdrop { background: rgba(32,49,42,.54); backdrop-filter: blur(3px); }
.dialog-close { z-index: 1; }
.dialog-inner { display: grid; grid-template-columns: 42% 58%; align-items: start; gap: 22px; padding: 26px; }
.dialog-inner img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; align-self: start; border: 1px solid var(--line); border-radius: 12px; background: #f6f8f4; }
.dialog-copy-wrap { padding-top: 4px; }
.dialog-inner h2 { font-size: 21px; line-height: 1.25; margin: 12px 0 12px; letter-spacing: -.3px; }
.dialog-price { font-size: 26px; font-weight: 850; }
.dialog-copy { color: var(--muted); line-height: 1.5; }
.dialog-assurance { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 750; }
.dialog-assurance span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #e6f1e8; }
.dialog-action { width: 100%; border: 0; border-radius: 9px; background: var(--accent); color: #fff; padding: 12px 17px; font-weight: 850; margin-top: 16px; box-shadow: 0 7px 14px rgba(201,103,67,.2); transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.dialog-action:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 9px 18px rgba(201,103,67,.27); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); transform: translate(-50%, 20px); background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 650; text-align: center; box-shadow: 0 12px 30px rgba(32,49,42,.22); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

@media (min-width: 760px) {
  .topbar { height: 84px; padding: 0 34px; }
  .search-row, .delivery-row { padding-left: 34px; padding-right: 34px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers { padding: 46px 34px 72px; }
}
@media (min-width: 1120px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topbar, .search-row, .delivery-row { max-width: 1500px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .offers { padding-top: 28px; }
  .section-heading { align-items: flex-start; }
  .section-description { font-size: 13px; max-width: 28rem; }
  .offer-summary { padding: 9px 10px; gap: 5px; }
  .summary-number { font-size: 20px; }
  .summary-label { font-size: 10px; max-width: 52px; line-height: 1.1; }
  .products-grid { gap: 12px; }
  .product-info { padding: 12px 11px 11px; }
  .discount-badge { left: 8px; top: 8px; padding: 5px 7px; font-size: 10px; }
  .price { font-size: 18px; }
  .card-cta { font-size: 11px; }
  .product-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); max-height: calc(100dvh - 18px); border-radius: 14px; }
  .dialog-inner { grid-template-columns: 1fr; gap: 0; padding: 20px; }
  .dialog-inner img { max-height: 240px; }
  .dialog-inner h2 { margin-top: 12px; }
  .delivery-note { display: none; }
}

@media (max-width: 420px) {
  .topbar { height: 70px; padding-left: 12px; padding-right: 12px; }
  .header-actions { gap: 0; }
  .search-row { padding-left: 12px; padding-right: 12px; }
  .delivery-row { padding-left: 12px; padding-right: 12px; }
  .offers { padding: 24px 12px 48px; }
  .section-heading { display: grid; gap: 16px; }
  .offer-summary { justify-self: start; }
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-image-wrap { aspect-ratio: 1.45 / 1; }
  .product-name { font-size: 15px; }
  .product-footer { flex-wrap: nowrap; }
}
