:root {
  /* Without this, native form controls (buttons, checkboxes, scrollbars) default to
     a light appearance regardless of the page's own dark theme — confirmed: the
     "Créer" button on the Listes tab rendered pure white-on-black-page in dark
     mode, since color-scheme was never declared and nothing styled <button>
     directly. Declaring both here lets the browser's own dark rendering kick in as
     a baseline, on top of which the explicit rules below give our own look. */
  color-scheme: light dark;
  --paper: #F1F3F0;
  --paper-raised: #FFFFFF;
  --ink: #20262B;
  --ink-soft: #4A5259;
  --rule: #D6DCD8;
  --accent: #2B5F86;
  --accent-soft: #DCE6EA;
  --good: #3F6B4C;
  --warn: #A6512E;
  --spice: #A87526;
  --mono-bg: #E7EAE6;
}
/* Dark palette. Applied in two cases, kept in sync as one declaration list:
   - system dark preference, UNLESS the user has explicitly forced light
     (data-theme="light"); and
   - an explicit data-theme="dark", regardless of the system setting.
   The theme toggle (see app.js) sets data-theme on <html>; with no attribute the
   page simply follows the OS, exactly as before this toggle existed. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171B1E; --paper-raised: #1E2327; --ink: #E7E9E6; --ink-soft: #A7AEA9; --rule: #333B3F;
    --accent: #7FB0D6; --accent-soft: #223038; --good: #7FAE8C; --warn: #D08A66; --spice: #D2A85D;
    --mono-bg: #262C30;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171B1E; --paper-raised: #1E2327; --ink: #E7E9E6; --ink-soft: #A7AEA9; --rule: #333B3F;
  --accent: #7FB0D6; --accent-soft: #223038; --good: #7FAE8C; --warn: #D08A66; --spice: #D2A85D;
  --mono-bg: #262C30;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; align-items: center; gap: 8px; }
.wordmark-logo { width: 26px; height: 26px; display: block; flex: none; }
.wordmark .ar { direction: rtl; font-size: 1.3rem; }
.wordmark .lat { font-weight: 700; font-size: 1.3rem; }
.topbar-controls { display: flex; align-items: center; gap: 14px; }
.store-picker { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }

.view-toggle { display: flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.view-toggle-btn {
  font: inherit; font-size: 0.95rem; line-height: 1; padding: 6px 10px; border: none;
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.view-toggle-btn + .view-toggle-btn { border-left: 1px solid var(--rule); }
.view-toggle-btn.active { background: var(--accent-soft); color: var(--accent); }
.view-toggle-btn:hover:not(.active) { color: var(--ink); }

.theme-toggle {
  font: inherit; font-size: 1rem; line-height: 1; padding: 6px 9px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper); color: var(--ink-soft);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
select, input[type="text"], input[type="url"], input[type="email"], input[type="search"], input[type="number"] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper); color: var(--ink);
}
/* Base for every plain <button> in the app — anything more specific (.tab,
   .chip, .view-toggle-btn, etc.) overrides this via its own class selector, but
   nothing is ever left to fall back to the browser's native (light-only) default. */
button {
  font: inherit; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--paper-raised); color: var(--ink); cursor: pointer;
}
button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: 0.6; cursor: default; }
.tabs { display: flex; gap: 4px; padding: 10px 20px 0; max-width: 640px; margin: 0 auto; }
.tab {
  font: inherit; font-size: 0.85rem; padding: 8px 14px; border: none; border-radius: 6px 6px 0 0;
  background: none; color: var(--ink-soft); cursor: pointer;
}
.tab[hidden] { display: none; }
.tab.active { background: var(--paper-raised, var(--paper)); color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
main { max-width: 640px; margin: 0 auto; padding: 20px; }
#search-input { width: 100%; font-size: 1rem; margin-bottom: 16px; }
.results { list-style: none; margin: 0; padding: 0; }
.result-item {
  display: flex; gap: 12px; padding: 12px; border-radius: 10px; margin-bottom: 8px;
  cursor: pointer; background: var(--paper-raised); border: 1px solid var(--rule);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent);
}
.result-item .thumb-wrap {
  width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--rule); background: var(--mono-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--ink-soft);
}
.result-item .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
/* A shopping-list card's thumbnail is a 2x2 collage of its first few products,
   rather than one single product image. */
.result-item .thumb-wrap.list-preview {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px;
}
.result-item .thumb-wrap.list-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.result-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.result-item .brand {
  font-size: 0.72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 5px;
}
/* Real favicon-as-brand-icon when one resolves (see brandIconEl in app.js) — never
   a placeholder; the element simply isn't there if no real icon was found. */
