/* ========== akcijupaieska.lt – dizainas ========== */
/* Šriftas Inter (kintamo storio 400–900) – iš mūsų serverio, ne iš Google: greičiau ir be trečiųjų šalių */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --soft: #f1f4f7;
  --text: #17243a;
  --text-2: #435269;
  --muted: #68778d;
  --faint: #8794a8;
  --border: #e7edf2;
  --accent: #149b58;
  --accent-dark: #117849;
  --accent-soft: #e8f7ef;
  --accent-soft-2: #d3efdf;
  --accent-ink: #ffffff;
  --sale: #f45142;
  --radius: 19px;
  --radius-sm: 13px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Antraštė ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-ico {
  width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff; flex: 0 0 auto;
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(22, 163, 74, .2); transition: background .15s;
}
.logo:hover .logo-ico { background: var(--accent-dark); }
.logo-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.logo-txt { display: flex; flex-direction: column; min-width: 0; }
.logo-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.logo-name b { color: var(--accent); font-weight: 800; }
.logo-txt small { font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; gap: 4px; background: rgba(241, 245, 249, .8); padding: 4px; border-radius: var(--radius-sm); }
.main-nav a { padding: 6px 14px; border-radius: 9px; font-size: .875rem; font-weight: 500; color: #475569; text-decoration: none; transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }

.nav-mano {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-dark); border: 1px solid rgba(187, 247, 208, .8);
  font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.nav-mano:hover { background: var(--accent-soft-2); }
.nav-mano .ico { color: var(--accent); width: 16px; height: 16px; }
.watch-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.watch-count[hidden] { display: none; }

@media (max-width: 900px) { .main-nav { display: none; } }
@media (max-width: 640px) {
  .header-inner { height: 56px; gap: 10px; }
  .logo-txt small { display: none; }
  .logo-ico { width: 32px; height: 32px; border-radius: 10px; }
  .logo-name { font-size: 1.02rem; }
  .nav-mano { padding: 7px 11px; font-size: .82rem; }
}
@media (max-width: 380px) { .nav-mano span:not(.watch-count) { display: none; } }

/* ---------- Išdėstymas: kategorijos kairėje, prekės dešinėje ---------- */
main.wrap { padding-top: 22px; }
.layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 22px; padding-block: 0 24px; align-items: start; }
.layout--plain { grid-template-columns: minmax(0, 1fr); }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.sidebox { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 12px 12px; }
.side-h { margin: 0 4px 10px; font-size: 1rem; font-weight: 750; }
.side-promo {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text-2);
  background: linear-gradient(135deg, #e9f8ef, #f6fcf8); border: 1px solid #d9eee2; border-radius: 20px; padding: 18px;
}
.side-promo-ico { font-size: 1.5rem; }
.side-promo b { font-size: 1.02rem; line-height: 1.25; color: var(--text); }
.side-promo span { font-size: .82rem; color: #617187; }
.side-promo .side-promo-btn {
  align-self: flex-start; margin-top: 6px; background: #fff; border: 1px solid var(--accent); color: var(--accent-dark);
  border-radius: 11px; padding: 8px 14px; font-weight: 700; font-size: .85rem;
}
.side-promo:hover .side-promo-btn { background: var(--accent); color: #fff; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .side { position: static; }
  .sidebox { background: none; border: 0; padding: 0; }
  .side-h, .side-promo { display: none; }
}

/* ---------- Paieškos blokas ---------- */
.hero {
  position: relative; margin-bottom: 22px; padding: 26px 32px 20px; /* be overflow:hidden – kitaip apkerpa paieškos pasiūlymus */
  background: linear-gradient(110deg, #fff 0%, #f0fbf5 70%, #e4f6ed 100%);
  border: 1px solid #e4eee8; border-radius: 25px;
}
/* Paveikslėlis dešinėje – pintinė su prekėmis, kairysis kraštas išblunka į foną */
/* Nuotrauka (img/hero-photo.webp 1200 px; ≤1000 px ekranuose – hero-photo-800.webp; Illia Bondar / Unsplash) – dešinėje per visą aukštį, kairysis kraštas išblunka į foną */
.hero::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 63%; pointer-events: none; border-radius: 0 24px 24px 0;
  background: url(/img/hero-photo.webp) right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .6) 20%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .6) 20%, #000 38%);
}
.hero > * { position: relative; z-index: 1; }
.hero > .search { z-index: 5; } /* pasiūlymų sąrašas – virš „Populiaru“ ir tinklų mygtukų */
.hero-title { font-size: 2.1rem; font-weight: 800; line-height: 1.13; letter-spacing: -.04em; margin: 0 0 10px; color: var(--text); }
.hero-title span { color: var(--accent); }
.hero-sub { margin: 0 0 20px; color: #58677c; }
.hero > .search, .hero > .quick, .hero > .chips { max-width: calc(100% - 300px); }
@media (max-width: 1000px) {
  .hero::after { width: 50%; opacity: .35; background-image: url(/img/hero-photo-800.webp); }
  .hero > .search, .hero > .quick, .hero > .chips { max-width: none; }
}
.search {
  position: relative; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #dfe7ed; border-radius: 17px; padding: 5px 6px 5px 0;
  box-shadow: 0 5px 16px rgba(22, 60, 36, .06); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 155, 88, .12); }
