/* =========================================================
   WszystkieGazetki.pl — propozycja nowej strony głównej
   Czysty CSS, fonty systemowe, bez bibliotek.
   ========================================================= */

:root {
  /* Kolory */
  --forest: #0b3d2c;      /* tło paska pod nagłówkiem i stopki */
  --forest-2: #124b37;    /* jaśniejszy odcień na ciemnym tle */
  --green: #087443;       /* kolor marki, akcje */
  --green-ink: #065c35;
  --mint: #e5f2ea;        /* delikatne wyróżnienia */
  --sun: #ffd43b;         /* naklejka cenowa, jak w gazetkach */
  --sun-ink: #3a2f00;
  --red: #c8321f;         /* tylko "ostatnie dni" */
  --ink: #13221b;
  --muted: #5d6a63;
  --line: #e1e7e2;
  --page: #f3f6f3;
  --paper: #fff;

  /* Typografia: fonty systemowe (wymóg projektu) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 40px;
  --shadow-paper: 0 1px 2px rgba(10, 30, 20, .18), 0 14px 30px -14px rgba(10, 30, 20, .45);
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top: po kliknięciu w link do sekcji jej początek nie chowa się pod przyklejonym nagłówkiem */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--sun); color: var(--sun-ink); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Nagłówek ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { flex-shrink: 0; width: 40px; height: 40px; }   /* znak z tłem: public/assets/logo.svg */
/* Nazwa w dwóch liniach („wszystkie” / „gazetki.pl”) — w jednej linii jest za szeroka dla nagłówka z menu. */
.brand-name { font: 800 22px/.95 var(--font-display); letter-spacing: -.045em; white-space: nowrap; }
.brand-name b { display: block; color: var(--green); font-weight: 800; }
.brand-name small { font-weight: 500; font-size: .82em; letter-spacing: -.03em; color: var(--muted); }

.mainnav { display: flex; gap: 6px; }
.mainnav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #34433b; }
.mainnav a:hover { background: var(--page); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--mint); color: var(--green-ink); }

.masthead-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.city, .lang, .burger { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; }
.city { padding: 6px 12px 6px 10px; text-align: left; }
.city > .ico:first-child { color: var(--green); }
.city span { display: grid; font-size: 15px; font-weight: 700; line-height: 1.15; }
.city:hover, .lang:hover { border-color: #c7d2ca; }
.lang { height: 46px; padding: 0 12px; font-size: 14px; font-weight: 700; }
.lang .ico { width: 18px; height: 18px; color: var(--muted); }
.burger { display: none; width: 46px; height: 46px; justify-content: center; }

/* Wyszukiwarka w nagłówku */
.search {
  flex: 1; display: flex; align-items: center;
  max-width: 480px; height: 46px; padding: 4px 4px 4px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--page);
}
.search > .ico { width: 20px; height: 20px; color: var(--muted); }
/* 16px to minimum, przy którym iPhone nie powiększa strony po kliknięciu w pole */
.search input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; outline: none; background: transparent; font-size: 16px; }
.search input::placeholder { color: #7b8780; }
.search:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px var(--mint); }
.search button { height: 100%; padding: 0 16px; border: 0; border-radius: 9px; background: var(--green); color: #fff; font-weight: 700; font-size: 14.5px; }
.search button:hover { background: var(--green-ink); }

/* ---------- Ciemny pasek pod nagłówkiem ---------- */
/* Pasek jest tłem dla półki ze sklepami: zaczyna się 14px nad nią i kończy w jej połowie (84px nad dołem sekcji) */
.intro { padding-top: 14px; background: linear-gradient(var(--forest) 0 calc(100% - 84px), transparent 0); }

/* Naklejka — motyw z prawdziwych gazetek */
.sticker {
  position: absolute; top: 12px; right: -10px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--sun); color: var(--sun-ink);
  font-size: 13px; font-weight: 800; line-height: 1.2;
  transform: rotate(4deg);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
}

