:root {
  color-scheme: light;
  --ink: #0f1111;
  --muted: #53595e;
  --green: #216078;
  --green-dark: #182434;
  --green-soft: #edf3f6;
  --canvas: #e7e9eb;
  --white: #fff;
  --border: #d5d9d9;
  --heading: #111820;
  --accent: #ffd814;
  --display: Arial, Tahoma, sans-serif;
  font-family: Arial, system-ui, sans-serif;
  font-size: 16px;
}

:root[dir="rtl"] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; --display: "Noto Sans Arabic", Tahoma, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); line-height: 1.18; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #007185; outline-offset: 3px; }
::selection { color: var(--green-dark); background: var(--accent); }

.shell { width: min(100% - 2.5rem, 90rem); 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: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
main { min-height: 72vh; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: .35rem; font: bold 2rem/1 Arial,sans-serif; letter-spacing: -.075em; }
.wordmark-dot { color: #ffae48; }
.mobile-nav { display: none; }
.primary-button, .secondary-button, .icon-button, .compare-button, .danger-button { min-height: 44px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-size: .88rem; font-weight: 800; }
.primary-button { background: var(--green); color: white; padding: .56rem 1.05rem; }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { background: white; box-shadow: inset 0 0 0 1px var(--border); color: var(--green-dark); padding: .55rem .78rem; }
.secondary-button:hover, .icon-button:hover { background: #e5efe2; }
.icon-button { width: 44px; color: var(--green-dark); background: #eff4f5; flex: none; }
.add-button { background: var(--accent); }
.compare-button { background: transparent; color: var(--green-dark); border: 1px solid #afc2b3; padding: .5rem .55rem; }
.compare-button:hover, .add-button:hover { background: #f1f5d8; }
.danger-button { background: #9a352e; color: white; padding: .55rem .9rem; }
.danger-button:hover { background: #772921; }
.text-button { display: inline-flex; align-items: center; gap: .42rem; min-height: 44px; color: var(--green); font-size: .9rem; font-weight: 800; padding-inline: .25rem 0; text-align: start; }
.text-button:hover { color: var(--green-dark); text-decoration: underline; }
.text-button svg { width: 19px; height: 19px; }
:root[dir="rtl"] .text-button svg { transform: scaleX(-1); }

.aisles { margin-block: .95rem 1.75rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: .7rem; }
.section-head h2 { font: 600 1.85rem/1.15 var(--display); letter-spacing: -.025em; }
.section-note { color: var(--muted); margin-block-start: .35rem; max-width: 42rem; }


.catalog { padding-block-end: 2.2rem; }
.catalog-head { margin-block-end: .45rem; }
.filter-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.filter { display: inline-flex; align-items: center; position: relative; max-width: 100%; }
.filter::after { content: ""; width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; position: absolute; inset-inline-end: .93rem; inset-block-start: 41%; }
:root[dir="rtl"] .filter::after { transform: rotate(-45deg); }
.filter select { appearance: none; max-width: 100%; min-height: 44px; border-radius: 5px; border: 1px solid var(--border); background: var(--white); padding: .52rem 2rem .52rem .78rem; font-size: .88rem; font-weight: 750; }
:root[dir="rtl"] .filter select { padding: .52rem .78rem .52rem 2rem; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--muted); margin-block: .65rem; }
.status-pill { display: inline-flex; align-items: center; gap: .36rem; color: #375a67; }
.status-pill > span { width: .43rem; height: .43rem; border-radius: 50%; background: #7d6a36; }


.product-photo, .mini-photo, .aisle-photo { background-image: url('/assets/groceries.webp'); background-size: 300% 200%; background-repeat: no-repeat; }
.photo-milk { background-color: #e9f1f7; background-position: 0 0; }
.photo-eggs { background-color: #f7edd9; background-position: 50% 0; }
.photo-pantry { background-color: #f6ecdd; background-position: 100% 0; }
.photo-oil { background-color: #f7efd7; background-position: 0 100%; }
.photo-produce { background-color: #f8e7e5; background-position: 50% 100%; }
.photo-bakery { background-color: #f5e7d8; background-position: 100% 100%; }

.row-category { display: block; color: var(--muted); font-size: .76rem; margin-block-end: .18rem; }
.product-title { text-align: start; padding: 0; line-height: 1.35; font-size: 1rem; font-weight: 800; color: var(--ink); }
.product-title:hover { text-decoration: underline; text-underline-offset: .17em; }
.pack-size { margin-block-start: .17rem; color: var(--muted); font-size: .87rem; }
.store-count { display: inline-flex; align-items: center; gap: .27rem; color: #375a67; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.row-retailers { display: flex; flex-wrap: wrap; gap: .13rem .4rem; margin: .13rem 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .84rem; }
.row-retailers li + li::before { content: "·"; color: #678171; margin-inline-end: .4rem; }

.price-kicker { font-size: .75rem; font-weight: 750; color: var(--muted); line-height: 1.2; }
.card-price strong, .deal-price strong { font-size: 1.35rem; font-weight: 800; color: var(--green-dark); }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money small { font-size: .66em; font-weight: 750; }
.per-unit { font-size: .85rem; color: var(--muted); }
.unavailable { font-size: .89rem; color: var(--muted); }

.notice { display: flex; align-items: flex-start; gap: .55rem; background: #f3f6f8; color: #3b505e; border: 1px solid #d8e1e6; border-radius: 12px; margin-block: .95rem; padding: .65rem .8rem; font-size: .89rem; }
.notice svg { margin-block-start: .12rem; }
.muted, .placeholder { color: var(--muted); }
.placeholder { padding-block: 2rem; }
.empty { text-align: center; border: 1px solid var(--border); border-radius: 17px; background: white; min-height: 16rem; padding: 2rem 1rem; display: grid; justify-items: center; align-content: center; gap: .65rem; }
.empty h2 { font-size: 1.32rem; }
.empty p { color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; color: var(--green); background: var(--green-soft); }
.empty .primary-button, .empty .secondary-button { margin-block-start: .25rem; }

.inner-page { padding-block: 2.4rem 3.1rem; }
.page-head { margin-block-end: 1.35rem; }
.page-head h1 { font: 600 clamp(2.65rem, 5.7vw, 4.7rem)/1 var(--display); letter-spacing: -.035em; }
.page-head .section-note { margin-block-start: .48rem; }
.segmented { display: inline-flex; gap: .23rem; align-items: center; padding: .25rem; border: 1px solid var(--border); background: #edf1f4; border-radius: 12px; }
.segmented button { min-height: 42px; padding-inline: .85rem; border-radius: 8px; color: var(--muted); font-weight: 800; font-size: .9rem; }
.segmented button[aria-pressed="true"] { color: var(--green-dark); background: white; box-shadow: 0 1px 4px #17212b1f; }
.deal-grid, .store-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.deal-card, .store-card, .quote-card, .basket-list, .offer-row { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: .85rem; }
.deal-top { display: flex; align-items: center; gap: .62rem; }
.deal-top > div:nth-child(2) { flex: 1; min-width: 0; }
.deal-top strong, .deal-top h2 { display: block; font-size: .97rem; font-weight: 800; overflow-wrap: anywhere; }
.deal-top > div:nth-child(2) > span { display: block; color: var(--muted); font-size: .83rem; margin-block-start: .13rem; }
.store-mark { width: 37px; height: 37px; display: inline-grid; place-items: center; flex: 0 0 37px; background: var(--store); color: white; border-radius: 5px; font: 800 1rem/1 Arial, sans-serif; }
.deal-date { color: #375942; background: #eff4f5; border-radius: 8px; padding: .3rem .46rem; font-size: .76rem; line-height: 1.3; max-width: 42%; }
.deal-product { display: flex; align-items: center; gap: .75rem; padding-block: .85rem; }
.mini-photo { width: 73px; height: 53px; flex: none; border-radius: 9px; }
.deal-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-block-start: .2rem; }
.deal-price del { color: var(--muted); font-size: .86rem; }
.deal-footer { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding-block-start: .53rem; border-block-start: 1px solid var(--border); }
.source-link { display: inline-flex; min-height: 44px; align-items: center; gap: .35rem; width: fit-content; color: var(--green); font-weight: 800; font-size: .87rem; }
.source-link:hover { text-decoration: underline; }
.store-card { min-height: 9.4rem; display: grid; align-content: start; gap: .3rem; }
.store-card p { color: var(--muted); font-size: .87rem; margin-block-start: .35rem; }
.basket-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 1.35rem; align-items: start; }
.basket-list, .basket-quotes { padding: clamp(.85rem, 1.7vw, 1.35rem); }
.basket-quotes { background: #eef2f5; border-radius: 6px; }
.workspace-heading { display: flex; align-items: center; gap: .65rem; margin-block-end: 1rem; }
.workspace-heading > div { flex: 1; min-width: 0; }
.workspace-heading h2 { font-size: 1.25rem; }
.workspace-heading p { margin-block-start: .18rem; color: var(--muted); font-size: .88rem; }
.workspace-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #edf2f6; color: var(--green-dark); }
.basket-quotes .workspace-icon, .basket-location { background: #fff; }
.basket-quotes .empty { min-height: 13rem; }
.basket-quotes .empty h2 { font-size: 1.2rem; }
.list-actions, .list-editor-actions, .basket-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.list-actions { padding-block-end: .95rem; border-block-end: 1px solid var(--border); }
.list-actions .filter { flex: 1 1 6rem; min-width: 0; }
.list-actions select { width: 100%; }
.list-tool { background: #f2f4f5; }
.list-editor { display: grid; gap: .5rem; padding: .8rem; margin-block-start: .75rem; border-radius: 11px; background: #f4f6f7; }
.list-editor label, .basket-picker > label { color: var(--green-dark); font-size: .89rem; font-weight: 800; }
.list-editor input, .basket-search { min-width: 0; min-height: 44px; border: 1px solid var(--border); border-radius: 9px; background: white; }
.list-editor input { padding: .4rem .65rem; }
.basket-picker { margin-block: .85rem .65rem; }
.basket-search { display: flex; align-items: center; gap: .5rem; margin-block-start: .33rem; padding-inline: .58rem; color: var(--green); }
.basket-search input { width: 100%; min-height: 42px; min-width: 0; border: 0; background: none; color: var(--ink); }
.basket-search input:focus { outline: 0; }
.basket-search:focus-within { outline: 2px solid #5f8f6a; outline-offset: 2px; }
.picker-options, .item-price-list, .quote-lines ul { padding: 0; margin: 0; list-style: none; }
.picker-options { display: grid; gap: .25rem; margin-block-start: .35rem; padding: .3rem; border: 1px solid var(--border); border-radius: 9px; background: #f8faf6; }
.picker-options button { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 46px; width: 100%; padding: .35rem .45rem; border-radius: 7px; text-align: start; }
.picker-options button:hover { background: #e8f0e2; }
.picker-options strong, .picker-options small { display: block; }
.picker-options small, .picker-empty, .list-empty { color: var(--muted); font-size: .9rem; }
.picker-empty, .list-empty { padding: .55rem 0 .15rem; }
.basket-line { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .6rem; align-items: center; padding-block: .55rem; border-block-start: 1px solid var(--border); }
.basket-line .mini-photo { width: 53px; height: 44px; }
.basket-line-name { min-width: 0; }
.basket-line-name span { display: block; }
.basket-line-name span { color: var(--muted); font-size: .85rem; }
.basket-line-controls, .quantity-group { display: flex; align-items: center; }
.basket-line-controls { gap: .25rem; }
.quantity-group { gap: .08rem; background: #f4f7f1; border-radius: 9px; }
.quantity-button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--green-dark); }
.quantity-button:disabled { color: #889a8e; cursor: default; }
.quantity-button:not(:disabled):hover { background: var(--green-soft); }
.quantity-input { width: 2.05rem; min-height: 40px; appearance: textfield; border: 0; border-radius: 5px; background: none; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.remove-button { color: #83433a; }
.basket-toolbar { justify-content: space-between; margin-block-end: .7rem; }
.basket-tabs { background: #e1ebdb; border-color: #d5e3d0; }
.basket-comparisons { display: grid; gap: .65rem; }
.basket-comparisons .notice { margin: 0; background: #f7f9f4; }
.quote-card { margin: 0; }
.winner-quote { border-color: #8ead89; }
.quote-figures { display: grid; gap: .35rem; margin: .68rem 0 .12rem; color: var(--muted); font-size: .91rem; }
.quote-figures div { display: flex; justify-content: space-between; gap: .75rem; }
.quote-figures dd { margin: 0; color: var(--ink); }
.quote-figures .quote-total { padding-block-start: .45rem; border-block-start: 1px solid var(--border); color: var(--green-dark); font-weight: 800; }
.quote-warning { margin-block-start: .47rem; color: #785c35; font-size: .85rem; }
.quote-lines { margin-block-start: .45rem; }
.quote-lines summary { display: list-item; min-height: 44px; align-content: center; width: fit-content; cursor: pointer; color: var(--green-dark); font-weight: 800; font-size: .88rem; }
.quote-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; padding: .35rem 0; border-block-start: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.quote-lines li .product-title { font-size: .88rem; min-height: 44px; }
.item-comparison { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: .72rem .8rem; }
.item-comparison-head, .item-price-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.item-comparison-head h3 { font-size: 1rem; }
.item-comparison-head p { margin-block-start: .12rem; color: var(--muted); font-size: .86rem; }
.item-price-row { padding-block: .42rem; border-block-start: 1px solid var(--border); }
.item-price-store { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item-price-row .store-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
.item-price-store strong, .item-price-store small, .item-price-amount > small { display: block; }
.item-price-store small, .item-price-amount > small { color: var(--muted); font-size: .8rem; }
.item-price-amount { text-align: end; }
.item-price-amount strong { color: var(--green-dark); white-space: nowrap; }
.item-price-row .source-link { font-size: .8rem; }

.site-footer { background: #232f3e; border-block-start: 1px solid var(--border); }
.footer-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .84rem; }
.footer-inner .wordmark { font-size: 1.6rem; }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner > div a:hover { text-decoration: underline; }
.modal { border: 1px solid var(--border); border-radius: 8px; width: min(100% - 1.5rem, 40rem); max-height: min(85dvh, 47rem); padding: 1.2rem; color: var(--ink); background: var(--white); }
.modal[data-kind="location"] { max-width: 33rem; }
.modal::backdrop { background: #182b24a0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-end: .8rem; }
.dialog-head h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.dialog-note { margin-block-end: .75rem; color: var(--muted); }
.location-list { display: grid; gap: .5rem; }
.location-option { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .75rem; text-align: start; min-height: 60px; border: 1px solid var(--border); border-radius: 11px; color: var(--green-dark); }
.location-option:hover { background: var(--green-soft); }
.location-option > span { flex: 1; }
.location-option strong, .location-option small { display: block; }
.location-option small { color: var(--muted); font-size: .85rem; }
.detail-product { display: flex; align-items: center; gap: .75rem; padding-block: .55rem .95rem; }
.detail-product > div:nth-child(2) { flex: 1; }
.detail-product h3 { font-size: 1.05rem; }
.detail-product p { font-size: .85rem; margin-block-start: .15rem; color: var(--muted); }
.detail-price-summary { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-block: 0 .7rem; padding: .72rem .8rem; border-radius: 11px; background: #ecf3e7; color: var(--green-dark); font-weight: 800; }
.detail-price-summary > span > small { display: block; color: #48614f; font-size: .85rem; font-weight: 650; }
.detail-price-summary strong { font-size: 1.2rem; }
.offer-list { display: grid; gap: .55rem; }
.offer-row > p { margin-block-start: .38rem; color: var(--muted); font-size: .85rem; }
.offer-price { text-align: end; }
.offer-price > span { display: block; color: var(--muted); font-size: .82rem; }
.toast { position: fixed; z-index: 5; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; display: flex; align-items: center; gap: .5rem; max-width: min(27rem, calc(100% - 2.5rem)); padding: .65rem .9rem; border-radius: 12px; background: var(--green-dark); box-shadow: 0 3px 13px rgb(0 0 0 / 20%); color: white; font-size: .9rem; }
.toast a { display: inline-flex; min-height: 44px; align-items: center; flex: none; text-underline-offset: .23em; text-decoration: underline; font-weight: 800; color: #e3f4ce; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; letter-spacing: 0; }

.review-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-panel { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; margin-block: .75rem; }
.review-panel h2, .review-panel h3 { margin-block-end: .55rem; font-size: 1.1rem; }
.review-panel summary { cursor: pointer; font-weight: 800; }
.review-panel summary small { margin-inline-start: .48rem; color: var(--muted); font-weight: 600; }
.review-panel form, .review-panel#review-login { display: grid; gap: .7rem; justify-items: start; }
.review-panel form { margin-block-start: .65rem; }
.review-panel label { display: grid; gap: .25rem; width: 100%; font-weight: 700; font-size: .9rem; }
.review-panel input, .review-panel select, .review-panel textarea { width: 100%; padding: .52rem; min-height: 42px; border-radius: 8px; border: 1px solid var(--border); background: var(--canvas); font: inherit; }
.review-panel input[type="checkbox"] { width: 1.2rem; min-height: 1.2rem; }
.review-panel .review-check { display: flex; align-items: center; gap: .5rem; }
.review-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem; width: 100%; }
.review-panel textarea { resize: vertical; }
.review-evidence { width: 100%; }
.review-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--muted); }
.review-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.review-actions button:disabled { opacity: .65; }

@media (max-width: 1040px) {

  .basket-line .mini-photo { display: none; }
  .basket-line { grid-template-columns: minmax(0,1fr) auto; }
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 2.15rem); }

  .mobile-nav { display: grid; position: sticky; inset-block-end: 0; z-index: 4; grid-template-columns: repeat(4,minmax(0,1fr)); background: #fff; border-block-start: 1px solid var(--border); padding-block-end: env(safe-area-inset-bottom); }
  .mobile-nav a { display: grid; position: relative; justify-content: center; justify-items: center; align-content: center; min-height: 57px; padding: .28rem; font-size: .75rem; font-weight: 750; color: var(--muted); }
  .mobile-nav a[aria-current="page"] { color: var(--green-dark); background: var(--accent); }
  .mobile-count:not(:empty) { position: absolute; inset-inline-start: calc(50% + .56rem); inset-block-start: .28rem; height: 17px; min-width: 17px; display: grid; place-items: center; border-radius: 20px; padding-inline: .15rem; background: var(--accent); color: var(--green-dark); font-size: .67rem; }

  .store-grid, .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .row-retailers { margin: 0; }
  .basket-layout { grid-template-columns: minmax(0, 1fr); }
  .inner-page { padding-block-start: 1.65rem; }
  .toast { inset-block-end: 4.35rem; }
}

@media (max-width: 540px) {
  .shell { width: calc(100% - 1.5rem); }
  .wordmark { font-size: 1.55rem; gap: .37rem; }
  .wordmark img { width: 32px; height: 32px; }

  #selected-location { overflow: hidden; text-overflow: ellipsis; }

  .aisles { margin-block: .85rem 1.35rem; }
  .section-head h2 { font-size: 1.36rem; }
  .section-note { font-size: .9rem; }

  .filter select { font-size: .8rem; }
  .catalog-head, .page-head { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .store-grid, .deal-grid { gap: .5rem; }
  .deal-grid { grid-template-columns: minmax(0, 1fr); }

  .row-retailers { display: none; }

  .product-title { font-size: .91rem; }
  .price-kicker { font-size: .73rem; }
  .card-price strong { font-size: 1.15rem; }

  .footer-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: .8rem; gap: .55rem .9rem; }
  .footer-inner > div { width: 100%; }
  .detail-product { flex-wrap: wrap; }
  .detail-product button { width: 100%; }
  .basket-toolbar { align-items: stretch; }
  .basket-tabs { justify-content: center; flex: 1 1 auto; }
  .basket-tabs button { flex: 1; padding-inline: .5rem; }
  .basket-toolbar .filter { flex: 1 1 auto; }
  .basket-toolbar .filter select { width: 100%; }
  .item-price-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: .23rem .45rem; }
  .item-price-row .source-link { grid-column: 2; min-height: 44px; }
  .item-price-amount { grid-column: 3; grid-row: 1 / span 2; }
  .item-comparison-head .text-button { max-width: 43%; font-size: .82rem; }
}

@media (max-width: 355px) {

  .basket-line { display: flex; flex-wrap: wrap; }
  .basket-line-name { flex: 1 1 100%; }
  .list-actions .filter { flex-basis: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
}

/* Storefront navigation */
.site-header { background: #131921; color: white; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.site-header .wordmark, .site-footer .wordmark { color: white; }
.site-header :focus-visible { outline-color: #ffb347; }
.header-actions, .location-control, .basket-control, .language-control { display: flex; align-items: center; }
.header-actions { gap: .6rem; }
.location-control, .basket-control, .language-control { min-height: 44px; padding: .25rem .45rem; gap: .35rem; color: white; border-radius: 3px; white-space: nowrap; font-weight: 700; }
.location-control:hover, .basket-control:hover, .language-control:hover { box-shadow: inset 0 0 0 1px #fff; }
.header-stack { display: grid; text-align: start; line-height: 1.15; }
.header-stack small { color: #ccd2d7; font-size: .76rem; font-weight: 400; }
#selected-location { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.language-control { font-size: .9rem; }
.cart-icon { position: relative; display: inline-flex; padding-block-start: 6px; }
.cart-icon svg { width: 33px; height: 33px; }
.basket-count { position: absolute; inset-block-start: -3px; inset-inline-start: 50%; color: #ffb347; background: #131921; font: bold .94rem/1 Arial,sans-serif; padding: 1px; }
.search-form { display: flex; flex: 1; min-width: 0; height: 44px; border-radius: 5px; background: #fff; color: var(--ink); }
.search-form:focus-within { outline: 3px solid #ffa832; outline-offset: 1px; }
.search-form select { max-width: 8.25rem; padding-inline: .65rem; border: 0; border-radius: 5px 0 0 5px; background: #eceeef; font-size: .8rem; }
.search-form input { flex: 1; min-width: 0; padding-inline: .85rem; border: 0; font-size: 1rem; }
.search-form input:focus { outline: 0; }
.search-submit { width: 52px; border-radius: 0 5px 5px 0; background: #febd69; color: #151b23; }
.search-submit:hover { background: #f3a847; }
.search-submit svg { width: 27px; height: 27px; }
:root[dir=rtl] .search-form select { border-radius: 0 5px 5px 0; }
:root[dir=rtl] .search-submit { border-radius: 5px 0 0 5px; }
.department-bar { padding: 8px 12px; background: #232f3e; }
.department-bar .shell { width: min(100%, 90rem); }
.desktop-nav { display: flex; align-items: stretch; gap: .25rem; overflow-x: auto; }
.desktop-nav a, .desktop-nav button { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding-inline: .7rem; color: #fff; white-space: nowrap; font-size: .89rem; }
.desktop-nav button { padding-inline-start: .5rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav button:hover, .desktop-nav [aria-current] { background: #35465a; }
.department-list { display: grid; }
.department-list button { display: flex; align-items: center; gap: .8rem; min-height: 52px; border-block-end: 1px solid var(--border); text-align: start; }
.department-list button:hover { background: #f4f6f7; }
.department-list button > :last-child { margin-inline-start: auto; }
:root[dir=rtl] .department-list button > :last-child, :root[dir=rtl] .hero-button svg { transform: scaleX(-1); }

/* Grocery department banner and photographic aisle shelf */
.hero { padding: 0 5.8%; position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(235px, 24vw, 340px); background: #e7ead5; overflow: hidden; }
.hero-content { z-index: 1; max-width: 49%; padding: 2rem 0 3.6rem; }
.hero h1 { font: 750 clamp(2.2rem, 4.1vw, 4.1rem)/1.05 var(--display); letter-spacing: -.045em; color: #182a22; }
.hero-description { max-width: 29rem; color: #334237; margin-block: .65rem 1.15rem; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.35; }
.hero-visual { position: absolute; z-index: -1; width: 55%; inset-block: 0; inset-inline-end: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#e7ead5,transparent 29%); }
:root[dir=rtl] .hero-visual::after { background: linear-gradient(270deg,#e7ead5,transparent 29%); }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding-inline: 1.15rem; border-radius: 22px; background: #23382c; color: white; font-weight: 700; }
.hero-button:hover { background: #344e3f; }
.aisles, .catalog, .inner-page { background: white; padding: 24px; }
.aisles { position: relative; margin: -2rem clamp(.7rem, 1.6vw, 1.5rem) 1.1rem; }
.hero[hidden] + .aisles { margin: 1rem 0; }
.aisle-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .8rem; }
.aisle { display: grid; align-content: start; gap: .35rem; padding: 0 0 .25rem; text-align: start; color: #182430; font-weight: 700; }
.aisle-photo { display: block; width: 100%; aspect-ratio: 1.85; }
.aisle-name { padding: .14rem .15rem; }
.aisle:hover .aisle-name { text-decoration: underline; }
.aisle[aria-pressed=true] { outline: 2px solid #007185; outline-offset: 2px; background: #edf5f6; }
.section-head h2, .page-head h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.section-head h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.page-head h1 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.inner-page { margin-block: 1rem 2rem; }
.catalog { margin-block-end: 1.4rem; }
.catalog-head { align-items: center; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dcdfe1; border-radius: 5px; overflow: hidden; }
.product-photo { width: 100%; aspect-ratio: 1.8; display: block; }
.product-photo:focus-visible { outline-offset: -4px; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: .85rem; }
.product-retailers { display: flex; flex-wrap: wrap; align-items: baseline; gap: .42rem; }
.row-retailers { display: flex; }
.card-price { display: grid; gap: .08rem; justify-items: start; text-align: start; margin-block-start: auto; }
.card-price strong { font-size: 1.6rem; color: #111; }
.card-actions { display: flex; gap: .4rem; }
.compare-button, .primary-button { color: #171b1d; border: 0; background: #ffd814; border-radius: 24px; }
.compare-button:hover, .primary-button:hover { background: #f7ca00; }
.view-prices { flex: 1; }
.add-button { border: 1px solid #aeb7bb; border-radius: 50%; background: #fff; color: #15202a; }
.add-button:hover, .secondary-button:hover, .icon-button:hover { background: #eef2f4; }
.site-footer, .footer-inner { color: #e6ebf0; }
.section-head .text-button, .source-link { color: #216078; }
:root[dir=rtl] .hero h1 { letter-spacing: 0; line-height: 1.35; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: .25rem .8rem; padding-block: .4rem .6rem; }
  .header-actions { margin-inline-start: auto; }
  .search-form { order: 1; flex-basis: 100%; }
  .aisle-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .header-inner { column-gap: .35rem; }
  .site-header .wordmark { font-size: 1.6rem; }
  .site-header .wordmark img { width: 27px; height: 27px; }
  .location-control, .language-control, .basket-control { padding-inline: .2rem; }
  .location-control > span:first-child, .basket-label { display: none; }
  #selected-location { max-width: 6rem; font-size: .82rem; }
  .desktop-nav a, .desktop-nav button { padding-inline: .5rem; font-size: .82rem; }
  .department-bar { padding: 8px; }
  .search-form select { max-width: 5.7rem; padding-inline: .25rem; }
  main.shell { width: 100%; }
  .hero { min-height: 178px; padding: 0 16px; }
  .hero-content { max-width: 55%; padding-block: 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero-description { font-size: .88rem; margin-block: .38rem .6rem; }
  .hero-button { padding-inline: .8rem; font-size: .84rem; }
  .hero-visual { width: 50%; }
  .hero-visual img { object-position: 61% 55%; }
  .aisles, .catalog, .inner-page { padding: 16px; }
  .aisles, .hero[hidden] + .aisles { margin: 0 0 .6rem; }
  .aisle-grid, .product-grid { gap: .6rem; }
  .aisle { font-size: .83rem; }
  .aisle-photo { aspect-ratio: 1.65; }
  .product-body { padding: .65rem; gap: .48rem; }
  .catalog-head { align-items: flex-start; }
  .card-actions { flex-wrap: wrap; gap: .25rem; }
  .card-actions .view-prices { font-size: .81rem; }
  .card-actions .add-button { width: 44px; }
  .card-price strong { font-size: 1.3rem; }
  .row-retailers { font-size: .77rem; }
  .inner-page { margin-block-start: .6rem; }
  .mobile-nav { position: static; }
}
@media (max-width: 365px) {
  .card-actions .view-prices { flex-basis: 100%; }
  #selected-location { max-width: 4rem; }
}
