/* Green design, served at /new. */
@font-face { font-family: 'Montserrat'; font-weight: 400 700; font-display: swap; src: url('/assets/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-weight: 400 700; font-display: swap; src: url('/assets/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex Pro'; font-weight: 400 700; font-display: swap; src: url('/assets/readex-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  color-scheme: light;
  --brand: #0f3d31;
  --brand-hover: #1c5546;
  --ink: #10281f;
  --muted: #4c5d55;
  --tint: #ffd3b5;
  --tint-soft: #fdeee3;
  --accent: #bf4b00;
  --accent-hover: #a34000;
  --ground: #f3f4f1;
  --surface: #fff;
  --sand: #eaeee9;
  --line: #dbe1dc;
  --control-line: #7f8f87;
  --danger: #9b2f25;
  --warn: #77500d;
  --page: min(100% - 2.5rem, 80rem);
  font-size: 16px;
  caret-color: var(--brand);
  scrollbar-color: #a6adbb var(--ground);
  --accent-on-dark: #ff8a3d;
  --best: #e3f4ec;
  --best-ink: #06603c;
  /* Montserrat has no Arabic letters, so Arabic falls through to Readex Pro. */
  font-family: 'Montserrat', 'Readex Pro', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--ground); line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, select, input { -webkit-tap-highlight-color: transparent; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
h1:focus, h2:focus, main:focus { outline: 0; }
:focus-visible, h1:focus-visible, h2:focus-visible { outline: 3px solid #1668c7; outline-offset: 3px; }
::selection { color: var(--ink); background: var(--tint); }

.page { width: var(--page); 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 { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 10; padding: .8rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
main { display: block; min-height: 70vh; }
main:focus { outline: 0; }

/* Buttons and fields */
.primary-button, .secondary-button, .danger-button, .add-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border-radius: 8px; font-size: .9rem; font-weight: 600; text-align: center; }
.primary-button, .secondary-button, .danger-button { padding: .55rem 1.1rem; }
.primary-button, .add-button { background: var(--accent); color: var(--ink); }
.primary-button:hover, .add-button:hover { background: var(--accent-hover); }
.secondary-button, .icon-button { background: var(--surface); box-shadow: inset 0 0 0 1px var(--control-line); }
.secondary-button:hover, .icon-button:hover { background: var(--sand); }
.danger-button { background: var(--danger); color: #fff; }
.add-button, .icon-button { width: 44px; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 2px; }
[dir=rtl] .flip { transform: scaleX(-1); }

.filter { display: inline-flex; position: relative; max-width: 100%; }
.filter::after { content: ""; position: absolute; inset-inline-end: 1rem; inset-block-start: 17px; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); pointer-events: none; }
.filter select { appearance: none; max-width: 100%; min-height: 44px; min-width: 10rem; padding-block: .45rem; padding-inline: .85rem 2.5rem; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); font-size: .9rem; text-overflow: ellipsis; }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.segmented { display: inline-flex; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.segmented button { min-height: 42px; padding-inline: 1.15rem; font-size: .9rem; }
.segmented button[aria-pressed=true] { background: var(--accent); font-weight: 600; }
.segmented button:focus-visible { outline-offset: -4px; }

/* Header */
.site-header { background: var(--brand); color: #fff; }
.site-header :focus-visible, .site-footer :focus-visible, .mobile-nav :focus-visible { outline-color: var(--tint); }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: 1.9rem; font-weight: 700; letter-spacing: -.035em; direction: ltr; }
.wordmark i { font-style: normal; color: var(--accent); margin-inline-start: -.45rem; }
.header-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; min-width: 44px; padding-inline: .5rem; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.header-button:hover { background: var(--brand-hover); }
#selected-location { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.search-form { display: flex; flex: 1; min-width: 0; height: 50px; border-radius: 9px; background: #fff; color: var(--ink); }
.search-form:focus-within { outline: 3px solid var(--tint); outline-offset: 2px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; padding-inline: 1rem; }
.search-form input:focus { outline: 0; }
.search-form button { display: grid; place-items: center; width: 48px; margin: 3px; border-radius: 7px; background: var(--accent); }
.basket-link { position: relative; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: .3rem; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; }
.count:empty { display: none; }
.nav-row { border-block-start: 1px solid #ffffff2e; }
.nav-row nav { display: flex; justify-content: space-between; gap: .5rem; overflow-x: auto; }
.nav-row a, .nav-row button { display: inline-flex; align-items: center; gap: .4rem; min-height: 50px; padding-inline: .5rem; font-size: .93rem; white-space: nowrap; border-block-end: 3px solid transparent; }
.nav-row a:hover, .nav-row button:hover { border-color: #ffffff80; }
.nav-row [aria-current=page] { border-color: var(--accent); font-weight: 600; }
.nav-row :focus-visible { outline-offset: -4px; }

/* Sections */
.section { padding-block: 2.5rem 0; }
.section:last-child { padding-block-end: 3.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-block-end: 1.25rem; }
.section-head h1, .section-head h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); letter-spacing: -.02em; }
.section-head .rule { flex: 1; min-width: 2rem; height: 1px; background: var(--line); }

.aisle-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.aisle { display: grid; justify-items: center; align-content: start; gap: .35rem; padding: .35rem .25rem .6rem; border-radius: 12px; text-align: center; font-size: .95rem; font-weight: 600; }
.aisle img { width: 100%; max-width: 11rem; aspect-ratio: 1; }
.aisle:hover { background: var(--tint-soft); }
.aisle[aria-pressed=true] { background: var(--tint); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product-art { display: grid; justify-items: center; border-radius: 8px; }
.product-art img { width: min(100%, 11.5rem); aspect-ratio: 1; }
.product-card h3, .product-card h2 { font-size: 1.05rem; margin-block-start: .5rem; }
.product-card h3 a:hover, .product-card h2 a:hover, .name-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.pack { color: var(--muted); font-size: .9rem; margin-block-start: .2rem; }
.card-price { margin-block-start: auto; padding-block-start: .8rem; }
.card-price > * { display: block; }
.label { color: var(--muted); font-size: .8rem; }
.price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.unit { color: var(--muted); font-size: .85rem; }
.stores-line { min-height: 2.6em; margin-block-start: .35rem; font-size: .82rem; line-height: 1.3; }
.card-actions { display: flex; gap: .55rem; margin-block-start: .8rem; }
.card-actions .primary-button { flex: 1; padding-inline: .6rem; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money small { font-size: .72em; font-weight: 600; }
.unit .money small, del .money small { font-size: 1em; }
.footnote { margin-block-start: 1rem; color: var(--muted); font-size: .85rem; max-width: 70ch; }

/* Product page */
.crumb { margin-block-start: 1rem; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: .75rem 2rem; border-block-end: 1px solid var(--line); }
.product-stage { display: grid; justify-items: center; background: radial-gradient(closest-side, var(--tint-soft) 55%, transparent); }
.product-stage img { width: min(100%, 24rem); aspect-ratio: 1; }
.product-summary h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: -.03em; line-height: 1.08; }
.product-summary > .pack { font-size: 1.2rem; margin-block-start: .6rem; }
.lead-price { margin-block: 1.25rem; }
.lead-price .price { display: block; font-size: 2.4rem; }
.product-summary .primary-button { min-height: 54px; min-width: min(100%, 17rem); font-size: 1.05rem; }

/* Tables become stacked rows on small screens */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: start; }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: start; vertical-align: middle; border-block-end: 1px solid var(--line); }
.data-table thead th { background: var(--sand); font-size: .85rem; font-weight: 600; }
.data-table thead th:first-child { border-start-start-radius: 11px; }
.data-table thead th:last-child { border-start-end-radius: 11px; }
.data-table tbody tr:last-child > * { border-block-end: 0; }
.data-table tbody th { font-weight: 400; }
.data-table .end { text-align: end; }
.data-table td .price { font-size: 1.15rem; }
.store-cell { display: flex; align-items: center; gap: .85rem; }
.store-cell strong { display: block; font-weight: 600; }
.store-cell small { display: block; color: var(--muted); font-size: .8rem; }
.store-mark { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 9px; background: var(--store); color: #fff; font-size: 1.1rem; font-weight: 700; }

/* Deals */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; }
del { color: var(--muted); font-size: .9rem; }
.card-actions.between { justify-content: space-between; align-items: center; }

/* Empty, loading and notes */
.empty { display: grid; justify-items: center; gap: .6rem; padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--control-line); border-radius: 12px; }
.empty img { width: 8rem; }
.empty h2 { font-size: 1.25rem; }
.empty p { color: var(--muted); max-width: 40rem; }
.section > .empty { margin-block-start: 1.25rem; }
.notice { padding: .75rem 1rem; border-radius: 10px; background: var(--tint-soft); font-size: .87rem; }
.placeholder { padding-block: 3rem; color: var(--muted); text-align: center; }

/* Basket */
.list-count { color: var(--muted); font-size: .9rem; }
.list-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.list-actions .filter { flex: 1 1 10rem; }
.list-actions select { width: 100%; }
.list-editor { display: grid; gap: .5rem; margin-block-start: .8rem; padding: 1rem; border-radius: 10px; background: var(--sand); }
.list-editor label { font-weight: 600; font-size: .9rem; }
.list-editor input { min-height: 44px; min-width: 0; padding-inline: .8rem; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.basket-search { display: flex; align-items: center; gap: .6rem; margin-block-start: .9rem; padding-inline: .85rem; min-height: 46px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); }
.basket-search:focus-within { outline: 3px solid #1668c7; outline-offset: 2px; }
.basket-search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: none; }
.basket-search input:focus { outline: 0; }
.picker-options { margin-block-start: .4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.picker-options button { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; min-height: 52px; padding: .45rem .85rem; text-align: start; }
.picker-options li + li { border-block-start: 1px solid var(--line); }
.picker-options button:hover { background: var(--tint-soft); }
.picker-options button:focus-visible { outline-offset: -4px; }
.picker-options strong, .picker-options small { display: block; }
.picker-options small, .picker-empty { color: var(--muted); font-size: .85rem; }
.picker-empty, .list-empty { padding-block: 1rem; color: var(--muted); }
.name-link { display: inline-block; padding-block: .6rem; font-weight: 600; text-align: start; overflow-wrap: anywhere; }
.name-link + .pack, .name-link + small { margin-block-start: -.45rem; }
.line-controls { display: flex; align-items: center; gap: .35rem; }
.quantity-group { display: flex; align-items: center; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); }
.quantity-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; }
.quantity-button:not(:disabled):hover { background: var(--sand); }
.quantity-button:disabled { color: #a5abb6; }
.quantity-input { width: 2.5rem; height: 44px; appearance: textfield; border: 0; border-inline: 1px solid var(--line); background: none; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { appearance: none; }
.remove-button { color: var(--danger); }

.quote-list { display: grid; gap: 1rem; }
.status { padding: .2rem .6rem; border-radius: 6px; background: var(--surface); font-size: .78rem; font-weight: 600; }

/* Footer, overlays */
.site-footer { background: var(--brand); color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; min-height: 96px; padding-block: 1rem; font-size: .9rem; }
.footer-inner > span { color: #c9d3e6; }
.footer-inner nav { display: flex; gap: 1.75rem; }
.footer-inner nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.footer-inner nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.mobile-nav { display: none; }
.modal { width: min(100% - 1.5rem, 34rem); max-height: min(85dvh, 44rem); padding: 1.25rem; border: 0; border-radius: 14px; background: var(--ground); color: var(--ink); box-shadow: 0 18px 50px #06122659; overscroll-behavior: contain; }
.modal::backdrop { background: #0612268c; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-end: .75rem; }
.dialog-head h2 { font-size: 1.35rem; }
.dialog-note { margin-block-end: 1rem; color: var(--muted); }
.option-list { display: grid; gap: .5rem; }
.option { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 60px; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: start; }
.option:hover { background: var(--tint-soft); }
.option > span { flex: 1; }
.option strong, .option small { display: block; }
.option small { color: var(--muted); font-size: .83rem; }
.option img { width: 3rem; aspect-ratio: 1; }
.toast { position: fixed; z-index: 6; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; display: flex; align-items: center; gap: .65rem; max-width: min(28rem, calc(100% - 2.5rem)); padding: .55rem 1rem; border-radius: 10px; background: var(--brand); color: #fff; box-shadow: 0 6px 20px #0612264d; font-size: .9rem; }
.toast a { display: inline-flex; align-items: center; min-height: 44px; flex: none; color: var(--tint); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }

[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { letter-spacing: 0; line-height: 1.4; }
[dir=rtl] .price { letter-spacing: 0; }

@media (max-width: 1000px) {
  .aisle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 1.5rem, 80rem); }
  .header-row { flex-wrap: wrap; gap: .25rem .5rem; min-height: 0; padding-block: .5rem .75rem; }
  .wordmark { font-size: 1.55rem; margin-inline-end: auto; }
  .search-form { order: 1; flex-basis: 100%; }
  #selected-location { max-width: 7rem; }
  .nav-row, .basket-link { display: none; }
  .section { padding-block-start: 1.75rem; }
  .section:last-child { padding-block-end: 2.5rem; }
  .section-head .rule { display: none; }
  .aisle-grid { gap: .5rem; }
  .aisle { font-size: .82rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product-card { padding: .7rem; }
  .product-card h3, .product-card h2 { font-size: .93rem; }
  .price { font-size: 1.25rem; }
  .card-actions { gap: .4rem; }
  .card-actions .primary-button { font-size: .8rem; line-height: 1.25; }
  .card-actions .text-link { font-size: .78rem; white-space: nowrap; }
  .card-actions .text-link svg { display: none; }
  .product-hero { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .product-stage img { width: min(100%, 15rem); }
  .product-summary .primary-button { width: 100%; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .data-table tr { padding: .85rem; border-block-end: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-block-end: 0; }
  .data-table th, .data-table td { padding: .2rem 0; border: 0; }
  .data-table td[data-cell] { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: end; }
  .data-table td[data-cell]::before { content: attr(data-cell); color: var(--muted); font-size: .8rem; text-align: start; }
  .data-table .end { text-align: start; }
  .site-footer { padding-block-end: calc(60px + env(safe-area-inset-bottom)); }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; z-index: 4; inset-inline: 0; inset-block-end: 0; padding-block-end: env(safe-area-inset-bottom); background: var(--brand); color: #fff; border-block-start: 1px solid #ffffff2e; }
  .mobile-nav a { display: grid; position: relative; justify-items: center; align-content: center; gap: .1rem; min-height: 60px; font-size: .75rem; }
  .mobile-nav a[aria-current=page] { background: var(--accent); color: var(--ink); font-weight: 600; }
  .mobile-nav .count { position: absolute; inset-block-start: .25rem; inset-inline-start: calc(50% + .5rem); min-width: 18px; height: 18px; font-size: .68rem; }
  .mobile-nav [aria-current=page] .count { background: var(--brand); color: #fff; }
  .count:empty { display: none; }
  .toast { inset-block-end: calc(72px + env(safe-area-inset-bottom)); inset-inline: .75rem; max-width: none; }
}

@media (max-width: 440px) {
  .line-controls { grid-column: 2; }
  .card-actions:not(.between) { flex-wrap: wrap; }
  .card-actions .primary-button { flex-basis: 4.5rem; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: .5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color 150ms ease-out, border-color 150ms ease-out; }
  .aisle img, .product-art img { transition: transform 260ms cubic-bezier(.16, 1, .3, 1); }
  .aisle:hover img, .product-card:hover .product-art img { transform: translateY(-6px); }
 @keyframes set-down { from { transform: translateY(-14px); opacity: .35; } }
}

/* Offers, basket table and header navigation */
.primary-button, .add-button, .segmented button[aria-pressed=true], .mobile-nav a[aria-current=page], .count { color: #fff; }
.count { background: var(--accent); }
.wordmark i { color: var(--accent-on-dark); margin-inline-start: -.45rem; }
.search-form button { color: #fff; }
.site-header :focus-visible, .site-footer :focus-visible, .mobile-nav :focus-visible { outline-color: #fff; }
.search-form:focus-within { outline-color: var(--accent-on-dark); }
.nav-row { background: #fff; color: var(--ink); border: 0; border-block-end: 1px solid var(--line); }
.nav-row nav { justify-content: flex-start; gap: 1.75rem; }
.nav-row a:hover, .nav-row button:hover { border-color: var(--line); }
.nav-row [aria-current=page] { border-color: var(--accent); color: var(--accent); }
.nav-row :focus-visible { outline-color: #1668c7; }
.nav-row button { margin-inline-start: auto; }
.mobile-nav [aria-current=page] .count { background: #fff; color: var(--ink); }

.page-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -.025em; }
.page-note { margin-block-start: .35rem; color: var(--muted); font-size: .9rem; }
.chips { display: flex; gap: .6rem; margin-block: 1.1rem .85rem; padding-block: 3px; overflow-x: auto; }
.chip { display: inline-flex; flex: none; align-items: center; gap: .6rem; min-height: 50px; padding-inline: .55rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .88rem; font-weight: 600; }
.chip[data-store=all] { padding-inline: 1rem; }
.chip[aria-pressed=true] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--best); }
.chip:focus-visible { outline-offset: -4px; }
.chip .store-mark { width: 32px; height: 32px; font-size: .9rem; }
.toolbar { margin-block-end: 1rem; }

.product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.product-card { position: relative; border: 0; }
.product-art img { width: min(100%, 9rem); }
.saving { position: absolute; z-index: 1; inset-block-start: .7rem; inset-inline-start: .7rem; padding: .2rem .55rem; border-radius: 6px; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; }
.deal-grid .price { color: var(--accent); }
.card-divider { display: none; }
.add-button, .card-actions .primary-button { border-radius: 8px; }
.deal-grid .add-button { background: var(--brand); }
.deal-grid .add-button:hover { background: var(--brand-hover); }
.product-stage { background: radial-gradient(closest-side, #fff 60%, transparent); }

.list-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.25rem; align-items: start; margin-block-end: .75rem; }
.list-bar .basket-search { margin-block-start: 0; }
.table-scroll { margin-block-start: .75rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.basket-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.basket-table th, .basket-table td { min-width: 10.5rem; padding: .75rem .9rem; text-align: end; vertical-align: middle; border-block-end: 1px solid var(--line); }
.basket-table tr > :first-child { position: sticky; z-index: 1; inset-inline-start: 0; width: 19rem; min-width: 15rem; text-align: start; background: #fff; border-inline-end: 1px solid var(--line); font-weight: 400; }
.basket-table thead th { background: var(--sand); font-size: .88rem; vertical-align: bottom; }
.basket-table thead th:first-child { background: var(--sand); font-weight: 600; }
.basket-table thead .store-mark { width: 30px; height: 30px; margin-inline-start: auto; margin-block-end: .35rem; display: grid; font-size: .85rem; }
.basket-table thead span:not(.store-mark) { display: block; }
.basket-table small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.basket-table small .money small { display: inline; font-size: 1em; }
.basket-table strong { display: block; font-size: 1.2rem; }
.basket-table strong .money small { display: inline; }
.basket-table td .text-link { font-size: .8rem; }
.basket-table td.best { background: var(--best); }
.basket-table td.best strong, .basket-table td.best small { color: var(--best-ink); }
.basket-table td.none { color: var(--muted); font-size: .88rem; }
.basket-table tfoot th, .basket-table tfoot td { background: var(--brand); color: #fff; border: 0; vertical-align: top; }
.basket-table tfoot th:first-child { background: var(--brand); font-weight: 600; font-size: 1.1rem; }
.basket-table tfoot small { color: #c3d8cf; }
.basket-table tfoot strong { font-size: 1.35rem; }
.basket-table .status { display: inline-block; margin-block-start: .4rem; padding: .15rem .5rem; border-radius: 6px; background: #ffffff1f; font-size: .76rem; }
.basket-table tfoot td.winner .status { background: #fff; color: var(--ink); }
.row-product { display: flex; align-items: center; gap: .75rem; }
.row-product img { width: 3.5rem; flex: none; }
.basket-table .line-controls { margin-block-start: .35rem; }

@media (max-width: 760px) {
  .list-bar { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .basket-table tr > :first-child { width: 12.5rem; min-width: 12.5rem; padding-inline: .6rem; }
  .basket-table th, .basket-table td { min-width: 8.5rem; padding-inline: .6rem; }
  .basket-table .row-product img { display: none; }
  .basket-table .name-link { font-size: .85rem; }
}

/* Retailer logos sit on a white tile, wider than the letter badge so wordmarks stay readable. */
.store-mark.store-logo { width: 68px; height: 42px; flex: none; object-fit: contain; padding: 3px; border: 1px solid var(--line); background: #fff; }
.chip .store-mark.store-logo { width: 52px; height: 32px; padding: 2px; }
.basket-table thead .store-mark.store-logo { display: block; width: 60px; height: 34px; }
