/* /compare page only, catalog layout (v2, 20.10.2026) (loaded after site.css). Warm palette of the approved sketch: cream #FAF6EF, dusty blue #45647B,
   terracotta #C4673F, Heebo. The site's own tokens are redefined under .page-compare, so the shared header and
   footer follow the page. RTL-first (logical properties), rem-based, 44px touch targets, AA contrast in both themes. */

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/heebo-v28-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/heebo-v28-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;
}

.page-compare {
  --ground: #FAF6EF;
  --surface: #FFFFFF;
  --ink: #2B2622;
  --muted: #6B645B;          /* 5.4:1 on cream */
  --primary: #45647B;        /* dusty blue, 5.8:1 on cream */
  --primary-strong: #34505F;
  --terra: #C4673F;          /* fills with large bold text only (3.9:1 with white) */
  --terra-text: #A9532F;     /* terracotta as text: 4.9:1 on cream */
  --terra-soft: #F6E3D8;
  --tile: #F1EDE6;           /* the app's BRAND_TILE ("תמונה לא זמינה") */
  --dark-tile: #1F2A26;      /* the app's DARK_TILE (white logos) */
  --bar: #2B2622;
  --blue-soft: #E6EDF2;
  --line: #E7DED0;
  --line-strong: #CFC3B1;
  --warn: #8A5A00;
  --warn-bg: #FFF3D9;
  --focus: #45647B;
  --select: #E6EDF2;
  --mint: #E6EDF2;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .page-compare {
    --ground: #1F1B17;
    --surface: #2A251F;
    --ink: #F3EDE4;
    --muted: #C2B8AA;
    --primary: #9DB8CC;
    --primary-strong: #C2D5E2;
    --terra: #C4673F;
    --terra-text: #E39A78;
    --terra-soft: #3B2A21;
    --tile: #3A332B;
    --bar: #120F0C;
    --blue-soft: #26313A;
    --line: #3A332B;
    --line-strong: #544A3F;
    --warn: #F2C46D;
    --warn-bg: #33290F;
    --focus: #9DB8CC;
    --select: #34414C;
    --mint: #26313A;
  }
}

.page-compare h1, .page-compare h2, .page-compare h3 { line-height: 1.25; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.nowrap { white-space: nowrap; }

/* Header: logo · pill search · city pill (replaces the nav on this page) */
.page-compare .wrap { max-width: 77.5rem; }
.page-compare .site-header { background: var(--ground); position: relative; z-index: 20; }
.page-compare .site-header .wrap { flex-wrap: nowrap; gap: var(--s2); }
.hdr-tools { display: flex; align-items: center; gap: .75rem; flex: 1; justify-content: flex-end; min-width: 0; }
.hdr-search { position: relative; flex: 1; max-width: 36rem; min-width: 0; }
.hdr-icon { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hdr-search input {
  width: 100%; min-height: 48px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .5rem 2.75rem .5rem 1.25rem;
  padding-inline-start: 2.75rem;
}
.hdr-search input::placeholder { color: var(--muted); }
.hdr-city { position: relative; flex: none; }
.hdr-city .hdr-icon { color: var(--primary); }
.hdr-city select {
  min-height: 48px; font: inherit; font-size: 1rem; font-weight: 600; color: var(--primary); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--primary); border-radius: 999px;
  padding-block: .5rem; padding-inline: 2.5rem 1rem; appearance: none; -webkit-appearance: none;
}
/* The pill shows the signed-in user's registration city, "ארצי" for a guest (owner's decision 20.10.2026); the select
   that chooses the comparison's city lies over it, transparent (it still opens with a click or the keyboard). */
.hdr-city-pill { display: flex; align-items: center; min-height: 48px; font-size: 1rem; font-weight: 600; color: var(--primary);
  background: var(--surface); border: 1.5px solid var(--primary); border-radius: 999px; padding-block: .5rem; padding-inline: 2.5rem 1rem;
  white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.hdr-city .hdr-city-pill + label + select { position: absolute; inset: 0; width: 100%; min-height: 0; opacity: 0; padding: 0; border: 0; }
.hdr-city:focus-within .hdr-city-pill { outline: 3px solid var(--focus); outline-offset: 2px; }
.page-compare input:focus-visible, .page-compare select:focus-visible, .page-compare textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
@media (max-width: 40rem) {
  .page-compare .site-header .wrap { flex-wrap: wrap; padding-block: .75rem; }
  .page-compare .site-header .brand { flex: 1; }
  .hdr-tools { display: contents; }
  .hdr-city { order: 2; }
  .hdr-city select { min-height: 44px; font-size: .9375rem; }
  .hdr-city-pill { min-height: 44px; font-size: .9375rem; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* Suggestions (combobox listbox) */
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + .375rem); z-index: 30; margin: 0; padding: .25rem; list-style: none;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 12px 32px rgb(43 38 34 / .16); max-height: min(28rem, 60vh); overflow-y: auto;
}
.suggest li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; align-items: center;
  min-height: 56px; padding: .375rem .5rem; border-radius: 10px; cursor: pointer; line-height: 1.35;
}
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--blue-soft); }
.suggest .msg { display: block; color: var(--muted); cursor: default; }
.suggest .msg:hover { background: none; }
.suggest .range { font-size: .875rem; color: var(--muted); white-space: nowrap; }

