
/* Layout: bara de cautare + taburi sus; "Oferte" = filtre in stanga + etichete de pret paginate;
   "Tendinte" = rezumatul zilei, carduri pe magazin cu mini-grafice, liste de miscari de pret */
:root {
  --bg: #f2f3f5; --surface: #ffffff; --surface-2: #f7f8fa; --ink: #15171c; --muted: #5f6573; --line: #dde0e6;
  --tag: #ffd60a; --tag-ink: #15171c; --hot: #d7263d; --good: #1d8a4b; --warn: #b7791f; --bad: #c2362f; --new: #2563eb; --focus: #2f6fed;
  --chart: #2563eb; --chart-fill: rgba(37, 99, 235, .10);
  --m-altex: #d64545; --m-mediagalaxy: #c2255c; --m-flanco: #e07b1a; --m-evomag: #1c7ed6; --m-elefant: #0f8b8d;
  --m-drmax: #2f9e44; --m-farmaciatei: #6741d9; --m-catena: #9c36b5;
  --m-fashiondays: #e64980; --m-epantofi: #845ef7; --m-libris: #a07c2c; --m-mobexpert: #5c7cfa; --m-xiaomi: #ff6900;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #101216; --surface: #191c22; --surface-2: #1f232a; --ink: #eceef2; --muted: #9aa1ae; --line: #2c313a;
  --hot: #ff5a6e; --good: #4cc27f; --warn: #e3a948; --bad: #ff6b62; --new: #6ea0ff; --focus: #7aa2ff;
  --chart: #6ea0ff; --chart-fill: rgba(110, 160, 255, .14); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #101216; --surface: #191c22; --surface-2: #1f232a; --ink: #eceef2; --muted: #9aa1ae; --line: #2c313a;
  --hot: #ff5a6e; --good: #4cc27f; --warn: #e3a948; --bad: #ff6b62; --new: #6ea0ff; --focus: #7aa2ff;
  --chart: #6ea0ff; --chart-fill: rgba(110, 160, 255, .14); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.45 var(--f-body); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: 16px; padding-block: 0 48px; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }

/* bara de sus */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1440px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: .3em; color: inherit; text-decoration: none; }
.logo b { font-weight: 800; }
.logo span { background: var(--tag); color: var(--tag-ink); padding: 0 .3em; border-radius: 4px; }
.logo-m { width: 1.75rem; height: 1.75rem; flex: none; margin-right: .1em; }
.logo:hover span { filter: brightness(.95); }
@media (max-width: 520px) { .logo span { display: none; } }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button, .tabs a { border: 0; background: none; padding: 7px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs button.on, .tabs a.on { background: var(--ink); color: var(--bg); }
/* numele magazinului e link spre pagina lui */
a.store, a.store-h { color: inherit; text-decoration: none; }
a.store:hover, a.store-h:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.search { position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15.5px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--f-num); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.top-act { display: flex; gap: 8px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }

/* starea magazinelor */
.stores { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 0 4px; font-size: 13px; color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 5px; }
.stores { gap: 8px 14px; padding: 8px 0 2px; align-items: center; }
.stores a.st { padding: 0; border: 0; background: none; text-decoration: none; opacity: .75; transition: opacity .15s; }
.stores a.st:hover, .stores a.st.on { opacity: 1; } .stores a.st.vechi { opacity: .4; }
.stores a.st.zero { display: none; }
.stores .stn { font-weight: 600; color: var(--ink); }
.lg { position: relative; display: inline-flex; align-items: center; line-height: 0; } .lg img { height: 46px; width: auto; max-width: 120px; min-width: 46px; object-fit: contain; border-radius: 7px; display: block; background: #fff; border: 1px solid var(--line); padding: 2px; }
.lg .lgn { display: none; } .lg.fara img { display: none; } .lg.fara .lgn { display: inline-block; font-size: 12.5px; line-height: 46px; color: var(--ink); font-weight: 700; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.bd { position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%; font-size: 0; line-height: 0; overflow: hidden; border: 1.5px solid var(--bg); box-sizing: content-box; }
.bd.ok { background: var(--good); } .bd.old { background: var(--bad); }
.stores a.st { opacity: 1; } .stores a.st.vechi { opacity: 1; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.st b { color: var(--ink); font-family: var(--f-num); font-weight: 600; }
.st .old { color: var(--warn); font-weight: 600; }
/* continutul static (pentru motoarele de cautare si pana porneste aplicatia) */
.seo-static { font-size: 14px; line-height: 1.5; }
.seo-static h1 { font: 800 1.4rem/1.2 var(--f-display); margin: 0 0 6px; }
.seo-static p { color: var(--muted); margin: 0 0 10px; }
.seo-static ol { padding-left: 22px; margin: 0 0 14px; }
.seo-static a { color: var(--ink); }
/* magazinele din bara de sus sunt linkuri spre pagina fiecaruia (kito.ro/<cheie>/) */
a.st { color: inherit; text-decoration: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: 0 -6px; }
a.st:hover { border-color: var(--line); background: var(--surface); }
a.st.on { border-color: var(--ink); background: var(--surface); color: var(--ink); }
a.st.inapoi { font-weight: 600; color: var(--ink); }
.canal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 6px 0 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--ink)); border-radius: 10px; }
.canal-head h1 { margin: 0; font: 800 1.4rem/1.1 var(--f-display); }
.canal-head .det { color: var(--muted); font-size: 13px; }
.canal-head a { margin-left: auto; font-size: 13px; color: var(--ink); }

/* urmarite */
.watch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0 14px; }
.watch h2, .sec-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 4px 0 0; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 6px 5px 12px; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip .cnt { font: 600 12px var(--f-num); color: var(--muted); }
.chip .nw { font: 600 11px var(--f-num); background: var(--new); color: #fff; border-radius: 999px; padding: 1px 7px; }
.chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 15px; line-height: 1; }
.chip.add { padding-right: 12px; color: var(--muted); border-style: dashed; }
.watch .hint { font-size: 13px; color: var(--muted); }

