/* "Jezioro": the colours of the logo's water. The header is the lake itself, fading into a pale aqua page;
   deep teal for what you tap. One light look everywhere (the user picked it from five proposals, 2026-11-10). */
:root {
  color-scheme: light;
  --bg: #eaf4f7; --card: #fff; --text: #12303a; --muted: #55717c; --line: #cfe3ea; --pic: #fff;
  --accent: #0f6f8f; --sale: #d6453d; --sale-bg: #fde9e6; --badge: #d6453d; --save: #2f7d4a; --save-bg: #def2e4;
  --chip: #dceef3; --chip-on: #0f4c5c; --chip-on-text: #fff;
  --lake-top: #4f93ab; --lake-mid: #86bfd0;
  --shadow: 0 6px 24px rgb(15 76 92 / .18); --scrim: rgb(8 32 40 / .5);
  --fishing-line: rgb(18 48 58 / .4); --rod: #2c4a55; --rod-handle: #8a5a2b;
  --lidl: #0050aa; --spar: #e30613; --biedronka: #e30613;
  --aldi: #1d3c78; --kaufland: #e10915; --dino: #00843d; --netto: #ffd500;
  --stokrotka: #2e9c3d; --intermarche: #e2001a; --delikatesy: #6c9a1f; --polomarket: #b0122c; --auchan: #d6180b;
  --lewiatan: #0b5aa2; --leclerc: #f08a00; --topaz: #7a1f3d; --zabka: #00963f; --carrefour: #004e9f;
  --rossmann: #c8102e; --natura: #b5006e;
}
* { box-sizing: border-box; }
body { position: relative; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.topbar { position: relative; border-bottom: 1px solid var(--line); }
header { padding: 16px 16px 8px; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.logo { flex: none; display: block; border-radius: 16px; overflow: hidden; line-height: 0; }
.logo img { width: 96px; height: 96px; display: block; }
.logo:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.02em; }

/* ================================================================ the app (index.html)
   Phones first: brand and search scroll away, the shop and category rows stick, a tab bar sits at the thumb.
   Wider screens get more columns and a floating tab bar. */
html.locked { overflow: hidden; }
.view[hidden] { display: none; }
/* full width, so the float rests on the fishing line at the page's left edge; the contents are centred */
.masthead { position: relative; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: linear-gradient(180deg, var(--lake-top) 0%, var(--lake-mid) 58%, var(--bg) 100%); }
.brand { display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; }
/* The logo, with its handwritten "Łowisko", is the brand: big, framed in white on the lake. The h1 is for search engines and screen readers. */
/* "Na środku" (picked 2026-11-10): one big logo in the middle of the lake, the week under it. */
.brand { flex-direction: column; gap: 12px; }
.brand .logo { border-radius: 34px; box-shadow: 0 0 0 3px #fff, 0 8px 22px rgb(10 50 64 / .3); }
.brand .logo img { width: 156px; height: 156px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.week-btn { flex: none; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 10px;
  border: 0; background: rgb(255 255 255 / .9); color: var(--chip-on); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums; }
.week-btn svg { width: 14px; height: 14px; }
form.search { position: relative; display: flex; align-items: center; max-width: 1200px; margin: 10px auto 0; }
form.search > svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
/* 16px keeps iPhones from zooming into the field */
form.search input { flex: 1; min-width: 0; height: 46px; padding: 0 44px 0 40px; border-radius: 12px; border: 1px solid transparent;
  box-shadow: 0 4px 14px rgb(15 76 92 / .15);
  background: var(--card); color: var(--text); font: inherit; font-size: 16px; appearance: none; }
form.search input::-webkit-search-cancel-button { display: none; }
form.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.clear-q { position: absolute; right: 4px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(8px + env(safe-area-inset-top, 0px)) 0 2px;
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.sticky.stuck { border-bottom-color: var(--line); box-shadow: 0 4px 12px rgb(20 50 74 / .07); }
/* Once the big logo has scrolled away, a small one rides along at the start of the shop row: the brand stays in view. */
.mini-logo { display: none; position: absolute; z-index: 1; left: 16px; top: calc(8px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px;
  border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgb(10 50 64 / .3); }
.mini-logo img { display: block; width: 40px; height: 40px; }
.sticky.stuck .mini-logo { display: block; }
.sticky.stuck .row { padding-left: 68px; }
@media (min-width: 1300px) { .sticky.stuck .row { padding-left: 16px; } }
.row { display: flex; gap: 6px; max-width: 1200px; margin: 0 auto; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.pill { flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer; }
.pill .dot { width: 9px; height: 9px; }
.pill small { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill.on { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-text); }
.pill.on small { color: inherit; opacity: .7; }
.pill.ghost { background: none; border-style: dashed; color: var(--accent); }
.chip { flex: none; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--chip); color: var(--text); font: inherit; font-size: 13.5px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip small { opacity: .65; }
.chip.on { background: var(--chip-on); color: var(--chip-on-text); }
.chip.sort { gap: 5px; border: 1px solid var(--line); background: none; color: var(--accent); font-weight: 600; }
.chip.sort svg { width: 14px; height: 14px; }
main { max-width: 1200px; margin: 0 auto; padding: 4px 16px 24px; transition: opacity .15s; }
main.loading { opacity: .55; }
.summary { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }
.elsewhere { display: block; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 1px dashed var(--line);
  color: var(--muted); font-size: 14px; text-decoration: none; }
.elsewhere span { color: var(--accent); font-weight: 600; }

/* offer cards: picture with the discount and +, then shop and dates, name, price */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; }
.card.in-basket { border-color: var(--save); box-shadow: 0 0 0 1px var(--save); }
.card .open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; border-radius: 14px; background: none; cursor: pointer; }
.pic { position: relative; flex: none; aspect-ratio: 4 / 3; background: var(--pic); overflow: hidden; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.off { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 7px; background: var(--badge, var(--sale)); color: #fff;
  font-size: 12.5px; font-weight: 800; }
.add { position: absolute; right: 6px; bottom: 6px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 40px; height: 40px; padding: 0; border: 0; border-radius: 20px; background: var(--chip-on); color: var(--chip-on-text);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.add svg { width: 20px; height: 20px; }
.add.in { padding: 0 12px; background: var(--save); color: #fff; }
.add.in svg { width: 16px; height: 16px; }
.info { padding: 8px 10px 11px; display: grid; gap: 3px; }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--shop); }
.shopline { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; }
.shopline span { flex: none; white-space: nowrap; }
.shopline span + span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.soon { color: var(--sale) !important; font-weight: 600; }
.name { margin: 0; min-height: 2.5em; font-size: 14px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-variant-numeric: tabular-nums; }
.price strong { font-size: 19px; color: var(--sale); letter-spacing: -.01em; }
.price s { font-size: 12.5px; color: var(--muted); }
/* A deal printed without a price ("drugi −70%", "1+1 gratis") stands where the price would, as a label. */
.price.deal strong { padding: 1px 8px; border-radius: 7px; background: var(--sale-bg); font-size: 15px; font-weight: 800; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 6px; background: var(--chip); color: var(--text);
  font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tag svg { width: 11px; height: 11px; }
.empty { display: grid; justify-items: center; gap: 10px; margin: 24px 0; padding: 32px 16px; text-align: center; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.empty b { color: var(--text); font-size: 17px; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 6px; }
.gate-actions .yes { padding: 11px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; }
.gate-actions a { color: var(--muted); }
.more { display: block; margin: 18px auto 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.more:hover { border-color: var(--text); }
.more[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border: 0;
  border-radius: 12px; background: var(--chip-on); color: var(--chip-on-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn.light { background: var(--chip); color: var(--text); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.link { padding: 6px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* the tab bar: at the bottom on phones, a floating pill on wider screens */
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }
.tabbar :is(a, button) { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: var(--muted);
  font-size: 11.5px; font-weight: 600; text-decoration: none; }
.tabbar button { border: 0; background: none; font-family: inherit; line-height: inherit; cursor: pointer; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.badge { position: absolute; top: 0; left: calc(50% + 6px); display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--badge, var(--sale)); color: #fff; font-size: 11px; font-weight: 800; }
.badge[hidden] { display: none; }
.site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 700px) {
  .tabbar { left: 50%; right: auto; bottom: 16px; width: 420px; transform: translateX(-50%); padding: 6px; border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow); }
  .brand .logo img { width: 190px; height: 190px; }
  .masthead { padding-top: 30px; }  /* the fishing rod lies along the top edge, above the logo */
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Lista and Przepisy */
.page { max-width: 720px; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 24px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.page-head h2 { margin: 0 auto 0 0; font-size: 26px; letter-spacing: -.02em; }
.head-share { align-self: center; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: var(--chip); color: var(--text); cursor: pointer; }
.head-share[hidden] { display: none; }
.page-head span { color: var(--muted); }
.group { margin: 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.group-head .dot { width: 10px; height: 10px; }
.group-head span { margin-left: auto; color: var(--muted); font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.l-row { display: grid; grid-template-columns: 30px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px;
  border-top: 1px solid var(--line); }
.group-head + .l-row { border-top: 0; }
.l-row img { width: 56px; height: 42px; object-fit: contain; background: var(--pic); border-radius: 6px; }
.check { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid var(--line); border-radius: 50%;
  background: none; color: #fff; cursor: pointer; }
.check svg { width: 16px; height: 16px; opacity: 0; }
.l-row.done .check { background: var(--save); border-color: var(--save); }
.l-row.done .check svg { opacity: 1; }
.l-row.done :is(.l-name, .l-price) { text-decoration: line-through; color: var(--muted); }
.l-row.done img, .l-row.ended img { opacity: .45; }
.l-text { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.l-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.l-meta { color: var(--muted); font-size: 12px; }
.l-row.ended .l-meta { color: var(--sale); font-weight: 600; }
.l-right { display: grid; justify-items: end; gap: 4px; }
.l-price { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.stepper button { width: 32px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 18px; cursor: pointer; }
.stepper span { min-width: 20px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.big { display: flex; justify-content: space-between; height: 48px; border-radius: 12px; }
.stepper.big button { width: 60px; height: 46px; font-size: 22px; }
.totals { display: grid; gap: 6px; margin: 12px 0; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.totals .row { display: flex; justify-content: space-between; align-items: baseline; max-width: none; margin: 0; padding: 0; overflow: visible; }
.totals strong { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.totals small { color: var(--muted); }
.totals .save { color: var(--save); font-weight: 700; }
.totals .note { margin: 0; color: var(--muted); font-size: 12.5px; }
.actions { display: flex; gap: 8px; }
.actions .btn { flex: 1; font-size: 14.5px; }
.page .home-box { margin-top: 12px; }
.page .recipe { background: var(--card); }

/* sheets: details, sort, week, "Moje sklepy" */
.scrim { position: fixed; inset: 0; z-index: 30; background: var(--scrim); opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: 100%; max-width: 560px; max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  overscroll-behavior: contain; transform: translate(-50%, 105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: var(--card); box-shadow: var(--shadow); }
.sheet.show { transform: translate(-50%, 0); }
.sheet:focus { outline: none; }
.grab { width: 40px; height: 5px; margin: 2px auto 10px; border-radius: 3px; background: var(--line); }
.sheet h2 { margin: 4px 0; font-size: 21px; letter-spacing: -.01em; text-wrap: balance; }
.sheet .lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.sheet-foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); display: grid; gap: 4px; margin: 14px -16px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shop-tile { display: flex; align-items: center; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 12px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.shop-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--chip); }
.shop-tile b { display: block; font-size: 14px; line-height: 1.2; }
.shop-tile small { color: var(--muted); font-size: 12px; }
.mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--shop); color: #fff; font-weight: 800; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 4px; border: 0;
  border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 15.5px; text-align: left; text-decoration: none; cursor: pointer; }
.opt small { display: block; color: var(--muted); font-size: 12.5px; }
.opt > svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.d-pic { position: relative; margin: 0 -16px; background: var(--pic); }
.d-pic img { display: block; width: 100%; max-height: 42vh; object-fit: contain; }
.zoom-btn { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border: 0; border-radius: 9px; background: rgb(28 32 36 / .72);
  color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: zoom-in; }
.d-head { display: grid; gap: 4px; margin-top: 12px; }
.d-shop { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.d-shop .dot { width: 9px; height: 9px; }
.d-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.d-price strong { font-size: 30px; color: var(--sale); letter-spacing: -.02em; }
.d-price s { color: var(--muted); }
.d-price .save { padding: 2px 8px; border-radius: 7px; background: var(--save-bg); color: var(--save); font-size: 13px; font-weight: 700; }
.facts { margin: 14px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts a { color: var(--accent); font-weight: 600; }
/* The feedback form (feedback.js): on the contact page, and under an offer's facts as "Zgłoś błąd w tej promocji" */
.feedback { display: grid; gap: 8px; }
.feedback label { font-size: 14px; font-weight: 600; }
.feedback label small { color: var(--muted); font-weight: 400; }
.feedback textarea, .feedback input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit; font-size: 16px; }  /* 16px: iPhones zoom into smaller fields */
.feedback textarea { min-height: 84px; resize: vertical; }
.feedback :is(textarea, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.feedback .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }  /* left empty by people */
.feedback .btn { justify-self: start; }
.feedback [role="status"] { min-height: 1.4em; margin: 0; color: var(--save); font-size: 14px; }
.feedback [role="status"].failed { color: var(--sale); }
.report { margin-top: 14px; font-size: 14px; }
.report summary { width: fit-content; color: var(--accent); font-weight: 600; cursor: pointer; }
.report .feedback { margin-top: 10px; }
.alts-title { margin: 16px 0 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.alts { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.alt { flex: none; display: grid; gap: 2px; width: 136px; padding: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.alt img { width: 100%; height: 84px; object-fit: contain; background: var(--pic); margin-bottom: 4px; }
.alt > :not(img) { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt b { color: var(--sale); font-size: 14px; }
.alt-shop { color: var(--muted); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 12px; background: var(--chip-on); color: var(--chip-on-text);
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; width: max-content; pointer-events: none; transform: translate(-50%, 16px); transition: .2s; }
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim, .toast, main { transition: none; } }

dialog.zoom { border: 0; padding: 0; background: none; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog.zoom::backdrop { background: rgb(0 0 0 / .8); }
dialog.zoom img { display: block; max-width: 94vw; max-height: calc(94vh - 40px); background: #fff; border-radius: 12px; cursor: zoom-out; }
dialog.zoom p { margin: 8px 40px 0 0; color: #fff; font-weight: 600; }
dialog.zoom button { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; color: #1c2024; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
code { background: var(--chip); padding: 1px 6px; border-radius: 5px; }

/* Przepisy */
.r-intro { margin: 10px 0 2px; color: var(--muted); font-size: 13px; }
.recipe { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.recipe h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.r-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.r-share { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -4px -4px 0 0; border: 0; border-radius: 10px;
  background: var(--chip); color: var(--text); cursor: pointer; }
.r-share svg { width: 16px; height: 16px; }
.r-meta { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.r-match { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; font-weight: 600; }
.meter { flex: none; width: 64px; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--save); }
.r-rows { display: grid; grid-template-columns: 74px 1fr; gap: 6px 8px; margin: 0; font-size: 12.5px; }
.r-rows dt { color: var(--muted); padding-top: 2px; }
.r-rows dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ing { padding: 2px 8px; border-radius: 999px; }
.ing.have { background: color-mix(in srgb, var(--save) 14%, transparent); color: var(--save); font-weight: 600; }
.ing.missing { border: 1px dashed var(--muted); }
button.ing.missing { background: none; color: var(--text); font: inherit; cursor: pointer; }
button.ing.missing:hover { border-color: var(--accent); color: var(--accent); }
button.ing.home { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.ing.home:hover { text-decoration: line-through; }
.ing.home { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.r-hint { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.r-from { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
.r-from span { margin-right: 2px; }
.from-chip { padding: 2px 10px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 12.5px; cursor: pointer; }
.from-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--save) 14%, transparent); color: var(--save); font-weight: 600; }
.from-chip[aria-pressed="false"] { background: none; border-color: var(--muted); border-style: dashed; color: var(--muted);
  text-decoration: line-through; }
.home-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--chip); }
.home-box h3 { margin: 0 0 8px; font-size: 14px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.home-chip { padding: 3px 8px 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.home-chip span { margin-left: 3px; color: var(--muted); }
.home-as { margin-left: 5px; color: var(--muted); font-size: 11.5px; }
.home-as.unknown { color: var(--sale); }
.home-chip:hover span { color: var(--sale); }
.home-empty { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.home-basics { margin: 0 0 8px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit;
  font-size: 12.5px; font-weight: 600; cursor: pointer; }
.r-count { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.home-add { display: flex; gap: 6px; }
/* 16px keeps iPhones from zooming into the field */
.home-add input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--text); font: inherit; font-size: 16px; }
.home-add button { padding: 7px 14px; border: 0; border-radius: 9px; background: var(--chip-on); color: var(--chip-on-text);
  font: inherit; font-weight: 600; cursor: pointer; }
.recipe summary { margin-top: 10px; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.r-amounts { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.r-amounts li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.r-amounts li span:last-child { color: var(--muted); text-align: right; }
.r-steps { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 6px; }
.basket-empty { margin: 40px 0; text-align: center; text-wrap: balance; color: var(--muted); }

/* Fishing rod lying along the top edge above the logo; its line hangs down the left edge of the whole page. */
.fishing { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fishing .rod { position: absolute; top: 0; left: 4px; width: 150px; height: 28px; }
.fishing .rod .stick { fill: var(--rod); }
.fishing .rod .rigged { stroke: var(--fishing-line); }
.fishing .rod .guides, .fishing .rod .seat, .fishing .rod .reel-foot, .fishing .rod .spokes, .fishing .rod .crank { stroke: var(--rod); }
.fishing .rod .handle { stroke: var(--rod-handle); }
.fishing .rod .cork { stroke: rgb(0 0 0 / .18); }
.fishing .rod .reel { stroke: var(--rod); fill: var(--card); }
.fishing .rod .knob { fill: var(--rod-handle); }
.fishing .rod .hub { fill: var(--rod); }
.fishing .rod .rotor { transform-origin: 116px 19px; }  /* the spool's centre, in the SVG's own units */
.fishing .line { position: absolute; top: 3px; bottom: 0; left: 11px; width: 1.5px; background: var(--fishing-line); }
/* The float rests on the header's bottom edge, like on the water line. */
.bobber { position: absolute; bottom: -14px; left: 5px; width: 14px; height: 26px; pointer-events: none;
  animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .bobber { animation: none; } }
@media (max-width: 640px) {  /* phones: no rod, line or float (too cramped next to the content) */
  .fishing, .bobber { display: none; }
}
/* The intro's caught promotion (app.js catchIntro), placed in .fishing so it stays on the page: turns around the hook's end. */
.catch { position: absolute; z-index: 20; width: 66px; height: 36px; margin-top: -18px; pointer-events: none;
  transform-origin: 0 18px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .2)); }
.catch svg { display: block; }

/* Footer: the site's documents and contact, like other comparison sites */
.site-footer { border-top: 1px solid var(--line); padding: 20px 16px 28px; text-align: center; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-bottom: 6px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer nav a + a::before { content: "·"; display: inline-block; margin: 0 10px; color: var(--muted); }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--text); }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; font-size: 12px; }

/* This week's offers as plain HTML (export.py): for search engines and visitors without JavaScript;
   the app draws the real list instead. */
.js .prerender { display: none; }
.prerender { max-width: 760px; }
.prerender h2 { font-size: 20px; margin: 8px 0; }
.prerender h3 { font-size: 16px; margin: 16px 0 6px; }
.prerender li { margin: 2px 0; }

/* "Udostępnij listę": the switch, the link (a button to send it on phones; on computers the link itself, a QR code
   for the phone and where to send it), and the printable list (filled by app.js just before printing) */
.switch { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }
.sheet-title { margin: 18px 0 2px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.share-hint { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.share-link { display: grid; gap: 8px; }
.share-link .share-hint { margin: 0; }
.share-qr { text-align: center; }
.share-qr[hidden] { display: none; }
.share-qr svg { display: block; width: min(100%, var(--qr, 196px)); margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; }
.share-qr p, .share-ways p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.share-desk { display: grid; grid-template-columns: var(--qr, 196px) minmax(0, 1fr); gap: 16px; align-items: start; }
.share-desk.big { grid-template-columns: minmax(0, 1fr); }
.share-desk.big .share-qr { order: 1; }
.share-desk > :only-child { grid-column: 1 / -1; }
.share-ways { display: grid; gap: 8px; }
.share-url { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--text); font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; }
.share-ways .actions { flex-wrap: wrap; }
.share-ways .actions .btn { height: 40px; padding: 0 12px; }
@media (max-width: 460px) {  /* a narrow window without the system's share menu: the code goes under the link */
  .share-desk { grid-template-columns: minmax(0, 1fr); }
  .share-desk .share-qr { order: 1; }
}
.print-list { display: none; }
@media print {
  body { background: #fff; }
  body > :not(.print-list) { display: none !important; }
  @page { margin: 14mm; }
  .print-list { display: block; padding: 0 6mm; color: #000; font: 12pt/1.35 system-ui, sans-serif; }
  .print-list h1 { margin: 0; font-size: 20pt; }
  .print-list h2 { display: flex; justify-content: space-between; margin: 16pt 0 4pt; padding-bottom: 3pt; border-bottom: 1.5pt solid #000; font-size: 13pt; }
  .print-list h2 span, .p-price { font-variant-numeric: tabular-nums; }
  .print-list table { width: 100%; border-collapse: collapse; }
  .print-list tr { break-inside: avoid; }
  .print-list td { padding: 4pt 0; border-bottom: .5pt solid #bbb; vertical-align: top; }
  .print-list small { display: block; color: #555; font-size: 9.5pt; }
  .p-box { width: 22pt; font-size: 15pt; line-height: 1; }
  .p-price { text-align: right; white-space: nowrap; padding-left: 10pt !important; }
  .p-done td:not(.p-box) { color: #777; text-decoration: line-through; }
  .p-sub { margin: 2pt 0 0; color: #555; font-size: 10pt; }
  .p-total { margin: 12pt 0 0; font-size: 13pt; text-align: right; }
  .p-steps { margin: 6pt 0 12pt; padding-left: 18pt; }
  .p-steps li { margin-bottom: 6pt; break-inside: avoid; }
}

/* a recipe opened from a link: large enough to cook from */
.sheet .r-amounts, .sheet .r-steps { font-size: 15px; }
.sheet .r-steps { gap: 10px; }

/* "Lista z linku": a list opened from a link, before it's added */
.s-shop { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-weight: 700; }
.s-shop .dot { width: 10px; height: 10px; }
.s-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.s-row img { width: 48px; height: 36px; object-fit: contain; background: var(--pic); border-radius: 6px; }
.s-row small { display: block; color: var(--muted); font-size: 12px; }
.s-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