.brand-icon { width: 14px; height: 14px; flex-shrink: 0; object-fit: contain; border-radius: 2px; }
.chip .brand-icon { width: 14px; height: 14px; margin-right: 4px; border-radius: 2px; }
/* Deliberately no line-clamp / no-wrap here — some real product names run past 100
   characters (bundled multi-item listings); truncating risked hiding the exact detail
   (size, variant) that tells two similar products apart. Names wrap to as many lines
   as they need instead. */
.result-item .name-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.result-item .name { font-size: 0.95rem; font-weight: 500; text-wrap: balance; }
.result-item .meta { display: flex; gap: 8px; align-items: baseline; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; }
.list-preview-names {
  display: block; font-size: 0.8rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-item .meta .ar { direction: rtl; }
.result-item .meta .dot::before { content: "·"; margin-right: 8px; }
.result-item .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; flex-shrink: 0; }
.result-item .price-value { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fresh-tag { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; white-space: nowrap; color: var(--ink-soft); }
.fresh-tag .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.fresh-tag.fresh { color: var(--good); }
.fresh-tag.aging { color: var(--spice); }
.fresh-tag.stale { color: var(--warn); }
.fresh-tag.unknown { color: var(--ink-soft); }

.off-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; white-space: nowrap; color: var(--ink-soft); margin-top: 2px; }
.off-badge .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.off-badge.matched { color: var(--good); }
.off-badge.error { color: var(--warn); }

/* Card view — same result-item markup, just laid out as a grid of taller cards with
   a much bigger image instead of a compact row. Toggled via .view-toggle in the
   topbar; only ever applied to actual product-result lists (.product-grid), never
   to the plain lists-index/expense-history lists that reuse the .results class. */
.product-grid.view-card {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.product-grid.view-card .result-item {
  flex-direction: column; align-items: stretch; margin-bottom: 0;
}
.product-grid.view-card .thumb-wrap { width: 100%; height: 160px; font-size: 12px; }
.product-grid.view-card .body { flex: none; }
.product-grid.view-card .side {
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  width: 100%; margin-top: 8px;
}

/* Card view is the one place worth breaking out of the app's narrow, mobile-first
   640px column on a laptop-width browser — its grid-auto-fill already scales to
   more columns given more room, it's just been capped by `main`'s own width. Text-
   heavy single-column views (search input, list rows, forms) deliberately stay
   narrow — this only widens `main` while a card grid is actually the visible view. */
@media (min-width: 900px) {
  main:has(.view-card) { max-width: 1100px; }
  .product-grid.view-card { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
}

.add-to-list-btn {
  /* Flex-centred so the icon is dead-centre regardless of font metrics — the old
     text "+" glyph rendered high because its ink sits above the em midline. */
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0; padding: 0;
  border-radius: 50%; border: 1px solid var(--rule);
  background: var(--paper-raised); color: var(--accent); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.add-to-list-btn svg { display: block; width: 15px; height: 15px; }
.add-to-list-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.add-to-list-btn:active { transform: scale(0.88); }
.add-to-list-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.list-picker {
  position: absolute; z-index: 30; min-width: 190px; max-width: 260px;
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 18%, transparent);
  display: flex; flex-direction: column; overflow: hidden;
}
.list-picker p { margin: 0; padding: 10px 12px; font-size: 0.85rem; color: var(--ink-soft); }
.list-picker-row {
  font: inherit; text-align: left; padding: 9px 12px; border: none; border-bottom: 1px solid var(--rule);
  background: none; color: var(--ink); cursor: pointer; font-size: 0.88rem;
}
.list-picker-row:last-child { border-bottom: none; }
.list-picker-row:hover { background: var(--accent-soft); color: var(--accent); }
.list-picker-new { color: var(--accent); font-weight: 600; }

.cross-filter { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.cross-filter select { font-size: 0.85rem; padding: 6px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font: inherit; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer;
}
.chip .count { color: var(--ink-soft); font-size: 0.8em; margin-left: 4px; }
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.chip-parent { font-weight: 600; }
.chip.chip-back { border-style: dashed; color: var(--ink-soft); font-weight: 600; }
.load-more-btn {
  display: block; width: 100%; margin-top: 4px; font-size: 0.88rem; padding: 10px;
  border-radius: 8px; color: var(--accent);
}

/* --- Categories as a left-side browsing pane (toggled by JS: #browse-view.paned,
   only on the Catégories tab). The category list becomes a vertical column on the
   left, products render on the right. Collapses back to stacked on narrow screens. */
/* The category pane is a two-column layout, so it uses the full viewport width
   (sidebar + wide, tiled product area) at every size instead of the narrow 640px
   reading column — not just on large screens. It collapses to stacked under 680px. */
main:has(#browse-view.paned:not([hidden])) { max-width: min(1440px, 95vw); }
#browse-view.paned {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  grid-template-areas: "filter filter" "chips main";
  gap: 24px;
  align-items: start;
}
#browse-view.paned #cross-filter-wrap { grid-area: filter; }
#browse-view.paned #browse-chips { grid-area: chips; }
#browse-view.paned #browse-main { grid-area: main; min-width: 0; }
#browse-view.paned .chips {
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px;
  margin-bottom: 0; position: sticky; top: 12px;
  max-height: calc(100vh - 24px); overflow-y: auto;
}
#browse-view.paned .chip {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%; text-align: left; border-radius: 8px;
}
.browse-hint { color: var(--ink-soft); padding: 24px 4px; font-size: 0.9rem; }

/* In the pane, always tile products into a responsive grid so the wide right area
   is filled (independent of the list/card toggle) — the point of the pane is browsing. */
#browse-view.paned #browse-results {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
#browse-view.paned #browse-results .result-item { flex-direction: column; align-items: stretch; margin-bottom: 0; }
#browse-view.paned #browse-results .thumb-wrap { width: 100%; height: 150px; font-size: 12px; }
#browse-view.paned #browse-results .body { flex: none; }
#browse-view.paned #browse-results .side {
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  width: 100%; margin-top: 8px;
}
#browse-view.paned #browse-results .browse-hint { grid-column: 1 / -1; }