.q-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.q-ico { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 96px 12px 46px; font-size: 1rem; color: var(--text);
  background: transparent; border: 0; outline: none;
}
.search input::placeholder { color: var(--faint); }
.search-go {
  flex: 0 0 auto; cursor: pointer; border: 0; border-radius: 13px; padding: 12px 24px;
  background: var(--accent); color: #fff; font-weight: 750; transition: background .15s;
}
.search-go:hover { background: var(--accent-dark); }
.watch-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(187, 247, 208, .9); color: var(--accent-dark); background: var(--accent-soft);
  border-radius: 10px; padding: 6px 12px;
}
.watch-btn:hover { background: var(--accent-soft-2); }
.watch-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.quick { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .75rem; color: var(--muted); }
.quick span { font-weight: 500; margin-right: 4px; }
.quick button { border: 0; cursor: pointer; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--text-2); font-weight: 500; transition: background .15s; }
.quick button:hover { background: rgba(226, 232, 240, .7); }

/* Filtrai */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--stores { margin-top: 20px; padding-bottom: 4px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text-2); transition: border-color .15s, background .15s;
}
.chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); flex: 0 0 auto; }
/* Tinklo logotipas (vietoje spalvoto taškelio) */
.slogo { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; border-radius: 4px; }
.chip[aria-pressed="true"] .slogo { background: #fff; padding: 1px; }
.chip small { font-size: .75rem; padding: 1px 6px; border-radius: 6px; background: var(--soft); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip[aria-pressed="true"] small { background: rgba(255, 255, 255, .2); color: #fff; }

/* Kategorijos: kompiuteryje – stulpelis kairėje, telefone – slenkama eilutė */
.chips--groups { gap: 2px; min-width: 0; }
.chip--group { padding: 6px 12px; font-size: .8rem; border: 0; background: rgba(241, 245, 249, .9); color: var(--text-2); font-weight: 600; }
.chip--group:hover { background: var(--soft); color: var(--text); }
.chip--group small { background: transparent; padding: 0; color: var(--faint); font-size: .75rem; }
.chip--group[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.chip--group[aria-pressed="true"] small { background: transparent; color: var(--accent-dark); }
.g-ico { width: 1.3em; text-align: center; font-size: .95rem; }
@media (min-width: 1001px) {
  .chips--groups { flex-direction: column; overflow: visible; }
  .chip--group { justify-content: flex-start; width: 100%; padding: 10px 10px; background: none; border-radius: 12px; font-weight: 500; text-align: left; }
  .chip--group small { margin-left: auto; }
}
@media (max-width: 1000px) { .chips--groups { gap: 6px; } .chip--group .g-ico { display: none; } }

.tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text-2); transition: all .15s;
}
.toggle:hover { background: #f8fafc; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.toggle:has(input:checked) { background: var(--accent-soft); color: #166534; border-color: #22c55e; }
.toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sort-wrap { position: relative; display: flex; }
.sort-wrap select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 6px 30px 6px 12px; border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
}
.sort-wrap select:hover { border-color: #cbd5e1; }
.sort-wrap select:focus { outline: none; border-color: var(--accent); }
.sort-wrap::after {
  content: ''; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg);
}
.toggle, .sort-wrap select { min-height: 36px; }

/* ---------- Rezultatai ---------- */
.crumbs { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); display: inline-block; padding-block: 4px; }
.results-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 4px; }
.results-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
h1 { font-size: 1.3rem; font-weight: 800; line-height: 1.25; margin: 0; letter-spacing: -.02em; }
@media (max-width: 1000px) { .tools { flex-wrap: wrap; } }
.status {
  margin: 0; font-size: .75rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums;
  background: rgba(226, 232, 240, .8); padding: 2px 10px; border-radius: 999px;
}
.status b { color: var(--text); }
.intro { margin: 4px 0 16px; color: var(--muted); font-size: .8rem; max-width: 90ch; }
.intro b { color: var(--text-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } }

/* ---------- Kortelė ---------- */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 8px rgba(23, 36, 58, .02);
  transition: transform .18s, box-shadow .18s; animation: fadeSlideUp .25s ease-out;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 36, 58, .07); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
/* Viršutinė juosta: tinklas ir nuolaida */
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 40px; padding: 9px 12px 0; }
.store {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 3px 8px 3px 4px; border-radius: 8px; font-size: 12px; font-weight: 750; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 6%, #fff); color: color-mix(in srgb, var(--c) 78%, #000);
  border: 1px solid color-mix(in srgb, var(--c) 20%, #fff);
}
.store .slogo { width: 16px; height: 16px; }
.store i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-left: 4px; }
.badge-pct {
  padding: 5px 9px; border-radius: 10px; font-size: .8rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ff5950, #f36b21);
}
.card-img {
  position: relative; height: 155px; display: flex; align-items: center; justify-content: center; padding: 8px 16px 24px; overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}
.card-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .2s; }
.card-img svg.crop { width: 100%; height: 100%; transition: transform .2s; }
.card:hover .card-img img, .card:hover .card-img svg.crop { transform: scale(1.04); }
.noimg { font-size: 2.8rem; opacity: .35; }
.loyal {
  position: absolute; bottom: 6px; left: 12px; max-width: calc(100% - 24px);
  padding: 2px 7px; border-radius: 7px; font-size: 12px; font-weight: 700;
  background: #fff5cb; color: #8a6616; border: 1px solid #f4e3a1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badge-new { position: absolute; bottom: 6px; right: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 7px; }
.card--new { border-color: #86efac; }

.card-body { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cat { font-size: 12px; font-weight: 500; color: var(--faint); }
.title {
  font-size: .93rem; font-weight: 750; line-height: 1.35; margin: 0; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.note { align-self: flex-start; font-size: 12px; font-weight: 600; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 0 6px; }
.prices { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price { font-size: 1.65rem; font-weight: 850; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.old { font-size: .8rem; font-weight: 500; color: #9aa6b5; font-variant-numeric: tabular-nums; }
.unit { margin-left: auto; font-size: 12px; font-weight: 600; color: #76859a; background: var(--soft); padding: 2px 7px; border-radius: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-foot { margin: 0 14px; padding: 10px 0 12px; border-top: 1px solid #f0f3f6; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.valid { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.valid .ico { width: 14px; height: 14px; stroke-width: 2; }
.valid--ends { color: #ea580c; }
.valid--soon { color: #2563eb; }

@media (max-width: 640px) {
  .card-top { padding: 8px 8px 0; min-height: 36px; }
  .store { font-size: 12px; padding: 2px 6px 2px 3px; }
  .store .slogo { width: 14px; height: 14px; }
  .badge-pct { font-size: .75rem; padding: 4px 7px; }
  .card-img { height: 125px; padding: 6px 10px 22px; }
  .card-body { padding: 10px 10px 6px; gap: 4px; }
  .card-foot { margin: 0 10px; padding: 8px 0 10px; }
  .title { font-size: .85rem; }
  .price { font-size: 1.3rem; }
  .unit { margin-left: 0; }
  .loyal { left: 8px; bottom: 4px; max-width: calc(100% - 16px); }
}

/* ---------- Pirkinių sąrašas: mygtukai kortelėje ---------- */
.list-ctl { flex: 0 0 auto; display: inline-flex; }
.list-add {
  cursor: pointer; border: 0; border-radius: 10px; padding: 6px 11px; font-size: .75rem; font-weight: 700; white-space: nowrap;
  background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(22, 163, 74, .2); transition: background .15s, transform .1s;
}
.list-add:hover { background: var(--accent-dark); }
.list-add:active { transform: scale(.97); }
.list-qty { display: inline-flex; align-items: center; border-radius: 10px; overflow: hidden; background: var(--accent-soft); border: 1px solid #bbf7d0; }
.list-qty button { cursor: pointer; border: 0; background: none; color: var(--accent-dark); font-weight: 800; font-size: .95rem; padding: 3px 10px; line-height: 1.3; }
.list-qty button:hover { background: var(--accent-soft-2); }
.list-qty b { min-width: 18px; text-align: center; font-size: .78rem; font-weight: 800; color: #166534; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .card-foot { flex-wrap: wrap; }
  .list-ctl { flex: 1 1 100%; }
  .list-ctl .list-add, .list-ctl .list-qty { flex: 1; justify-content: space-between; }
  .list-add { padding: 7px 8px; }
}

/* Plaukiojantis „Sąrašas“ mygtukas */
.list-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 16px;
  background: var(--text); color: #fff; font-size: .875rem; font-weight: 700;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25); transition: transform .15s;
}
.list-fab:hover { transform: translateY(-2px); }
.list-fab .ico { width: 18px; height: 18px; color: #4ade80; }
.list-fab-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); display: inline-grid; place-items: center; font-size: .75rem; font-variant-numeric: tabular-nums; }
.list-fab-sum { font-variant-numeric: tabular-nums; opacity: .85; font-weight: 600; }
.list-fab[hidden] { display: none; }
@media (max-width: 640px) {
  .list-fab { left: 16px; right: 16px; bottom: 12px; justify-content: center; }
  .list-fab-sum { margin-left: auto; }
  body { padding-bottom: 64px; }
}

/* Sąrašo langas: kompiuteryje – iš dešinės, telefone – iš apačios */
html.list-open { overflow: hidden; }
.list-drawer { position: fixed; inset: 0; z-index: 60; }
.list-drawer[hidden] { display: none; }
.list-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
.list-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: -10px 0 40px rgba(15, 23, 42, .18); animation: slideIn .2s ease-out;
}
@media (max-width: 640px) {
  .list-panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; animation: slideUp .2s ease-out; }
}
.list-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--soft); background: linear-gradient(90deg, rgba(240, 253, 244, .7), #fff); }
.list-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.list-ico .ico { width: 18px; height: 18px; }
.list-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.list-head small { font-size: 11px; color: var(--muted); }
.list-close { margin-left: auto; cursor: pointer; border: 0; background: none; color: var(--faint); padding: 6px; border-radius: 10px; display: grid; }
.list-close:hover { background: var(--soft); color: var(--text); }
.list-close .ico { width: 20px; height: 20px; }
.list-body { flex: 1; overflow-y: auto; padding: 4px 18px 12px; overscroll-behavior: contain; }
.list-empty { text-align: center; padding: 40px 12px; color: var(--muted); font-size: .85rem; }
.list-empty div { font-size: 2.2rem; }
.list-empty b { display: block; color: var(--text); margin: 6px 0; font-size: .95rem; }
.list-store h3 { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: .82rem; font-weight: 800; }
.list-store h3 i { width: 8px; height: 8px; border-radius: 50%; }
.list-store h3 span { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .75rem; }
.list-store h3 span b { color: var(--text); }
.list-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.list-thumb { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; background: #f8fafc; display: grid; place-items: center; overflow: hidden; }
.list-thumb img, .list-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.list-thumb .noimg { font-size: 1.3rem; }
.list-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.list-info a { font-size: .8rem; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-info a:hover { color: var(--accent-dark); }
.list-info small { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-info small b { color: var(--text); }
.list-info small s { color: var(--faint); }
.list-item--ended { opacity: .55; }
.list-item--ended em { color: #dc2626; font-style: normal; font-weight: 600; }
.list-qty--sm button { padding: 2px 8px; font-size: .85rem; }
.list-remove { cursor: pointer; border: 0; background: none; color: var(--faint); padding: 4px; border-radius: 8px; display: grid; }
.list-remove:hover { color: #dc2626; background: #fef2f2; }
.list-remove .ico { width: 15px; height: 15px; }
.list-foot { padding: 14px 18px 18px; background: #f8fafc; border-top: 1px solid var(--border); }
.list-foot[hidden] { display: none; }
.list-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.list-total small { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.list-total strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.list-saved { text-align: right; }
.list-saved span { display: inline-block; padding: 3px 10px; border-radius: 10px; background: var(--accent-soft-2); color: var(--accent-dark); font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.list-saved s { display: block; margin-top: 3px; font-size: .7rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.list-note { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }
.list-actions { display: flex; gap: 8px; margin-top: 14px; }
.list-copy { flex: 1; cursor: pointer; border: 0; border-radius: 12px; padding: 11px; background: var(--accent); color: #fff; font-weight: 700; font-size: .875rem; }
.list-copy:hover { background: var(--accent-dark); }
.list-clear { cursor: pointer; border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; background: #fff; color: var(--muted); font-weight: 600; font-size: .82rem; }
.list-clear:hover { color: #dc2626; border-color: #fecaca; }

/* Patvirtinimo langas */
.confirm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.confirm-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); animation: fadeIn .15s ease-out; }
.confirm-card {
  position: relative; width: min(360px, 100%); background: var(--surface); border-radius: 20px; padding: 24px 22px 18px;
  text-align: center; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.confirm-ico { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft-2); color: var(--accent-dark); }
.confirm-ico--danger { background: #fef2f2; color: #dc2626; }
.confirm-ico svg { width: 22px; height: 22px; }
.confirm-card h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.confirm-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.confirm-card p:empty { display: none; }
.confirm-actions { display: flex; gap: 8px; margin-top: 20px; }
.confirm-actions button { flex: 1; cursor: pointer; border-radius: 12px; padding: 12px; font: inherit; font-size: .875rem; font-weight: 700; }
.confirm-cancel { border: 1px solid var(--border); background: #fff; color: var(--text-2); }
.confirm-cancel:hover { background: var(--soft); }
.confirm-ok { border: 0; background: var(--accent); color: #fff; }
.confirm-ok:hover { background: var(--accent-dark); }
.confirm-ok--danger { background: #dc2626; }
.confirm-ok--danger:hover { background: #b91c1c; }
.confirm button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 70; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .85rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25); transition: opacity .2s, transform .2s;
}
.toast::before { content: '✓ '; color: #4ade80; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.more-wrap { text-align: center; margin: 24px 0; }
.more {
  cursor: pointer; font-weight: 600; font-size: .875rem; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; padding: 11px 28px; box-shadow: 0 1px 2px rgba(22, 163, 74, .2); transition: background .15s;
}
.more:hover { background: var(--accent-dark); }

/* ---------- Reklama ---------- */
.ad { margin: 12px auto; text-align: center; overflow: hidden; }
.ad--leaderboard { min-height: 90px; }
.ad--sidebar { min-height: 600px; width: 300px; }
.ad--infeed { grid-column: 1 / -1; min-height: 120px; margin: 4px 0; }
.ad--placeholder {
  display: grid; place-items: center; border: 2px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
/* Kol nėra AdSense ID – reklamos vietų nerodome */
html:not(.ads-on) .ad { display: none !important; }
.side .ad--sidebar { width: 100%; min-height: 600px; }

/* ---------- Poraštė ---------- */
.site-footer { background: var(--surface); border-top: 1px solid rgba(226, 232, 240, .8); color: var(--muted); font-size: .8rem; padding: 28px 0 36px; margin-top: 32px; }
.site-footer p { margin: 6px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0; }
.footer-links b { color: var(--text); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Tekstiniai puslapiai ---------- */
.page { max-width: 760px; padding-block: 24px 40px; }
.page-text { max-width: 760px; padding-bottom: 32px; color: var(--text-2); }
.page-text h1 { font-size: 1.6rem; margin: 4px 0 12px; color: var(--text); }
.page-text h2 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--text); }
.page-text a { color: var(--accent-dark); }
.page h1 { font-size: 1.6rem; margin: 0 0 12px; }
.page h2 { font-size: 1.1rem; }
mark { background: #fef9c3; color: inherit; border-radius: 3px; padding: 0 1px; }
.muted { color: var(--muted); font-size: .85rem; }

/* Nuorodų „žetonai“ (temos, leidiniai) */
.seo-links { margin: 8px 0 24px; }
.seo-links h2 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.link-chips a { text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; font-size: .82rem; font-weight: 500; color: var(--text-2); }
.link-chips a:hover { border-color: var(--accent); color: var(--accent-dark); }
.link-chips small { color: var(--faint); }
.content > h2 { font-size: 1.05rem; margin: 22px 0 10px; }

/* ---------- /fb – paruošti Facebook įrašai ---------- */
.fb-post { margin: 24px 0 36px; }
.fb-plan { margin: 8px 0 24px; }
.fb-plan h2 { font-size: 1.05rem; margin: 18px 0 10px; }
.fb-today { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid #cceedd; color: var(--accent-dark); font-weight: 700; }
.fb-tips { margin: 14px 0 0; padding-left: 20px; color: var(--text-2); font-size: .9rem; }
.fb-tips li { margin: 4px 0; }
.fb-row { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 20px; align-items: start; }
.fb-canvas { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(23, 36, 58, .08); background: #fff; }
.fb-side { display: flex; flex-direction: column; gap: 10px; }
.fb-side textarea { width: 100%; font: 13px/1.5 Inter, system-ui, sans-serif; padding: 12px; border: 1px solid var(--border); border-radius: 12px; resize: vertical; background: #fff; color: var(--text); }
@media (max-width: 900px) { .fb-row { grid-template-columns: 1fr; } }

/* ---------- Sekamos prekės (/mano) ---------- */
.watch-form input { flex: 1; }
.watch-suggest { margin: 4px 0 12px; align-items: center; }
.watch-suggest button { cursor: pointer; background: #fff; border: 1px dashed #cbd5e1; border-radius: 999px; padding: 4px 10px; font-size: .82rem; color: var(--text-2); }
.watch-suggest button:hover { border-color: var(--accent); color: var(--accent-dark); }
.watch { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.watch-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.watch-head h2 { font-size: 1.1rem; margin: 0; }
.watch-remove { font-size: .8rem; cursor: pointer; background: none; border: 0; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.watch-remove:hover { color: #dc2626; background: #fef2f2; }
.watch-sum { margin: 6px 0 12px; color: var(--muted); font-size: .9rem; }
.watch-sum b { color: var(--text); }
.grid--watch { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.watch-all { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .875rem; color: var(--accent); text-decoration: none; }
.badge-fresh { font-size: .72rem; background: var(--sale); color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: 3px; }


/* ---------- Pasiūlymai rašant ---------- */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 100%;
  margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}
.suggest li { padding: 8px 10px; border-radius: 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.suggest li:hover, .suggest li.active { background: var(--soft); }
.suggest li b { font-weight: 700; }
.sug-ico { width: 1.2em; text-align: center; }

/* „Panašios akcijos“ skirtukas */
.similar-head { grid-column: 1 / -1; margin: 14px 0 2px; padding-top: 12px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .85rem; }
.similar-head b { color: var(--text); }

/* ---------- Leidinių puslapiai ---------- */
.leaflet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 20px; }
.leaflet-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.leaflet-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
.leaflet-card img { width: 96px; height: 130px; object-fit: cover; border-radius: 10px; background: #fff; flex: 0 0 auto; }
.leaflet-noimg { width: 96px; height: 130px; display: grid; place-items: center; font-size: 2.4rem; background: var(--soft); border-radius: 10px; flex: 0 0 auto; }
.leaflet-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.leaflet-info small { color: var(--muted); }
.leaflet-cta { color: var(--accent); font-weight: 700; font-size: .875rem; margin-top: 4px; }

/* ---------- Savaitės akcijos ---------- */
.wk-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.wk-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .9rem; }
.wk-table th, .wk-table td { padding: 10px 12px; border-bottom: 1px solid var(--soft); text-align: left; vertical-align: top; }
.wk-table thead th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: .78rem; }
.wk-table tbody th { white-space: nowrap; }
.wk-table a { color: inherit; }
.wk-price { white-space: nowrap; text-align: right !important; }
.wk-price b { color: var(--text); font-weight: 800; font-size: 1.05rem; display: block; }
.wk-price small, .wk-alt { color: var(--muted); font-size: .78rem; }
.wk-store { color: #fff; font-size: .66rem; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; margin-left: 4px; white-space: nowrap; }

/* ========== Telefonas ========== */
@media (max-width: 640px) {
  /* Antraštė telefone neprilipusi – viršuje laikome paiešką */
  .site-header { position: static; }
  .wrap > .ad[data-ad-slot-key="top"] { display: none; }
  main.wrap { padding-top: 0; }
  /* Paieškos blokas – baltas per visą plotį (be kortelės), kad paieška galėtų prilipti viršuje */
  .hero {
    padding: 14px 0 12px; margin-bottom: 12px; border: 0; border-radius: 0; overflow: visible;
    background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface), 0 1px 0 100vmax var(--border);
    clip-path: inset(0 -100vmax -1px);
  }
  .hero::after { display: none; }
  .hero--home::after {
    display: block; top: 0; bottom: auto; right: -16px; width: 46%; height: 150px; opacity: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-title { font-size: 1.45rem; max-width: 64%; margin-bottom: 6px; }
  .hero-sub { font-size: .85rem; margin-bottom: 6px; max-width: 62%; }
  body.searching .hero-title, body.searching .hero-sub, body.searching .hero--home::after { display: none; }

  /* Paieškos juosta prilipusi viršuje, kad rezultatai matytųsi virš klaviatūros */
  .search {
    position: sticky; top: 0; z-index: 30; max-width: none;
    margin: 0 -16px; padding: 10px 16px; background: var(--surface);
    border: 0; border-radius: 0; box-shadow: none; flex-wrap: wrap; gap: 8px;
  }
  .search:focus-within { box-shadow: none; }
  .search .q-wrap { flex: 1 1 200px; min-width: 0; } /* pasiūlymai (100%) – visada kitoje eilutėje */
  .search input { font-size: 16px; padding: 11px 80px 11px 40px; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; } /* 16px – kad iPhone nepriartintų */
  .search input:focus { background: #fff; border-color: var(--accent); }
  .search-go { padding: 11px 14px; }
  .q-ico { left: 14px; width: 18px; height: 18px; }
  .watch-btn { font-size: .75rem; padding: 5px 9px; right: 6px; }
  .quick { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 2px -16px 0; padding: 0 16px; }
  .quick::-webkit-scrollbar { display: none; }
  .quick button, .quick span { flex: 0 0 auto; }

  /* Filtrai – slenkamos eilutės iki ekrano krašto, dešinėje švelnus išblukimas */
  .chips {
    margin-inline: -16px; padding-inline: 16px 28px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .chips--stores { margin-top: 12px; }
  .chip { padding: 7px 12px; font-size: .82rem; }
  .chip--group { padding: 7px 11px; font-size: .8rem; }
  .results-head .tools { width: 100%; }

  /* Pasiūlymai – slenkama eilutė po paieška, kad neuždengtų rezultatų */
  .suggest {
    position: static; flex: 1 0 100%; width: auto; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding: 8px 0 0; border: 0; box-shadow: none; background: transparent; border-radius: 0;
  }
  .suggest[hidden] { display: none; }
  .suggest::-webkit-scrollbar { display: none; }
  .suggest li { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .85rem; white-space: nowrap; }

  /* Kai ieškoma – slepiame tai, kas stumia rezultatus žemyn */
  body.searching .crumbs, body.searching h1, body.searching .intro, body.searching .seo-links,
  body.searching .quick { display: none !important; }

  /* Aprašymas – po rezultatais (tekstas lieka puslapyje dėl SEO) */
  body:not([data-page="mano"]) .content { display: flex; flex-direction: column; }
  body:not([data-page="mano"]) .intro { order: 20; margin: 16px 0 4px; }
  body:not([data-page="mano"]) .seo-links { order: 21; }
  .crumbs { font-size: .75rem; }
  h1 { font-size: 1rem; }

  .wk-table th, .wk-table td { padding: 8px; }
  .wk-table tbody th { white-space: normal; }
}
html.list-open .toast { bottom: auto; top: 16px; }
.hist-clear { font: inherit; font-weight: 600; cursor: pointer; border: 0; background: none; padding: 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Kategorijų puslapiai (hub'ai) */
.hub-toc { margin: 4px 0 18px; }
.hub-sec { margin: 26px 0 8px; scroll-margin-top: 80px; }
.hub-sec h2 { font-size: 1.25rem; margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hub-sec h2 a { color: var(--text); text-decoration: none; }
.hub-sec h2 a:hover { color: var(--accent-dark); }
.hub-sec h2 small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.hub-sec .intro { margin: 0 0 12px; }
.hub-more { margin: 12px 0 0; font-weight: 700; }
.hub-more a { color: var(--accent-dark); }