/* Page layout: catalog + basket panel (panel on the start = right side) */
.cmp { display: grid; gap: var(--s3); align-items: start; padding-bottom: var(--s5); }
@media (min-width: 62rem) {
  .cmp { grid-template-columns: 22.5rem minmax(0, 1fr); grid-template-areas: "panel main"; }
  .cmp-main { grid-area: main; }
  /* Sticky, never taller than the window: the header and the compare button stay put, only the list scrolls. */
  .panel { grid-area: panel; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
}
.panel { display: flex; flex-direction: column; }
.panel-top { flex: none; }
.panel-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -.25rem; padding-inline: .25rem; }
.panel-foot { flex: none; padding-top: .75rem; margin-top: .25rem; border-top: 1px solid var(--line); }
.panel-foot .cta { margin-top: 0; }
.cmp-main { min-width: 0; }
.cmp-hero { padding-block: var(--s3) var(--s2); }
.cmp-hero h1 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; margin: 0 0 .375rem; }
.cmp-hero .lead { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }

/* Category bar */
.cats { margin-bottom: var(--s2); }
.cats ul { display: flex; gap: .5rem; margin: 0; padding: .25rem 0 .5rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.cats button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .25rem .875rem .25rem .375rem;
  padding-inline: .375rem .875rem; white-space: nowrap; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
}
.cats button:hover { border-color: var(--line-strong); }
.cats button[aria-pressed="true"] { border-color: var(--primary); background: var(--blue-soft); color: var(--primary-strong); }
.cat-icon { width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; font-size: 1.125rem; background: var(--terra-soft); }
.cats button[aria-pressed="true"] .cat-icon { background: var(--surface); }
@media (max-width: 40rem) {
  .cats { margin-inline: calc(-1 * max(16px, 4vw)); }
  .cats ul { padding-inline: max(16px, 4vw); }
  .cats button { min-height: 44px; border-radius: 999px; }
  .cat-icon { width: 1.75rem; height: 1.75rem; border-radius: 999px; font-size: 1rem; }
}