@media (max-width: 680px) {
  /* Stack back to the default top-chips layout on small screens. */
  #browse-view.paned { display: block; }
  #browse-view.paned .chips {
    flex-direction: row; flex-wrap: wrap; margin-bottom: 16px;
    position: static; max-height: none; overflow: visible;
  }
  #browse-view.paned .chip { width: auto; border-radius: 999px; }
}
.pill { padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.pill.fresh { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.pill.aging { background: color-mix(in srgb, var(--spice) 18%, transparent); color: var(--spice); }
.pill.stale { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.unknown { background: var(--rule); color: var(--ink-soft); }
#back-button {
  background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0 0 14px;
}
#product-detail .product-image {
  width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--rule); background: var(--mono-bg); margin-bottom: 14px; display: block;
}
#product-detail .detail-header { margin-bottom: 14px; }
#product-detail .detail-header .brand {
  font-size: 0.78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
#product-detail .detail-header .brand .brand-icon { width: 18px; height: 18px; }
/* Same "never truncate" rule as the results list — a name here has even more room,
   so there's no reason to clip it. */
#product-detail h2 { margin: 0 0 6px; text-wrap: balance; }
#product-detail .meta { display: flex; gap: 8px; align-items: baseline; font-size: 0.85rem; color: var(--ink-soft); flex-wrap: wrap; }
#product-detail .meta .ar { direction: rtl; }
#product-detail .meta .dot::before { content: "·"; margin-right: 8px; }
#product-detail .detail-price { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
#product-detail .detail-price .price-value { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-add-to-list-btn {
  display: block; width: 100%; margin-bottom: 20px; font-size: 0.92rem; padding: 10px;
  border-radius: 8px; color: var(--accent); font-weight: 600;
}
#product-detail table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9rem; }
#product-detail td, #product-detail th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
#product-detail td:last-child, #product-detail th:last-child { font-variant-numeric: tabular-nums; text-align: right; }

.nutrition-block { margin-top: 4px; margin-bottom: 16px; }
.nutriscore-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: #fff;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 10px;
}
/* Standard Nutri-Score palette — a recognized visual language, not this app's
   own accent scheme, so these colors stay fixed regardless of theme. */