/* Półka z sieciami */
.shelf { position: relative; z-index: 2; color: var(--ink); padding: 18px 12px; border-radius: 22px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(11, 61, 44, .35); }
.shelf ul { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.shelf a { position: relative; display: grid; justify-items: center; gap: 8px; padding: 8px 4px; border-radius: 14px; font-size: 13.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.shelf a:hover { background: var(--page); }
/* Kafelek logo ma stały rozmiar, a obrazek jest w niego wpisany w całości (object-fit: contain).
   Dzięki temu logo kwadratowe, szerokie i z własnym tłem zawsze się mieści i nic nie jest ucinane. */
.logo { position: relative; display: grid; place-items: center; width: 84px; height: 58px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px 10px; object-fit: contain; }
.shelf-all .logo { background: var(--mint); border-color: transparent; color: var(--green-ink); }
.shelf-all .logo b { font: 800 20px/1 var(--font-display); letter-spacing: -.03em; }
.new { position: absolute; top: 2px; left: calc(50% + 32px); width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 3px solid #fff; }

/* ---------- Okazje na czasie (kafelki) ---------- */
.occasions { padding-top: 22px; }
.occ-list { display: flex; gap: 12px; }
/* Kafle dzielą szerokość po równo: przy mniejszej liczbie okazji są po prostu szersze */
.occ-list li { flex: 1 1 0; min-width: 0; }
/* Tło i ramka to kolor okazji rozjaśniony bielą. Pierwsza linia jest dla starszych przeglądarek bez color-mix. */
.occ {
  --t: var(--green);
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px;
  border-radius: 16px;
  background: var(--paper);
  background: color-mix(in srgb, var(--t) 8%, #fff);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--t) 24%, #fff);
  transition: border-color .2s, transform .2s;
}
.occ:hover { border-color: var(--t); transform: translateY(-2px); }
.occ-ico { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--t); color: #fff; }
.occ-text { display: grid; min-width: 0; line-height: 1.25; }
.occ-text b { font-weight: 700; font-size: 15px; }
.occ-text small { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.occ-text em { font-style: normal; font-weight: 700; color: var(--t); }

/* ---------- Sekcje ---------- */
.section { padding-block: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font: 750 clamp(26px, 2.6vw, 34px)/1.12 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.section-head p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.section-head-tight { margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--green); font-weight: 700; font-size: 15px; }
.more .ico { width: 18px; height: 18px; transition: transform .2s; }
.more:hover .ico { transform: translateX(3px); }

/* ---------- Aktualne gazetki ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: #e8ede9; }
.filters label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #3b4942; cursor: pointer; user-select: none; }
.filters label span { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters label:hover { color: var(--ink); }

/* Stan zaznaczenia filtra (czysty CSS) */
.leaflets:has(#f-all:checked) label[for="f-all"],
.leaflets:has(#f-soon:checked) label[for="f-soon"],
.leaflets:has(#f-ends:checked) label[for="f-ends"],
.leaflets:has(#f-drug:checked) label[for="f-drug"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 30, 20, .14); }
.leaflets:has(#f-all:focus-visible) label[for="f-all"],
.leaflets:has(#f-soon:focus-visible) label[for="f-soon"],
.leaflets:has(#f-ends:focus-visible) label[for="f-ends"],
.leaflets:has(#f-drug:focus-visible) label[for="f-drug"] { outline: 3px solid var(--green); outline-offset: 1px; }
.leaflets:has(#f-soon:checked) .leaflet:not([data-soon]),
.leaflets:has(#f-ends:checked) .leaflet:not([data-ends]),
.leaflets:has(#f-drug:checked) .leaflet:not([data-drug]) { display: none; }

.rack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.leaflet a { display: grid; gap: 4px; }
.leaflet-cover { position: relative; display: block; margin-bottom: 14px; border-radius: 6px; box-shadow: var(--shadow-paper); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.leaflet-cover img { width: 100%; aspect-ratio: 16 / 24; object-fit: cover; object-position: top; border-radius: 6px; background: #e7ece8; }
.leaflet a:hover .leaflet-cover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 2px 4px rgba(10, 30, 20, .16), 0 26px 40px -18px rgba(10, 30, 20, .5); }
.leaflet-store { display: flex; align-items: center; gap: 10px; font: 750 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.leaflet-store img { width: 46px; height: 30px; padding: 4px 5px; border-radius: 8px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.leaflet-title { color: var(--muted); font-size: 15px; }

.validity { display: grid; gap: 7px; margin-top: 10px; font-size: 13.5px; }
.validity .bar { position: relative; height: 4px; border-radius: 4px; background: #dfe5e0; overflow: hidden; }
.validity .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--left, 50%); border-radius: inherit; background: var(--green); }
.validity-text { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.validity-text b { color: var(--ink); font-weight: 650; }
.validity.is-last .bar::after { background: var(--red); }
.validity.is-last b { color: var(--red); }
.validity.is-upcoming { display: flex; align-items: center; gap: 8px; color: var(--green-ink); font-weight: 650; padding-top: 0; }
.validity.is-upcoming .ico { width: 17px; height: 17px; }

.rack-foot { display: flex; justify-content: center; margin-top: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 14px; font-weight: 700; }
.btn-outline { border: 1.5px solid #c9d4cc; background: var(--paper); }
.btn-outline:hover { border-color: var(--green); color: var(--green-ink); }

/* ---------- Naklejka cenowa (jak w gazetkach) ---------- */
.price {
  align-self: flex-start;
  position: relative;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 3px 3px;
  padding: 6px 12px;
  background: var(--sun); color: var(--sun-ink);
  border-radius: 6px; transform: rotate(-3deg);
  box-shadow: 0 6px 14px -6px rgba(58, 47, 0, .45);
  font-variant-numeric: tabular-nums;
}
.price .zl { grid-row: 1 / 3; font: 900 48px/.95 var(--font-display); letter-spacing: -.05em; }
.price .gr { align-self: start; padding-top: 3px; font: 900 21px/1 var(--font-display); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.price .unit { align-self: end; font-size: 11px; font-weight: 700; line-height: 1; padding-bottom: 4px; white-space: nowrap; }
.price-sm { padding: 5px 10px; transform: rotate(-2deg); }
.price-sm .zl { font-size: 38px; }
.price-sm .gr { font-size: 17px; padding-top: 2px; }
.price-sm .unit { font-size: 10px; padding-bottom: 3px; }
.fineprint { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- Gazetka promowana (slot reklamowy) ---------- */
.promo-section { padding-top: 22px; }
.promo {
  --brand: var(--green); --brand-ink: #fff; --brand-accent: var(--sun);
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  border-radius: 26px; background: var(--paper); border: 1px solid var(--line); overflow: hidden;
}
/* Okładka jest główną rzeczą w tym bloku: stoi po lewej w całości, obok krótki tekst i przycisk */
.promo-brand {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 36px;
  padding: 36px 32px 36px 42px;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%), var(--brand);
  color: var(--brand-ink); overflow: hidden;
}
.promo-cover { position: relative; display: block; transform: rotate(-3deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.promo-cover::before { /* kartka pod okładką: wrażenie grubszej gazetki */
  content: ""; position: absolute; inset: 0; border-radius: 6px; background: #fff;
  transform: rotate(6deg) translate(8px, 4px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55);
}
.promo-cover img { position: relative; width: 100%; aspect-ratio: 461 / 720; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 28px 50px -20px rgba(0, 0, 0, .7); }
.promo-cover .sticker { top: 16px; right: -14px; padding: 6px 12px; font-size: 14px; background: var(--brand-accent); color: #1f1d00; }
.promo-brand:hover .promo-cover { transform: rotate(-1.5deg) translateY(-8px); }
.promo-cover:focus-visible { outline-color: var(--brand-accent); }

.promo-copy { display: grid; justify-items: start; }
.promo-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.promo-flag { padding: 4px 10px; border-radius: 6px; background: var(--brand-accent); color: #1f1d00; font-size: 12.5px; font-weight: 800; }
.ad-note { font-size: 12px; opacity: .75; }
.promo-logo { position: relative; width: 60px; height: 60px; margin-top: 24px; border-radius: 15px; background: #fff; overflow: hidden; }
.promo-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.promo-brand h2 { margin-top: 16px; font: 800 clamp(26px, 2.5vw, 34px)/1.05 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.promo-dates { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14.5px; font-weight: 700; }
.promo-dates .ico { width: 18px; height: 18px; }
.promo-cta { display: inline-flex; align-items: center; gap: 10px; height: 50px; margin-top: 24px; padding: 0 20px 0 22px; border-radius: 12px; background: #fff; color: var(--brand); font-weight: 800; white-space: nowrap; }
.promo-cta .ico { width: 18px; height: 18px; transition: transform .2s; }
.promo-cta:hover .ico { transform: translateX(3px); }
.promo-cta:focus-visible { outline-color: var(--brand-accent); }

.promo-products { display: flex; flex-direction: column; padding: 26px 28px 22px; }
.promo-products-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.promo-products-head h3 { font: 750 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.promo-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.promo-item:nth-child(3):last-child { grid-column: span 2; }   /* gdy są 3 produkty */
.promo-item a { display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 16px; height: 100%; padding: 12px 16px 12px 12px; border-radius: 18px; border: 1px solid var(--line); transition: border-color .2s; }
.promo-item a:hover { border-color: var(--brand); }
.promo-img { display: block; }
.promo-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .35s; }
.promo-item a:hover .promo-img img { transform: scale(1.05); }
.promo-info { display: grid; justify-items: start; gap: 10px; }
.promo-name { font-weight: 650; font-size: 15.5px; line-height: 1.3; text-wrap: balance; }
.promo-page { font-size: 12.5px; color: var(--muted); }
.promo-item a:hover .promo-page { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sekcja okazji (duży blok) ---------- */
.theme {
  --theme: var(--forest); --theme-accent: var(--sun);
  position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; align-items: center;
  padding: 40px 44px; border-radius: 26px; background: var(--theme); color: #fff; overflow: hidden;
}
.theme::before { /* poświata w kolorze akcentu, np. światło znicza */
  content: ""; position: absolute; left: -160px; top: -220px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, var(--theme-accent), transparent); opacity: .22; pointer-events: none;
}
.theme > * { position: relative; }
.theme-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--theme-accent); }
.theme-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--theme-accent); color: var(--theme); }
.theme h2 { margin-top: 20px; font: 800 clamp(28px, 2.8vw, 38px)/1.05 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.theme-date { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.theme-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.theme-tags a { display: block; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); font-size: 14px; font-weight: 600; }
.theme-tags a:hover { background: rgba(255, 255, 255, .12); }
.theme-cta { display: inline-flex; align-items: center; gap: 10px; height: 50px; margin-top: 26px; padding: 0 20px 0 22px; border-radius: 12px; background: var(--theme-accent); color: #1f1d00; font-weight: 800; white-space: nowrap; }
.theme-cta .ico { width: 18px; height: 18px; transition: transform .2s; }
.theme-cta:hover .ico { transform: translateX(3px); }

.theme-rack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.theme-rack a { display: grid; gap: 3px; }
.theme-cover { position: relative; display: block; margin-bottom: 10px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 22px 36px -18px rgba(0, 0, 0, .7); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.theme-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 6px; background: #e7ece8; }
.theme-cover .sticker { background: var(--theme-accent); color: #1f1d00; font-size: 14px; }
.theme-rack a:hover .theme-cover { transform: translateY(-6px) rotate(-.6deg); }
.theme-store { font: 750 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.theme-note { font-size: 13.5px; color: rgba(255, 255, 255, .74); }

/* ---------- Najczęściej szukane + powiadomienia ---------- */
.split-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.trending { display: flex; flex-direction: column; padding: 30px 30px 18px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.trend-list { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; column-gap: 28px; }
.trend-list li { display: grid; }
.trend-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.trend-list li:nth-child(-n+2) a { border-top: 0; }
.rank { font: 800 22px/1 var(--font-display); color: #b8c3bc; font-variant-numeric: tabular-nums; }
.trend-name { display: grid; font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.trend-name small { font-weight: 400; font-size: 13px; color: var(--muted); }
.trend-price { display: grid; justify-items: end; font: 800 17px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--green-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend-price small { font: 500 12px/1.2 var(--font); color: var(--muted); letter-spacing: 0; }
.trend-list a:hover .trend-name { color: var(--green-ink); }

.alerts { position: relative; padding: 34px 32px; border-radius: 22px; background: var(--forest); color: #fff; overflow: hidden; }
.alerts::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .04); pointer-events: none; }
.alerts-ico { width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; border-radius: 12px; background: var(--sun); color: var(--sun-ink); }
.alerts h2 { font: 750 26px/1.15 var(--font-display); letter-spacing: -.03em; max-width: 16ch; }
.alerts > p { margin-top: 10px; color: #c4dccd; font-size: 15px; max-width: 46ch; }
.alert-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.alert-stores label { position: relative; cursor: pointer; }
.alert-stores input { position: absolute; opacity: 0; }
.alert-stores span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; font-weight: 600; color: #dceee3; }
.alert-stores input:checked + span { background: #fff; border-color: #fff; color: var(--forest); }
.alert-stores input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.alert-stores input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.alert-row { display: flex; gap: 8px; margin-top: 16px; }
.alert-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); }
.alert-row button { height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--sun); color: var(--sun-ink); font-weight: 800; white-space: nowrap; }
.alert-row button:hover { background: #ffdf66; }

/* ---------- Poradnik ---------- */
.guide { padding-bottom: 88px; }   /* ostatnia sekcja przed stopką */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; }
.story a { display: block; }
.story-img { display: block; border-radius: 16px; overflow: hidden; background: #e2e8e4; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story a:hover .story-img img { transform: scale(1.03); }
.story-meta { display: flex; gap: 10px; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--green-ink); }
.story-meta time { font-weight: 400; color: var(--muted); }
.story h3 { margin-top: 6px; font: 750 19px/1.3 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.story a:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.story-lead .story-img { aspect-ratio: 1200 / 628; }
.story-lead h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -.025em; }
.story-lead p { margin-top: 10px; color: var(--muted); max-width: 60ch; }

.story-list { display: grid; align-content: start; }
.story-list .story + .story { border-top: 1px solid var(--line); }
.story-list a { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding-block: 18px; }
.story-list .story:first-child a { padding-top: 0; }
.story-list .story-img { aspect-ratio: 300 / 200; border-radius: 12px; }
.story-list .story-meta { margin-top: 0; }
.story-list h3 { font-size: 17px; }
.story-body { display: block; }

/* ---------- Stopka ---------- */
.footer { background: var(--forest); color: #c7dbcf; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; padding-block: 64px 48px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name b { color: var(--sun); }
.brand-light .brand-name small { color: #9cc0aa; }
.footer-brand p { margin-top: 18px; max-width: 32ch; font-size: 15px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { margin-bottom: 14px; font-size: 14px; font-weight: 700; color: #fff; }
.footer-cols a { display: block; padding-block: 5px; font-size: 14.5px; }
.footer-cols a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 30px; border-top: 1px solid var(--forest-2); font-size: 13.5px; color: #96b6a3; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1180px) {
  .masthead-row { gap: 20px; }
  .mainnav { display: none; }
  .burger { display: inline-flex; }
  .search { max-width: none; }
  .shelf ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shelf ul::-webkit-scrollbar { display: none; }
  .shelf li { flex: 0 0 96px; scroll-snap-align: start; }
  /* Kafelki okazji: przewijany rząd, kolejny kafelek wystaje zza krawędzi */
  .occ-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-padding-inline: var(--gutter); }
  .occ-list::-webkit-scrollbar { display: none; }
  .occ-list li { flex: 0 0 228px; scroll-snap-align: start; }
  .occasions { padding-top: 18px; }
  .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo { grid-template-columns: 1fr; }
  .promo-brand { grid-template-columns: 230px minmax(0, 1fr); }
  .theme { grid-template-columns: 1fr; gap: 32px; }
  .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .lang { display: none; }
  /* Nagłówek ma dwa wiersze: logo i miasto (60px), pod nimi wyszukiwarka.
     top: -60px sprawia, że przy przewijaniu pierwszy wiersz chowa się, a przyklejona zostaje sama wyszukiwarka. */
  .masthead { top: -60px; }
  .masthead-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 60px auto; gap: 0 12px; min-height: 0; padding-bottom: 10px; }
  .masthead-tools { grid-row: 1; grid-column: 2; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand-name { font-size: 19px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .city .ico-sm { display: none; }
  .city { height: 44px; padding: 0 10px; gap: 6px; }
  .burger { width: 44px; height: 44px; }
  .masthead-tools { gap: 6px; }
  .intro { padding-top: 12px; background: linear-gradient(var(--forest) 0 calc(100% - 62px), transparent 0); }
  .shelf { padding: 10px 6px; border-radius: 18px; }
  .shelf li { flex-basis: 84px; }
  .logo { width: 68px; height: 50px; border-radius: 13px; }
  .logo img { padding: 7px 8px; }
  .new { left: calc(50% + 24px); }
  /* Okazje na telefonie: kółko z ikoną i podpis pod spodem, jak rząd relacji */
  .occ-list { gap: 2px; padding-block: 6px 2px; }
  .occ-list li { flex-basis: 92px; }
  .occ { flex-direction: column; gap: 8px; padding: 0 4px; border: 0; background: none; text-align: center; }
  .occ:hover { transform: none; }
  .occ-ico { width: 58px; height: 58px; box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--t); }
  .occ-ico .ico { width: 26px; height: 26px; }
  .occ-text b { font-size: 12.5px; }
  .occ-text small { font-size: 12px; }
  .occ-text small span { display: none; }   /* zostaje samo „za 10 dni" */
  .section { padding-top: 56px; }
  .promo-section { padding-top: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .filters label { white-space: nowrap; }
  .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .leaflet-store { font-size: 16px; }
  .leaflet-title { font-size: 14px; }
  .validity-text { flex-direction: column; gap: 0; }
  .promo { border-radius: 20px; }
  .promo-brand { grid-template-columns: 40% minmax(0, 1fr); gap: 20px; padding: 24px 18px 24px 22px; }
  .promo-cover .sticker { top: 10px; right: -10px; padding: 4px 8px; font-size: 12px; }
  .promo-flag { font-size: 11.5px; padding: 3px 8px; }
  .promo-logo { width: 44px; height: 44px; margin-top: 14px; border-radius: 12px; }
  .promo-logo img { padding: 4px; }
  .promo-brand h2 { margin-top: 12px; font-size: 22px; }
  .promo-dates { margin-top: 8px; font-size: 13.5px; }
  .promo-dates .ico { display: none; }
  .promo-cta { width: 100%; justify-content: center; height: 46px; margin-top: 16px; padding: 0 10px; font-size: 15px; }
  .promo-cta .ico { display: none; }
  .promo-products { padding: 20px 14px 16px; }
  .promo-products-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .promo-grid { gap: 10px; }
  .promo-item a { grid-template-columns: 1fr; gap: 10px; padding: 8px 10px 14px; border-radius: 14px; }
  .promo-name { font-size: 14px; }
  .price-sm .zl { font-size: 32px; }
  .price-sm .gr { font-size: 15px; }
  .price-sm .unit { font-size: 9px; }
  .theme { gap: 24px; padding: 26px 20px 24px; border-radius: 20px; }
  .theme h2 { margin-top: 16px; }
  .theme-tags { margin-top: 18px; }
  .theme-cta { margin-top: 20px; }
  /* Okładki w sekcji okazji: przewijany rząd aż do prawej krawędzi bloku */
  .theme-rack { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 0 24px 6px 20px; scroll-padding-inline: 20px; }
  .theme-rack::-webkit-scrollbar { display: none; }
  .theme-rack li { flex: 0 0 136px; scroll-snap-align: start; }
  .theme-store { font-size: 16px; }
  .trending { padding: 24px 18px 8px; }
  .trend-list { grid-template-columns: 1fr; }
  .trend-list li:nth-child(2) a { border-top: 1px solid var(--line); }
  .alerts { padding: 28px 22px; }
  .alert-row { flex-direction: column; }
  .alert-row input, .alert-row button { flex: none; width: 100%; }
  .story-list a { grid-template-columns: 112px 1fr; gap: 14px; }
  .story-list h3 { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Uzupełnienia v4 (elementy, których nie było w makiecie)
   ========================================================= */

/* Logo sieci bez pliku: pierwsza litera nazwy */
.logo-text { font: 800 24px/1 var(--font-display); color: var(--green-ink); }

/* Nagłówki stron list (h1 wygląda jak h2 sekcji) */
.section-head h1 { font: 750 clamp(26px, 2.6vw, 34px)/1.12 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.list-page { padding-top: 40px; }
.empty-note { padding: 28px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.text-link { color: var(--green); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.btn-primary { border: 0; background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); }
.btn .ico { width: 18px; height: 18px; }

/* Ostatnia sekcja strony ma odstęp od stopki (w makiecie robiła to sekcja poradnika; czytnik ma własny odstęp) */
main:not(.reader-page) > .section:last-child { padding-bottom: 88px; }

/* Kafelki gazetek w rzędzie mają równą wysokość: tytuł zajmuje wolne miejsce, pasek ważności jest zawsze na dole */
.leaflet a { height: 100%; grid-template-rows: auto auto 1fr auto; }

/* Lista wszystkich sieci: półka zawija się w wiersze */
.shelf-index ul { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); row-gap: 6px; }
.shelf-index a { white-space: normal; }
.shelf-index small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Karta zamiast czytnika: gazetka wygasła albo pytanie o pełnoletność */
.notice-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 36px; margin-top: 8px; padding: 32px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.notice-card:not(.is-expired) { grid-template-columns: minmax(0, 640px); }
.notice-cover img { width: 220px; border-radius: 6px; box-shadow: var(--shadow-paper); filter: grayscale(1); opacity: .7; }
.notice-copy { display: grid; gap: 14px; justify-items: start; }
.notice-kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.notice-copy h1 { font: 750 clamp(24px, 2.4vw, 32px)/1.15 var(--font-display); letter-spacing: -.03em; }
.notice-copy h1 span { font-weight: 500; color: var(--muted); }
.notice-copy p { color: var(--muted); max-width: 60ch; }
.notice-copy .reader-dates { color: var(--muted); }
.notice-copy form { display: grid; gap: 16px; justify-items: start; }
.notice-check { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.notice-check input { width: 20px; height: 20px; accent-color: var(--green); }

@media (max-width: 1180px) {
  /* Menu z przycisku "burger" (js/site.js dodaje klasę is-open) */
  .masthead.is-open .mainnav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 12px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(10, 30, 20, .35); }
  .shelf-index ul { display: grid; overflow: visible; }
}

@media (max-width: 640px) {
  .notice-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .notice-cover img { width: 160px; }
  .list-page { padding-top: 28px; }
  main:not(.reader-page) > .section:last-child { padding-bottom: 64px; }
}

/* Wybór miasta: przycisk w nagłówku jest linkiem (działa bez JS), okno to <dialog> */
a.city { color: inherit; }
.location-dialog { width: min(460px, 100% - 32px); padding: 28px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(10, 30, 20, .5); }
.location-dialog::backdrop { background: rgba(10, 30, 20, .45); }
.location-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); }
.location-close:hover { background: var(--page); color: var(--ink); }
.location-title { padding-right: 36px; font: 750 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.location-lead { margin-top: 8px; color: var(--muted); }
.location-form { display: grid; gap: 12px; margin-top: 18px; }
.location-form input[type="text"] { height: 50px; padding: 0 14px; border: 1px solid #cfd8d1; border-radius: 12px; font: inherit; font-size: 16px; }
.location-form input[type="text"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.location-error { color: var(--red); font-size: 14px; font-weight: 600; }
.location-reset { margin-top: 12px; }
.location-reset button { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; }
.location-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.location-page { margin-block: 40px; }

/* Sekcja okazji bez okładek (strona okazji): sam opis na całą szerokość */
.theme.theme-solo { grid-template-columns: 1fr; }
.occasion-page { padding-top: 8px; }
.occasion-page + .leaflets { padding-top: 32px; }

/* Produkty gazetki promowanej: zawsze siatka 2×2 o stałej wysokości (bez rozciągania 3. kafelka z szablonu),
   zdjęcie w ramce o stałym rozmiarze, nazwa najwyżej w 3 liniach — sekcja ma ten sam rozmiar przy każdej gazetce. */
.promo-grid { flex: none; grid-template-rows: repeat(2, 190px); grid-auto-rows: 190px; }
.promo-page { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.promo-item:nth-child(3):last-child { grid-column: auto; }
.promo-item a { overflow: hidden; }
.promo-img { display: flex; align-items: center; justify-content: center; height: 100%; }
.promo-img img { width: 100%; height: 136px; aspect-ratio: auto; object-fit: contain; }
.promo-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo-brand h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* długi tytuł nie podnosi sekcji */

@media (max-width: 640px) {
  .promo-grid { grid-template-rows: repeat(2, 268px); grid-auto-rows: 268px; }
  .promo-img { height: auto; }
  .promo-img img { height: 120px; }
  .promo-name { -webkit-line-clamp: 2; }
}
.promo-copy .reader-dates { margin-top: 12px; color: inherit; font-weight: 700; }

/* Podstrony tekstowe (polityka prywatności, regulamin, kontakt, reklama) i strona 404 */
.text-page { max-width: 760px; padding-block: 48px 72px; }
.text-page-kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.text-page h1 { margin-top: 10px; font: 750 clamp(28px, 3vw, 38px)/1.15 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.text-page-lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.text-page h2 { margin-top: 32px; font: 750 20px/1.3 var(--font-display); letter-spacing: -.02em; }
.text-page p, .text-page ul, .text-page ol, .text-page address { margin-top: 12px; line-height: 1.65; }
.text-page ul, .text-page ol { padding-left: 22px; }
.text-page ul { list-style: disc; }
.text-page ol { list-style: decimal; }
.text-page li + li { margin-top: 6px; }
.company { padding: 20px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-style: normal; }
.not-found-search { max-width: 560px; margin-top: 24px; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Baner zgody na cookies: karta przy dolnej krawędzi, nad treścią */
.cookie-banner { position: fixed; z-index: 40; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 18px 24px; width: min(920px, 100% - 32px); padding: 18px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(10, 30, 20, .45); transform: translateX(-50%); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-banner-text strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { height: 44px; padding: 0 18px; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 10px; padding: 16px; }
  .cookie-banner-actions .btn { flex: 1; padding: 0 10px; }
  .text-page { padding-block: 32px 56px; }
}

/* „Moja lista”: przycisk „Do listy” przy ofertach i licznik w menu (strona listy: lista.css) */
.list-add { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1.5px solid #c9d4cc; background: var(--paper); color: var(--green-ink); font-size: 12.5px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.list-add[hidden] { display: none; }
.list-add .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.list-add:hover { border-color: var(--green); }
.list-add[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.list-add[aria-pressed="true"] .ico { display: none; }
/* Na kafelku na /promocje przycisk leży nad zdjęciem, w lewym górnym rogu */
.deal { position: relative; }
.deal .list-add { position: absolute; z-index: 1; top: 10px; left: 10px; }
.offer-product .list-add { justify-self: start; margin-top: 6px; }
.list-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-size: 12px; font-weight: 800; }
.list-count[hidden] { display: none; }

/* Wersja ukraińska: przełącznik języka (.lang w nagłówku, na telefonie link w menu) i informacja nad dokumentem po polsku */
.mainnav-lang { display: none; }
@media (max-width: 900px) {
  .masthead.is-open .mainnav .mainnav-lang { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }
}
.text-page-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; background: var(--mint); color: var(--green-ink); font-size: 15px; line-height: 1.5; }

/* Strona „Sklepy”: karta sieci z logo i linkami do jej podstron */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.store { display: grid; align-content: space-between; gap: 16px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.store-head { display: flex; align-items: center; gap: 14px; }
.store-head:hover b { color: var(--green); }
.store-name { display: grid; gap: 2px; min-width: 0; }
.store-name b { font: 750 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.store-name small { font-size: 13px; color: var(--muted); }
.store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.store-links a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1.5px solid #c9d4cc; color: var(--green-ink); font-size: 14px; font-weight: 700; }
.store-links a[href]:hover { border-color: var(--green); background: var(--mint); }
.store-links small { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--mint); font-size: 12px; text-align: center; }
/* Link bez adresu: podstrona jeszcze nie istnieje */
.store-links a:not([href]) { border-style: dashed; color: var(--muted); cursor: default; }

@media (max-width: 640px) {
  .stores { grid-template-columns: 1fr; gap: 12px; }
  .store { padding: 14px; }
}

/* Podpowiedzi wyszukiwarki w nagłówku (lista pod polem, wypełnia js/site.js) */
.search { position: relative; }
/* Wysokość ograniczona, żeby na telefonie z klawiaturą dało się przewinąć do ostatniej podpowiedzi */
.search-suggest { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; max-height: min(60vh, 480px); overflow-y: auto; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(10, 30, 20, .45); }
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; color: var(--ink); }
.search-suggest a:hover, .search-suggest .is-active a { background: var(--mint); }
.suggest-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--green-ink); font-size: 14px; font-weight: 800; }
.suggest-icon img { max-width: 36px; max-height: 22px; object-fit: contain; }
.suggest-icon .ico { width: 16px; height: 16px; color: var(--muted); }
.suggest-icon .ico-product { width: 20px; height: 20px; color: var(--green); }
.suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.search-suggest small { flex-shrink: 0; color: var(--muted); font-size: 12.5px; }
.search-suggest .suggest-search { font-weight: 700; color: var(--green-ink); }

/* Położenie z przeglądarki („Użyj mojej lokalizacji”) — przycisk w oknie wyboru miasta. */
.location-device { display: grid; gap: 8px; margin-top: 12px; }
.location-device[hidden] { display: none; }
.location-device .btn { height: 48px; }
.location-device-status { font-size: 14px; color: var(--muted); }
.location-device-status:empty { display: none; }
.location-device .btn:disabled { opacity: .6; cursor: wait; }

/* Przycisk miasta w nagłówku: samo miasto, bez „Gazetki dla” — wysokość jak przycisk języka. */
@media (min-width: 641px) {
  .city { height: 46px; }
}