/* corp oferte */
.body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 18px; max-height: calc(100vh - 88px); overflow: auto; }
.fg h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.fg-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.fg-h h3 { margin: 0; }
.fg-h .lnk { margin-left: auto; }
.lnk { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lnk:hover { color: var(--ink); }
.lnk + .lnk { margin-left: 0; }
.ck { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.ck input { accent-color: var(--ink); width: 16px; height: 16px; }
.ck .n { margin-left: auto; font: 500 12px var(--f-num); color: var(--muted); }
.rng { display: flex; align-items: center; gap: 10px; }
.rng input { flex: 1; min-width: 0; accent-color: var(--ink); }
.rng output { font: 600 14px var(--f-num); min-width: 3.2em; text-align: right; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters input[type=number], .filters select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.reset { justify-self: start; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }
.res-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.res-head .sum { color: var(--muted); }
.res-head .sum b { color: var(--ink); font-family: var(--f-num); }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ctl select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 11px; cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--bg); }

/* carduri */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; gap: 8px; align-content: start; cursor: pointer; }
.card:hover { border-color: var(--muted); }
.c-top { display: flex; align-items: center; gap: 8px; }
.badge { font: 800 1.2rem/1 var(--f-display); background: var(--tag); color: var(--tag-ink); padding: 7px 8px; border-radius: 6px; }
.badge.hot { background: var(--hot); color: #fff; }
.store { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.scor { margin-left: auto; font: 700 12px var(--f-num); border-radius: 999px; padding: 2px 8px; color: #fff; }
.scor.m { background: var(--good); } .scor.v { background: var(--warn); } .scor.e { background: var(--bad); }
.star { border: 0; background: none; cursor: pointer; font-size: 19px; color: var(--line); padding: 0 2px; line-height: 1; }
.c-top .star { margin-left: 0; }
.c-top .scor + .star { margin-left: 4px; }
.c-top .store + .star { margin-left: auto; }
.star.on { color: var(--warn); }
.c-name { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.c-brand { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.now { font-size: 1.15rem; font-weight: 600; }
.was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.save { color: var(--good); font-size: 12.5px; font-weight: 600; }
.spark { display: block; width: 100%; height: 28px; }
.c-mid { display: flex; gap: 11px; align-items: flex-start; }
.c-mid > div { min-width: 0; flex: 1; display: grid; gap: 6px; }
.thumb { flex: none; width: 84px; height: 84px; border-radius: 8px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
/* caseta "evolutia pretului": e reala reducerea? */
.evo { font-size: 12.5px; line-height: 1.4; border-radius: 8px; padding: 7px 9px; background: var(--surface-2); border-left: 3px solid var(--muted); display: grid; gap: 2px; }
.evo.ok { border-left-color: var(--good); } .evo.warn { border-left-color: var(--warn); } .evo.bad { border-left-color: var(--bad); }
.evo .h { font-weight: 700; } .evo.ok .h { color: var(--good); } .evo.bad .h { color: var(--bad); }
.evo .tip { color: var(--muted); font-size: 11.5px; }
.evo .spark { margin-top: 3px; }
.dlg .pic { justify-self: center; max-width: 100%; max-height: 240px; object-fit: contain; background: #fff; border-radius: 10px; }
.flags { display: flex; flex-wrap: wrap; gap: 5px; }
.fl { font-size: 11.5px; border-radius: 4px; padding: 1px 7px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.fl.nou { background: var(--new); border-color: var(--new); color: #fff; font-weight: 600; }
.fl.down { color: var(--good); border-color: currentColor; font-weight: 600; }
.fl.up { color: var(--bad); border-color: currentColor; font-weight: 600; }
.fl.min { background: var(--good); border-color: var(--good); color: #fff; font-weight: 600; }
.fl.out { color: var(--bad); border-color: currentColor; }
.ai { font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; color: var(--muted); }
.vd { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; }
.vd.m { background: var(--good); } .vd.v { background: var(--warn); } .vd.e { background: var(--bad); }

/* tabel */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
td.r { font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }

/* paginatie */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; }
.pager button { min-width: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-family: var(--f-num); }
.pager button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 2px; }
.pager .info { width: 100%; text-align: center; font-size: 13px; color: var(--muted); }
/* pagina "Top recomandări": primele 3 recomandari de la fiecare magazin */
.top-intro { margin: 10px 0 4px; } .top-intro h1 { font: 800 1.5rem/1.2 var(--f-display); margin: 0 0 6px; } .top-intro p { color: var(--muted); margin: 0 0 10px; max-width: 80ch; }
.top-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; } .top-nav a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ink); text-decoration: none; } .top-nav a:hover { border-color: var(--muted); }
.top-shop { margin: 22px 0 8px; scroll-margin-top: 80px; } .top-shop > h2 { display: flex; align-items: center; gap: 8px; font: 800 1.2rem/1.2 var(--f-display); margin: 0 0 10px; } .top-shop > h2 a { color: inherit; text-decoration: none; } .top-shop > h2 a:hover { text-decoration: underline; }
.top-shop > h2 .more { margin-left: auto; font: 600 13px var(--f-body); color: var(--muted); } .top-shop .none { color: var(--muted); margin: 0; padding: 10px 0; }
.site-foot { border-top: 1px solid var(--line); margin-top: 34px; padding: 18px 16px; color: var(--muted); font-size: 13px; } .site-foot div { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.site-foot a { color: var(--muted); } .site-foot a:hover { color: var(--ink); } .site-foot button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
a.pname { color: inherit; text-decoration: none; } a.pname:hover { text-decoration: underline; text-underline-offset: 2px; }
.sg { flex: none; border-radius: 8px; display: block; } .store .sg { border-radius: 5px; } .canal-head .sg { align-self: center; }
.card.lnk { position: relative; cursor: pointer; } .card.lnk a.pname::after { content: ""; position: absolute; inset: 0; border-radius: 12px; } .card.lnk:hover { border-color: var(--muted); }
.rank { background: var(--ink); color: var(--bg); border-radius: 6px; padding: 0 7px; font: 700 12px/20px var(--f-num); }
.top-link { display: inline-block; font-weight: 600; color: var(--ink); } .card.static { cursor: default; }
/* pagina Categorii: iconite mari, o plăcuță pe categorie */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin: 14px 0 24px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; text-align: center; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.cat-tile .ic { font-size: 2.6rem; line-height: 1.1; } .cat-tile b { font: 700 .98rem/1.25 var(--f-display); } .cat-tile .n { color: var(--muted); font-size: 12.5px; } .cat-tile .mx { font: 700 11.5px var(--f-num); background: var(--tag); color: var(--tag-ink); border-radius: 999px; padding: 1px 8px; margin-top: 2px; }
/* bannere publicitare (b/banner.js, administrate din kito.ro/admin/) */
.ad-slot { margin: 10px 0; text-align: center; } .ad-eticheta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ad-lista { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .ad-lista a { display: block; max-width: 100%; } .ad-lista img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.ad-lat .ad-lista { flex-direction: column; }
/* pagina Surse: tabel cu data ultimului import (rosu = nu e de azi) */
table.surse { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } table.surse th, table.surse td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.surse th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); } table.surse td.n, table.surse th.n { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
table.surse td.mag a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; } table.surse td.mag a:hover { text-decoration: underline; } table.surse .lg img { height: 36px; min-width: 36px; }
table.surse tr.old td.data, table.surse tr.old .stare { color: var(--bad); font-weight: 700; } table.surse tr.ok .stare { color: var(--good); font-weight: 700; } table.surse tr.old { background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.surse-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 14px; font-size: 14px; } .surse-sum b { font-family: var(--f-num); } .surse-sum .r { color: var(--bad); } .surse-sum .v { color: var(--good); }
@media (max-width: 720px) { table.surse th, table.surse td { padding: 8px 8px; font-size: 13px; } table.surse .hide-m { display: none; } .lg img { height: 42px; min-width: 42px; } }
/* subsol comun (acelasi pe toate paginile) */
.site-foot { border-top: 1px solid var(--line); margin-top: 34px; padding: 18px 16px 26px; color: var(--muted); font-size: 13px; display: grid; gap: 10px; }
.site-foot .sf-links, .site-foot .sf-note { max-width: 1440px; margin: 0 auto; width: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-foot a { color: var(--muted); } .site-foot a:hover { color: var(--ink); } .site-foot button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.site-foot .sf-note { font-size: 12.5px; opacity: .9; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty b { color: var(--ink); }

/* tendinte */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi .v { font: 700 1.6rem/1.1 var(--f-num); }
.kpi .t { font-size: 12.5px; color: var(--muted); }
.kpi.g .v { color: var(--good); } .kpi.b .v { color: var(--bad); } .kpi.n .v { color: var(--new); }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 10px 0 26px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; gap: 8px; }
.scard h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.scard .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.scard .row b { color: var(--ink); font-family: var(--f-num); }
.scard .mini { display: flex; flex-wrap: wrap; gap: 5px; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.lst { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lst h3 { margin: 0 0 8px; font-size: 14px; }
.lst ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.lst li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.lst li:hover { background: var(--surface-2); }
.lst li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lst li .dl { font-family: var(--f-num); white-space: nowrap; }
.lst .none { color: var(--muted); font-size: 13px; padding: 6px 4px; }
.note { font-size: 13px; color: var(--muted); max-width: 75ch; }

/* fereastra produs */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--surface); color: var(--ink); width: min(680px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 12, 16, .5); }
.dlg { padding: 18px; display: grid; gap: 12px; }
.dlg h2 { margin: 0; font-size: 17px; line-height: 1.3; padding-right: 30px; }
.dlg .close { position: absolute; right: 10px; top: 10px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.dlg .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dlg .fact { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.dlg .fact .t { font-size: 11.5px; color: var(--muted); }
.dlg .fact .v { font: 600 15px var(--f-num); }
.chart { width: 100%; height: 190px; display: block; }
.chart text { fill: var(--muted); font: 11px var(--f-num); }
.dlg .go { justify-self: start; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--tag); }

.nodata { max-width: 640px; margin: 60px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.mobile-f { display: none; }
[hidden] { display: none !important; }
@media (max-width: 960px) {
  .top-in { grid-template-columns: auto 1fr auto; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .tabs { justify-self: start; }
  .body { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: grid; }
  .mobile-f { display: inline-block; }
}
.f-mob-head { display: none; }
/* ---------- MOBIL (telefon): antet compact, bara de magazine si taburile derulabile, carduri compacte, filtre pe tot ecranul ---------- */
@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; overflow-x: hidden; }
  body:has(.filters.open) { overflow: hidden; }
  .wrap { padding-inline: 12px; padding-bottom: 32px; }
  .top { position: static; }
  .top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; }
  .logo { order: 1; font-size: 1.15rem; } .logo span { display: none; } .logo-m { width: 1.55rem; height: 1.55rem; }
  .top-act { order: 2; margin-left: auto; }
  .search { order: 3; flex: 1 1 100%; } .search kbd { display: none; }
  .search input { font-size: 16px; padding: 9px 12px 9px 38px; }
  .tabs { order: 4; flex: 1 1 100%; display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar, .stores::-webkit-scrollbar, .top-nav::-webkit-scrollbar { display: none; }
  .tabs { padding: 2px; } .tabs a, .tabs button { flex: 0 0 auto; padding: 7px 12px; white-space: nowrap; }
  .btn { padding: 9px 13px; }
  .stores { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 14px; margin-inline: -12px; padding: 8px 12px; }
  .stores a.st { flex: none; }
  .canal-head { padding: 10px 12px; gap: 4px 10px; } .canal-head h1 { font-size: 1.15rem; } .canal-head a { margin-left: 0; width: 100%; }
  .watch { padding: 6px 0 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .watch .chip, .watch h2, .watch .hint { flex: none; }
  .res-head { display: grid; gap: 8px; }
  .res-head .ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .res-head .ctl select { width: 100%; padding: 9px 8px; font-size: 14px; } .res-head .ctl .seg { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { padding: 11px; gap: 7px; }
  .badge { font-size: 1.05rem; padding: 5px 7px; }
  .thumb { width: 74px; height: 74px; }
  .c-name { font-size: 15px; line-height: 1.3; word-break: break-word; }
  .now { font-size: 1.1rem; }
  .evo { font-size: 12px; padding: 6px 8px; } .evo .spark { height: 22px; }
  .ai { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .flags { gap: 4px; } .fl { font-size: 11px; padding: 1px 6px; }
  /* filtrele: ecran intreg, cu bara lipita sus si buton mare de inchidere */
  .filters.open { position: fixed; inset: 0; z-index: 40; max-height: none; border-radius: 0; border: 0; overflow-y: auto; padding: 0 14px 90px; gap: 16px; background: var(--bg); -webkit-overflow-scrolling: touch; }
  .filters.open .f-mob-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line); margin-inline: -14px; padding-inline: 14px; }
  .filters.open .f-mob-head b { font: 800 1.2rem var(--f-display); } .filters.open .f-mob-head .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .filters input[type=number], .filters select, .filters input[list] { font-size: 16px; padding: 10px; }
  .ck { padding: 7px 0; } .ck input { width: 20px; height: 20px; }
  .pager { gap: 5px; } .pager button { min-width: 36px; padding: 9px 8px; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -12px; padding-inline: 12px; } table { font-size: 13px; }
  .top-intro h1 { font-size: 1.25rem; }
  .top-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 0 12px 4px; } .top-nav a { flex: none; }
  .top-shop > h2 { font-size: 1.05rem; flex-wrap: wrap; } .top-shop > h2 .more { margin-left: 0; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat-tile { padding: 14px 8px 12px; } .cat-tile .ic { font-size: 2.1rem; } .cat-tile b { font-size: .9rem; }
  dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .dlg { padding: 14px; } .dlg .facts { grid-template-columns: 1fr 1fr; }
  .ad-slot { margin: 8px 0; }
}
@media (max-width: 380px) { .badge { font-size: 1rem; } .thumb { width: 64px; height: 64px; } .cat-tile b { font-size: .85rem; } }
@media (prefers-reduced-motion: no-preference) { .card { transition: border-color .15s; } }
.top-act a.btn{text-decoration:none;color:inherit}
.top-act a.btn.in{border-color:#ffd60a}
.top-act a.btn:not(.in) { background: #ffd60a; color: #15171c; border-color: #ffd60a; font-weight: 700; animation: kpulse 2.4s ease-out infinite; }
@keyframes kpulse { 0% { box-shadow: 0 0 0 0 rgba(255,214,10,.65); } 70% { box-shadow: 0 0 0 10px rgba(255,214,10,0); } 100% { box-shadow: 0 0 0 0 rgba(255,214,10,0); } }
@media (prefers-reduced-motion: reduce) { .top-act a.btn:not(.in) { animation: none; } }
.top-act a.btn.in .lgx { display: none; }
.ad-jos { margin: 22px 0 10px; } .ad-jos .ad-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .ad-jos .ad-lista a { width: 100%; } .ad-jos .ad-lista a:only-child { grid-column: 1 / -1; justify-self: center; max-width: 760px; } .ad-jos .ad-lista img { width: 100%; min-height: 110px; object-fit: cover; border-radius: 12px; }
@media (max-width: 720px) { .ad-jos .ad-lista { grid-template-columns: 1fr; gap: 10px; } .ad-jos .ad-lista img { min-height: 90px; } }
.canal-head.sr { position: absolute !important; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stores a.st.on .lg img, .stores a.st.on .lg.fara .lgn { box-shadow: 0 0 0 2px #ffd60a, 0 0 0 4px var(--ink); }
.stores a.st.on .lg { z-index: 1; }
/* Reguli suplimentare pentru paginile de produs si cele statice. Se adauga la stilurile paginii principale (vezi stil.css, generat de genereaza-pagina.ps1). */
.crumbs { font-size: 13px; color: var(--muted); margin: 14px 0 8px; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 4px; }
.pmain { min-width: 0; } .pmain h1 { font: 800 1.55rem/1.2 var(--f-display); margin: 4px 0 8px; } .pmain h2, .prel h2, .pside h2 { font: 800 1.12rem/1.25 var(--f-display); margin: 22px 0 8px; }
.pside { position: sticky; top: 78px; display: grid; gap: 14px; } .pside h2 { margin: 0 0 8px; font-size: 1rem; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .pside { position: static; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.hero { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px; align-items: start; } @media (max-width: 640px) { .hero { grid-template-columns: 1fr; } }
.pic { width: 100%; max-height: 280px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.brand { color: var(--muted); font-size: 13px; }
.pprices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 8px 0; } .pnow { font: 700 2rem/1 var(--f-num); } .pwas { color: var(--muted); text-decoration: line-through; font-family: var(--f-num); }
.pbadge { background: var(--hot); color: #fff; border-radius: 6px; padding: 3px 9px; font: 800 1.05rem var(--f-display); } .psave { color: var(--good); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); }
.chip.ok { color: var(--good); border-color: var(--good); } .chip.no { color: var(--bad); border-color: var(--bad); }
.verdict { border-left: 4px solid var(--line); padding: 10px 14px; margin: 14px 0; background: var(--surface-2); border-radius: 0 10px 10px 0; }
.verdict.m { border-color: var(--good); } .verdict.v { border-color: var(--warn); } .verdict.e { border-color: var(--bad); }
.verdict b.m { color: var(--good); } .verdict b.v { color: var(--warn); } .verdict b.e { color: var(--bad); }
.go { display: inline-block; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 9px; font-weight: 700; text-decoration: none; margin-top: 6px; } .go:hover { opacity: .9; }
.pfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; } .pfact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.pfact .t { font-size: 12px; color: var(--muted); } .pfact .v { font: 600 1.05rem var(--f-num); }
svg.chart { width: 100%; height: auto; display: block; } .chart .ax { stroke: var(--line); } .chart .ln { fill: none; stroke: var(--chart); stroke-width: 2.2; } .chart text { fill: var(--muted); font: 11px var(--f-num); }
table.ist { width: 100%; border-collapse: collapse; font-size: 14px; } table.ist th, table.ist td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; } table.ist td.r, table.ist th.r { text-align: right; font-family: var(--f-num); }
.note { color: var(--muted); font-size: 13px; } .prose p, .prose li { max-width: 75ch; } .prose h2 { margin-top: 26px; }
/* zone de reclama (loc rezervat; reclamele reale se incarca doar dupa acordul pentru "Publicitate si afiliere") */
.ad { border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; text-align: center; font-size: 12px; padding: 10px; }
.ad.s { min-height: 250px; } .ad.w { min-height: 90px; margin: 18px 0; } .ad b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
/* liste scurte din sidebar */
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .mini a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; text-decoration: none; color: inherit; align-items: center; } .mini a:hover .t { text-decoration: underline; }
.mini img, .mini .ph { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mini .t { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .mini .s { display: block; font: 600 12px var(--f-num); color: var(--muted); margin-top: 2px; }
.navbox a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 14px; } .navbox a:hover { text-decoration: underline; }
.prel { margin-top: 26px; } .prel .grid { margin-top: 10px; }

.shopbar { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; } .shopbar:hover { border-color: var(--muted); } .shopbar b { display: block; font-size: 15px; line-height: 1.2; } .shopbar small { display: block; color: var(--muted); font-size: 12px; }
.sg { flex: none; border-radius: 8px; display: block; } .store .sg { border-radius: 5px; }
.prel .more { margin: 12px 0 0; font-size: 14px; } .prel .more a { color: var(--ink); font-weight: 600; }