/* Product grid */
.grid-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .75rem; }
.grid-head h2 { font-size: 1.25rem; margin: 0; }
.grid-count { margin: 0; color: var(--muted); font-size: .9375rem; }
.link-btn { font: inherit; font-size: .9375rem; font-weight: 600; color: var(--primary); background: none; border: 0; min-height: 44px; cursor: pointer; text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
/* Desktop (basket panel beside the grid): as many 8rem-wide cards as fit — 5–6 at full width, 4 at 1024px. */
@media (min-width: 62rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); } }
@media (max-width: 40rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: .25rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .5rem;
}
.card.in { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.card .pic { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; margin-bottom: .25rem; }
.promo-badge {
  position: absolute; top: .75rem; inset-inline-start: .75rem; z-index: 1;
  font-size: .75rem; font-weight: 700; color: #FFFFFF; background: var(--terra-text); border-radius: 999px; padding: .0625rem .625rem;
}
.card-name {
  font-weight: 600; font-size: .875rem; line-height: 1.3; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.card-sub { font-size: .8125rem; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .375rem; margin-top: auto; padding-top: .25rem; }
.card-foot .stepper { margin-inline-start: auto; }
.price-range { font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; line-height: 1.3; min-width: 0; white-space: nowrap; }
.price-range.none { font-weight: 500; font-size: .875rem; color: var(--warn); }
@media (max-width: 40rem) {
  /* Three narrow cards: the stepper (44 + qty + 44) still fits the card's inner width. */
  .card { padding: .25rem .25rem .375rem; border-radius: 12px; }
  .card .pic { border-radius: 8px; }
  .promo-badge { top: .5rem; inset-inline-start: .5rem; font-size: .6875rem; padding: 0 .4rem; }
  .card-name { font-size: .8125rem; padding-inline: .125rem; }
  .card-sub { font-size: .75rem; padding-inline: .125rem; }
  .price-range { font-size: .8125rem; padding-inline: .125rem; }
  .card-foot .add { margin-inline-start: auto; }
  .card-foot .stepper { width: 100%; justify-content: space-between; }
  .card-foot .stepper output { min-width: .875rem; font-size: .9375rem; }
}
.add {
  flex: none; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--primary); color: #FFFFFF; font: inherit; font-size: 1.5rem; font-weight: 500; line-height: 1;
  display: grid; place-items: center;
}
@media (prefers-color-scheme: dark) { .page-compare .add { color: #1F1B17; } }
.add:hover { background: var(--primary-strong); }
.stepper { flex: none; display: inline-flex; align-items: center; background: var(--primary); color: #FFFFFF; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .page-compare .stepper { color: #1F1B17; } }
.stepper button {
  width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 999px;
  font: inherit; font-size: 1.375rem; font-weight: 600; line-height: 1;
}
.stepper button:hover { background: rgb(255 255 255 / .14); }
.stepper output { min-width: 1.25rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.more { display: block; margin: var(--s3) auto 0; }
.more[hidden] { display: none; }

/* Picture box (the app's ProductVisual): fixed square, so nothing jumps */
.pic {
  width: 3.5rem; height: 3.5rem; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: #FFFFFF; border: 1px solid var(--line);
}
.pic img { width: 100%; height: 100%; object-fit: contain; }
.pic.logo-tile img { width: 78%; height: 78%; }
.pic.dark { background: var(--dark-tile); border-color: var(--dark-tile); }
.pic.na {
  background: var(--tile); border-color: var(--tile); color: var(--muted); text-align: center;
  font-size: .8125rem; line-height: 1.25; font-weight: 400; letter-spacing: -.01em; padding: .25rem;
}
.card .pic.na { font-size: 1rem; }
.suggest .pic { width: 3rem; height: 3rem; }
.lines .pic { width: 3rem; height: 3rem; }
.lines .pic.na { font-size: .6875rem; }

/* Basket panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--s3); min-width: 0; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.panel h2 { font-size: 1.375rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel h2:focus { outline: none; }
.count {
  display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .5rem; border-radius: 999px;
  background: var(--primary); color: #FFFFFF; font-size: .9375rem; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .page-compare .count { color: #1F1B17; } }
.close-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--blue-soft); color: var(--ink); border-radius: 999px; font-size: 1.5rem; cursor: pointer; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .625rem; align-items: center; padding-block: .5rem; border-bottom: 1px solid var(--line); line-height: 1.3; }
.line-name { font-weight: 600; font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-sub { font-size: .8125rem; color: var(--muted); display: block; }
.empty { color: var(--muted); margin: .5rem 0; font-size: .9375rem; }
.hint { font-size: .875rem; color: var(--muted); margin: .375rem 0 0; line-height: 1.5; }
.paste { margin-block: .75rem; }
.paste summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9375rem; }
.paste textarea {
  width: 100%; min-height: 7rem; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink); resize: vertical;
  background: var(--ground); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .5rem .75rem;
}
.paste-out { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; }
.paste-out li { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; line-height: 1.45; }
.paste-out .ok { color: var(--muted); }
.paste-out .pick { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .375rem; }
.btn-secondary, .chip {
  font: inherit; font-size: .9375rem; font-weight: 600; min-height: 44px; padding: .375rem 1rem; cursor: pointer;
  color: var(--primary); background: var(--surface); border: 1.5px solid var(--primary); border-radius: 999px;
}
.btn-secondary { margin-top: .5rem; }
.chip { font-weight: 500; text-align: start; border-radius: 10px; }
.btn-secondary:hover, .chip:hover { background: var(--blue-soft); }
.cta {
  display: block; width: 100%; min-height: 56px; margin-top: .5rem; cursor: pointer;
  font: inherit; font-size: 1.1875rem; font-weight: 700; /* large bold text: AA on terracotta */
  color: #FFFFFF; background: var(--terra); border: 0; border-radius: 14px;
}
.cta:hover { background: #B35A34; }
.cta:disabled { cursor: not-allowed; background: var(--line-strong); color: var(--ink); }

/* Results view: replaces the catalog at the top of the main column */
.results-view { padding-block: var(--s3) var(--s4); max-width: 46rem; }
.results-view[hidden], #catalog-view[hidden] { display: none; }
.results-head { display: grid; gap: .25rem; margin-bottom: var(--s2); }
.results-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); margin: .25rem 0 0; }
.results-head h1:focus { outline: none; }
.results-sub { margin: 0; color: var(--muted); }
.back-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; padding: 0 1rem; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--primary); background: var(--surface);
  border: 1.5px solid var(--primary); border-radius: 999px;
}
.back-btn:hover { background: var(--blue-soft); }
.results-view .best-total { font-size: 2rem; }
.results-view .chain-logo { width: 3.25rem; height: 3.25rem; }
.results-view .others .chain-logo { width: 2.5rem; height: 2.5rem; }
.results-view .others li { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
.best { border: 2px solid var(--terra); border-radius: 16px; padding: .875rem 1rem; background: linear-gradient(0deg, var(--surface), var(--terra-soft)); }
.badge { display: inline-block; font-size: .875rem; font-weight: 700; padding: .0625rem .75rem; border-radius: 999px; background: var(--terra-soft); color: var(--terra-text); border: 1px solid var(--terra); }
.best-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; margin-top: .625rem; }
.best-name { font-size: 1.1875rem; font-weight: 700; display: block; line-height: 1.2; }
.best-sub { color: var(--muted); font-size: .8125rem; display: block; line-height: 1.4; }
.best-total { font-size: 1.625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chain-logo { width: 2.75rem; height: 2.75rem; border-radius: 10px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); }
.chain-logo.letter { display: grid; place-items: center; color: #FFFFFF; font-weight: 700; border: 0; }
.others { list-style: none; margin: .75rem 0 0; padding: 0; }
.others li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .625rem; align-items: center; padding-block: .5rem; border-bottom: 1px solid var(--line); line-height: 1.3; }
.others .chain-logo { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
.others .o-name { font-weight: 600; font-size: .9375rem; display: block; }
.others .o-sub { font-size: .8125rem; color: var(--muted); display: block; }
.others .o-total { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; font-size: .9375rem; }
.others .stale .o-name, .others .stale .o-total { color: var(--muted); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 0 .4rem; border-radius: 6px; line-height: 1.6; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.excluded { font-size: .8125rem; color: var(--muted); margin: .5rem 0 0; }
.placeholder { color: var(--muted); font-size: .9375rem; margin: 0; }
.breakdown { margin-top: .75rem; }
.breakdown details { border-bottom: 1px solid var(--line); }
.breakdown summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; gap: .5rem; font-size: .9375rem; }
.breakdown ul { list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .8125rem; }
.breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .125rem .75rem; padding-block: .375rem; border-top: 1px dashed var(--line); line-height: 1.4; }
.breakdown .price { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.breakdown .promo { grid-column: 1 / -1; color: var(--terra-text); }
.breakdown .miss { color: var(--warn); font-weight: 600; }
.breakdown .src { font-size: .75rem; color: var(--muted); margin: 0 0 .375rem; }
.asof { margin: .75rem 0 0; font-size: .8125rem; color: var(--muted); }
.note { margin: .5rem 0 0; font-size: .8125rem; color: var(--ink); background: var(--blue-soft); border-radius: 10px; padding: .625rem .75rem; line-height: 1.5; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: .75rem 1rem; }

/* Photo credits (the app's PhotoCredit) */
.credits { margin-top: var(--s3); font-size: .8125rem; color: var(--muted); }
.credits p { margin: 0; }
.credits .links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.credits a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Phone: the panel is a full-screen sheet opened from the fixed bottom bar */
.bar { display: none; }
@media (max-width: 61.99rem) {
  .panel { display: none; }
  .panel.open {
    display: flex; position: fixed; inset: 0; z-index: 50; border-radius: 0; border: 0;
    padding: 1rem max(16px, 4vw) calc(1rem + env(safe-area-inset-bottom));
  }
  .close-btn { display: grid; place-items: center; }
  .bar {
    display: flex; align-items: center; gap: .75rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    background: var(--bar); color: #FFFFFF; padding: .625rem max(16px, 4vw) calc(.625rem + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgb(0 0 0 / .18);
  }
  .bar-basket {
    flex: 1; min-width: 0; min-height: 48px; display: grid; align-content: center; text-align: start; cursor: pointer;
    padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 1.35; font-size: .9375rem;
  }
  .bar-basket strong { display: block; text-decoration: underline; text-underline-offset: .2em; }
  .bar-basket span { display: block; font-size: .8125rem; color: #E9E1D6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar-basket:focus-visible, .bar-btn:focus-visible { outline-color: #FFFFFF; }
  .bar-btn {
    flex: none; min-height: 48px; padding: 0 1.375rem; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--terra); color: #FFFFFF; font: inherit; font-size: 1.1875rem; font-weight: 700;
  }
  /* The bar is always there: nothing on the page may end up behind it. */
  body.page-compare { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  body.sheet-open { overflow: hidden; }
}

/* App band */
.app-band { background: var(--primary); color: #FFFFFF; padding-block: var(--s4); }
.app-band h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); margin: 0 0 .5rem; }
.app-band p { margin: 0 0 .5rem; max-width: 60ch; }
.app-band .soon { display: inline-block; margin-top: .5rem; font-weight: 700; padding: .375rem 1rem; border-radius: 999px; border: 1.5px solid currentColor; }
@media (prefers-color-scheme: dark) { .page-compare .app-band { background: #34505F; } }
@media (prefers-color-scheme: dark) { .page-compare .promo-badge { color: #1F1B17; } }

/* Account: header button and the sign-in / registration / acceptance sheet (<dialog>, account.js) */
.hdr-account {
  flex: none; min-height: 48px; padding: 0 1.125rem; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--surface); background: var(--primary);
  border: 0; border-radius: 999px;
}
.hdr-account[hidden] { display: none; }
@media (max-width: 40rem) { .hdr-account { order: 1; min-height: 44px; font-size: .9375rem; padding: 0 .875rem; } }
.sheet {
  width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / .28); overflow-y: auto;
}
.sheet::backdrop { background: rgb(31 27 23 / .55); }
@media (max-width: 40rem) {
  .sheet { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
}
.sheet-view { padding: 1.25rem 1.5rem 1.75rem; display: grid; gap: .75rem; }
@media (max-width: 40rem) { .sheet-view { padding: 1rem max(16px, 4vw) 2rem; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sheet-head h2 { font-size: 1.5rem; margin: .25rem 0 0; }
.sheet-head h2:focus { outline: none; }
.sheet-sub { margin: .125rem 0 0; color: var(--muted); font-size: .9375rem; }
.sheet-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--blue-soft); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.sheet-lead { font-size: 1.1875rem; font-weight: 700; margin: .25rem 0; }
.sheet-text { margin: 0; line-height: 1.6; }
.sheet-small { margin: 0; font-size: .875rem; color: var(--muted); }
.sheet-ok { margin: 0; padding: .75rem 1rem; border-radius: 12px; background: var(--blue-soft); }
.sheet-error { margin: 0; color: #B3261E; font-weight: 600; }
@media (prefers-color-scheme: dark) { .page-compare .sheet-error { color: #F2B8B5; } }
.sheet-view h3 { font-size: 1.0625rem; margin: .5rem 0 0; }
.sheet-view ul { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: .375rem; line-height: 1.5; }
.providers { display: grid; gap: .75rem; margin-top: .5rem; }
.provider {
  min-height: 52px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 1.0625rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
}
.provider.apple { background: #000000; color: #FFFFFF; border: 1px solid #000000; }
.provider.google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; }
.provider:disabled { opacity: .5; cursor: not-allowed; }
.sheet-primary, .sheet-secondary, .sheet-danger {
  min-height: 52px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 1.0625rem; font-weight: 700; padding: 0 1.25rem;
}
.sheet-primary { background: var(--terra); color: #FFFFFF; border: 0; font-size: 1.1875rem; }
.sheet-primary:disabled { background: var(--line-strong); color: var(--ink); cursor: not-allowed; }
.sheet-secondary { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); }
.sheet-danger { background: #B3261E; color: #FFFFFF; border: 0; }
.sheet-link {
  justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--primary); text-decoration: underline;
}
.sheet-link.danger { color: #B3261E; }
@media (prefers-color-scheme: dark) { .page-compare .sheet-link.danger { color: #F2B8B5; } }
.sheet-view .row { display: flex; flex-wrap: wrap; gap: .75rem; }
.sheet-view .row > * { flex: 1 1 10rem; }
.exits { display: grid; gap: .25rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.confirm { display: grid; gap: .5rem; padding: .75rem; border-radius: 12px; background: var(--blue-soft); }
.progress { margin: 0; font-size: .9375rem; }
.progress-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; }
.progress-bar span { height: 6px; border-radius: 999px; background: var(--line); }
.progress-bar span.on { background: var(--primary); }
.form { display: grid; gap: .875rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 22rem) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .25rem; position: relative; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--ground); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .5rem .875rem;
}
.field textarea { min-height: 4.5rem; resize: vertical; line-height: 1.5; }
.field input:disabled { opacity: .7; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field-error { margin: 0; color: #B3261E; font-size: .875rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .page-compare .field-error { color: #F2B8B5; } .page-compare .field.has-error input { border-color: #F2B8B5; } }
.field-hint { margin: 0; color: var(--muted); font-size: .875rem; }
.place-list {
  position: absolute; inset-inline: 0; top: 4.75rem; z-index: 5; margin: 0; padding: .25rem; list-style: none;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 24px rgb(0 0 0 / .14);
  max-height: 15rem; overflow-y: auto;
}
.place-list[hidden] { display: none; }
.place-list li { min-height: 44px; display: flex; align-items: center; padding: .25rem .75rem; border-radius: 8px; cursor: pointer; }
.place-list li[aria-selected="true"], .place-list li:hover { background: var(--blue-soft); }
.place-list .msg { color: var(--muted); cursor: default; }
.tick { display: flex; align-items: flex-start; gap: .625rem; }
.tick input { width: 24px; height: 24px; margin: .625rem 0 0; flex: none; accent-color: var(--primary); }
.tick label { min-height: 44px; display: grid; align-content: center; cursor: pointer; line-height: 1.45; }
.tick label span { color: var(--muted); font-size: .875rem; }
.consent { display: grid; gap: .25rem; padding: .75rem; border: 1.5px solid var(--line-strong); border-radius: 12px; }
.consent a { font-weight: 700; }
.row2 { align-items: start; }

/* "להמשך ל<רשת>" / "העתקת הסל" on each chain (continue.js), the final-price note, the toast */
.o-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.o-actions button {
  font: inherit; font-size: .9375rem; font-weight: 600; min-height: 44px; padding: .375rem 1rem; cursor: pointer; border-radius: 999px;
  color: var(--primary); background: var(--surface); border: 1.5px solid var(--primary);
}
.o-actions .o-go { color: #FFFFFF; background: var(--primary); }
.o-actions .o-go:hover { background: var(--primary-strong); }
.o-actions .o-copy:hover { background: var(--blue-soft); }
.o-actions a.o-nav { display: inline-flex; align-items: center; font-size: .9375rem; font-weight: 600; min-height: 44px; padding: .375rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--primary); text-decoration: none; }
.o-actions a.o-nav:hover { background: var(--primary-strong); }
.o-nostore { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 700; color: var(--ink); }
/* "בחלק מהרשתות חסרים מוצרים · פרטים" (app db3903c) */
details.missing { margin-top: .75rem; padding: 0 .75rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn); }
details.missing summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
details.missing .more-link { color: var(--primary); font-weight: 700; text-decoration: underline; margin-inline-start: .25rem; }
details.missing ul { list-style: none; margin: 0; padding: 0 0 .75rem; font-size: .875rem; color: var(--ink); display: grid; gap: .375rem; }
details.missing li.warn { color: var(--warn); font-weight: 600; }
details.breakdown.more > .breakdown { opacity: .75; }
.final-note { font-size: .875rem; color: var(--muted); margin: .75rem 0 0; }
.c-toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(36rem, calc(100vw - 32px));
  padding: 12px 18px; border-radius: 12px; background: #2B2622; color: #FFFFFF; font: 600 15px/21px "Heebo", system-ui, sans-serif; text-align: center;
  box-shadow: 0 4px 16px rgb(31 45 56 / .25); }