.nutriscore-badge.grade-a { background: #038141; }
.nutriscore-badge.grade-b { background: #85bb2f; }
.nutriscore-badge.grade-c { background: #fecb02; color: #2b2b2b; }
.nutriscore-badge.grade-d { background: #ee8100; }
.nutriscore-badge.grade-e { background: #e63e11; }
.nutriscore-badge.small { font-size: 0.62rem; padding: 1px 6px; margin-bottom: 0; flex-shrink: 0; }
.nutrition-table tr:first-child th { padding-top: 0; color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .02em; }
.nutrition-table tr:last-child td { border-bottom: none; }

/* Lists / account / expenses */
.inline-form { display: flex; gap: 8px; margin-bottom: 14px; position: relative; }
.inline-form input { flex: 1; }
.link-button {
  background: none; border: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0 0 14px; display: block;
}
.danger-link { background: none; border: none; color: var(--warn); font: inherit; cursor: pointer; padding: 6px 0; }
.detail-correct-btn { font-size: 0.78rem; padding: 0 0 12px; }
.list-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.list-actions button:not(.danger-link) {
  font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--paper-raised); color: var(--ink); cursor: pointer;
}
.list-actions button:not(.danger-link):hover { border-color: var(--accent); color: var(--accent); }
.list-total { font-weight: 700; font-size: 1.05rem; text-align: right; margin: 10px 0; font-variant-numeric: tabular-nums; }
#markdown-output {
  white-space: pre-wrap; background: var(--mono-bg); border: 1px solid var(--rule); border-radius: 8px;
  padding: 12px; font-size: 0.85rem; margin-top: 14px;
}
#launch-assistant {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 8px;
  padding: 14px; margin-top: 14px;
}
#launch-platform-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.launch-platform-btn {
  font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); cursor: pointer;
}
.launch-platform-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.launch-platform-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#launch-open-all-btn {
  font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 6px; border: none;
  background: var(--accent); color: #fff; cursor: pointer; margin-bottom: 4px;
}
#launch-open-all-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#launch-current-item { margin: 10px 0; }
.launch-matched-list, #launch-unmatched ul {
  list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px;
}
.launch-matched-list li, #launch-unmatched li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.88rem;
}
.launch-item-name { flex: 1; min-width: 160px; }
.nutrition-inline { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nutrition-inline .nutriscore-badge.small { margin-top: 0; }
.nutrition-summary-inline { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }
.launch-open-link {
  font-weight: 600; color: #fff; background: var(--accent); padding: 6px 14px;
  border-radius: 6px; text-decoration: none; font-size: 0.85rem;
}
.suggestions {
  list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
}
.suggestions:empty { display: none; }
.suggestions li { padding: 8px 12px; cursor: pointer; font-size: 0.9rem; }
.suggestions li:hover { background: var(--accent-soft); }
.check-wrap { display: flex; align-items: center; padding-right: 4px; }
.check-wrap input { width: 18px; height: 18px; }
.results.checkable .result-item { align-items: center; }
.remove-item-btn { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; padding: 4px 6px; }
.remove-item-btn:hover { color: var(--warn); }

.household-box { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.household-box p { margin: 0 0 8px; font-size: 0.9rem; }
#household-code { font-size: 1.1rem; letter-spacing: 0.08em; }
#copy-code-btn {
  font: inherit; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); cursor: pointer; margin-left: 6px;
}

.store-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.store-cards .store-card {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 10px; padding: 14px;
}
.store-cards .store-card h3 { margin: 0 0 6px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.expense-total { margin: 0; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.expense-count { margin: 2px 0 0; font-size: 0.78rem; color: var(--ink-soft); }
.expense-item .meta { font-size: 0.78rem; color: var(--ink-soft); }

/* --- Pro badge + Prix (premium price-watch) --- */
.pro-badge {
  display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 4px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: middle;
  background: var(--spice); color: var(--paper);
}
.prix-gate { max-width: 520px; margin: 8px auto; padding: 20px; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 10px; }
.prix-gate h2 { margin: 0 0 10px; }
.prix-upsell-points { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.prix-upsell-points li { margin: 4px 0; }

.prix-block { margin-bottom: 26px; }
.prix-block > h2 { font-size: 1rem; margin: 0 0 10px; }

.prix-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.prix-row:hover { background: var(--accent-soft); }
.prix-thumb { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; background: var(--mono-bg); border-radius: 6px; }
.prix-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prix-name { font-size: 0.9rem; line-height: 1.25; }
.prix-brand { font-size: 0.75rem; color: var(--ink-soft); }
.prix-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.prix-tag { font-size: 0.66rem; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.prix-tag.low { background: var(--good); color: var(--paper); }
.prix-tag.promo { background: var(--accent-soft); color: var(--accent); }

.prix-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.prix-prices { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.prix-old { font-size: 0.75rem; color: var(--ink-soft); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.prix-new { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prix-pct { font-size: 0.8rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.prix-pct.drop { color: var(--good); }
.prix-pct.rise { color: var(--warn); }
.prix-pct.flat { color: var(--ink-soft); }
.prix-empty { padding: 16px 4px; color: var(--ink-soft); font-size: 0.88rem; }

/* Per-item shop tag on a shopping list, when an item is priced at a shop other
   than the one selected in the store picker (mixed-shop lists). */
.item-store {
  display: inline-block; align-self: flex-start; margin-top: 3px;
  font-size: 0.68rem; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
