/* ==========================================================================
   topblat.ro — catalogul (B3): cardul de produs (folosit pe toate paginile), lista de produse (/colectii/, categorii,
   branduri, căutare), filtrele (stânga pe desktop, panou lateral pe telefon), vizualizarea rapidă.
   Aspectul vechiului site (tema MyMedi): grilă de 4 cu linii fine, eticheta rotundă a reducerii, bara gri de deasupra.
   Variabilele de culoare vin din site.css (--tb-verde, --tb-gri, --tb-pret-vechi ...).
   ========================================================================== */

:root { --tb-col-linie: #ececec; }

/* ---------- cardul de produs ---------- */
.tb-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; text-align: left; }
.tb-card__media { position: relative; }
.tb-card__img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: var(--tb-gri); }
.tb-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: opacity .35s ease; }
.tb-card__fara-poza { position: absolute; inset: 0; }
.tb-card__poza2 { display: none; opacity: 0; }
@media (hover: hover) {
    .tb-card__poza2 { display: block; }
    .tb-card:hover .tb-card__poza2 { opacity: 1; }
}
.tb-card__reducere {
    position: absolute; top: 5px; left: 5px; z-index: 2; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--tb-verde); color: #fff; font-size: 12px; line-height: 1; font-weight: 600; pointer-events: none;
}
.tb-card__butoane { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.tb-card__btn {
    position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: #000; box-shadow: 0 2px 10px rgba(15, 23, 42, .14);
    transition: background-color .15s ease, color .15s ease, opacity .2s ease, transform .2s ease;
}
.tb-card__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-card__btn:hover { background: var(--tb-verde); color: #fff; }
.tb-card__fav.is-fav { color: var(--tb-verde); }
.tb-card__fav.is-fav svg path { fill: currentColor; }
.tb-card__fav.is-fav:hover { color: #fff; }
.tb-card__fav.is-puls svg { animation: tbFavPuls .32s ease; }
@keyframes tbFavPuls { 50% { transform: scale(1.28); } }
.tb-card__rapid { opacity: 0; transform: translateY(-4px); }
.tb-card:hover .tb-card__rapid, .tb-card__rapid:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .tb-card__rapid { display: none; } }
.tb-card__tip {
    position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
    padding: 7px 10px; border-radius: 4px; background: #000; color: #fff; font-size: 12px; line-height: 1; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.tb-card__rapid:hover .tb-card__tip, .tb-card__rapid:focus-visible .tb-card__tip { opacity: 1; }
.tb-card__info { display: flex; flex-direction: column; flex: 1 1 auto; padding-top: 20px; }
/* categoria · brandul: dacă nu încap pe un rând, brandul trece dedesubt fără punctul despărțitor (punctul iese în afara marginii) */
.tb-card__meta { margin: 0 0 6px; overflow: hidden; font-size: 12px; line-height: 18px; color: #000; }
.tb-card__meta-in { display: flex; flex-wrap: wrap; margin-left: -14px; }
.tb-card__meta-in > * { position: relative; padding-left: 14px; }
.tb-card__meta-in > * + *::before { content: "·"; position: absolute; left: 5px; top: 0; color: #8a94a3; }
.tb-card__meta a { color: #000; }
.tb-card__meta a:hover { color: var(--tb-verde); }
.tb-card__brand { color: #4b5563; }
.tb-card__titlu { margin: 0 0 10px; min-height: 48px; font-size: 14px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.tb-card__titlu a { color: var(--tb-verde); }
.tb-card__titlu a:hover { color: var(--tb-hover); }
.tb-card__pret { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; font-size: 16px; line-height: 24px; color: var(--tb-verde); }
.tb-card__pret ins { text-decoration: none; }
/* prețul tăiat: ~80% din prețul redus, gri închis (Dan 31.10.2026; înainte 12px, #9babcd) */
.tb-card__pret-vechi { font-size: 13px; color: var(--tb-text-2, #4b5563); }

/* ---------- pagina: titlu, coloana filtrelor + lista ---------- */
.tb-col { padding-bottom: 70px; }
.tb-col__firimituri { padding-bottom: 12px; }
/* capul: H1 + numărul de decoruri (element separat, pe categorii) + introducerea (stil minim, neutru; aspectul îl dă designul) */
.tb-col__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 42px; }
.tb-col__cap:has(+ .tb-col__intro) { margin-bottom: 14px; }
.tb-col__titlu { margin: 0; }
.tb-col__numar { margin: 0; font-size: 16px; line-height: 24px; color: #4b5563; }
.tb-col__intro { max-width: 820px; margin: 0 0 40px; font-size: 16px; line-height: 1.6; }
.tb-col__intro p:last-child { margin-bottom: 0; }
.tb-col__intro a, .tb-col__seo a { text-decoration: underline; text-underline-offset: 2px; }
.tb-col__corp { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 30px; align-items: start; }
.tb-col__principal { min-width: 0; }
.tb-col__gol { margin: 10px 0 0; padding: 18px 22px; border-radius: 4px; background: var(--tb-gri); font-size: 14px; }

/* ---------- filtrele (stânga) ---------- */
.tb-filtre__cap { display: none; }
.tb-filtru { margin: 0 0 40px; }
.tb-filtru--cat { padding-bottom: 50px; border-bottom: 1px solid var(--tb-col-linie); }
.tb-filtru__titlu { margin: 0 0 20px; font-size: 16px; line-height: 26px; font-weight: 700; color: var(--tb-verde); letter-spacing: 0; }
.tb-filtru__categorii { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.tb-filtru__categorii a { color: #000; font-size: 16px; line-height: 26px; font-weight: 500; }
.tb-filtru__categorii a:hover, .tb-filtru__categorii a[aria-current] { color: var(--tb-verde); }
.tb-filtru__categorii a[aria-current] { font-weight: 700; }
.tb-filtru__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 23px; }
.tb-filtru--reducere { display: none; }

/* bifa (filtre, „doar la reducere”) */
.tb-optiune { display: inline-flex; align-items: center; gap: 10px; color: #000; font-size: 14px; line-height: 20px; cursor: pointer; }
.tb-optiune:hover { color: var(--tb-verde); }
.tb-optiune__bifa { position: relative; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 3px; background: #e9ecf3; transition: background-color .15s ease; }
.tb-optiune:hover .tb-optiune__bifa { background: #d6dce8; }
.tb-optiune.is-activ .tb-optiune__bifa { background: var(--tb-verde); }
.tb-optiune.is-activ .tb-optiune__bifa::after {
    content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tb-optiune__nr { font-size: 10px; line-height: 1; color: #000; }

/* prețul: glisor cu două capete + câmpuri */
.tb-pret__glisor { position: relative; height: 22px; margin: 0 8px 20px; }
.tb-pret__sina { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: #d3d8df; }
.tb-pret__sina::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--de, 0%); right: calc(100% - var(--pana, 100%)); background: #000; }
.tb-pret__glisor input[type="range"] {
    position: absolute; top: 0; left: -8px; width: calc(100% + 16px); height: 22px; margin: 0; padding: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none; outline: none;
}
.tb-pret__glisor input[type="range"]::-webkit-slider-runnable-track { height: 22px; background: none; border: 0; }
.tb-pret__glisor input[type="range"]::-moz-range-track { height: 22px; background: none; border: 0; }
.tb-pret__glisor input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 3px;
    border: 0; border-radius: 50%; background: #000; cursor: grab;
}
.tb-pret__glisor input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border: 0; border-radius: 50%; background: #000; cursor: grab; }
.tb-pret__glisor input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(10, 92, 72, .35); }
.tb-pret__glisor input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(10, 92, 72, .35); }
.tb-pret__campuri { display: flex; align-items: center; gap: 10px; }
.tb-pret__camp { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 60px; background: var(--tb-gri); font-size: 14px; cursor: text; }
.tb-pret__camp input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; font-size: 14px; line-height: 20px; outline: none; -moz-appearance: textfield; appearance: textfield; }
.tb-pret__camp input::-webkit-outer-spin-button, .tb-pret__camp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-pret__camp:focus-within { box-shadow: 0 0 0 2px var(--tb-verde); }
.tb-pret__liniuta { flex: 0 0 12px; height: 2px; background: #000; }
.tb-pret__buton { margin-top: 14px; padding: 0; border: 0; background: none; color: #000; font-size: 16px; line-height: 26px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tb-pret__buton:hover { color: var(--tb-verde); }

/* ---------- recomandatele de deasupra listei („Cele mai bine vândute în …”) ---------- */
.tb-recomandate { margin: 0 0 50px; }
.tb-recomandate__cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.tb-recomandate__titlu { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--tb-verde); letter-spacing: 0; }
.tb-recomandate__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.tb-recomandate__sageata {
    width: 36px; height: 36px; padding: 0; border: 1px solid #dfe3e9; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #000;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tb-recomandate__sageata:hover:not(:disabled) { background: var(--tb-verde); border-color: var(--tb-verde); color: #fff; }
.tb-recomandate__sageata:disabled { opacity: .35; cursor: default; }
.tb-recomandate__cutie { border: 2px solid var(--tb-verde); border-radius: 4px; overflow: hidden; }
.tb-recomandate__sina { display: grid; grid-auto-flow: column; grid-auto-columns: 25%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.tb-recomandate__sina::-webkit-scrollbar { display: none; }
.tb-recomandate__el { display: flex; padding: 20px; border-right: 1px solid var(--tb-col-linie); scroll-snap-align: start; }
.tb-recomandate__el > .tb-card { width: 100%; }

/* ---------- filtrele active ---------- */
.tb-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.tb-active__el { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 60px; background: var(--tb-gri); color: #000; font-size: 13px; line-height: 20px; }
.tb-active__el:hover { background: var(--tb-verde); color: #fff; }
.tb-active__toate { color: #000; font-size: 13px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- bara de deasupra produselor ---------- */
.tb-col-bara { position: relative; z-index: 6; display: flex; align-items: stretch; min-height: 50px; margin: 0 0 22px; border-radius: 4px; background: var(--tb-gri); font-size: 12px; line-height: 18px; }
.tb-col-bara__filtre { display: none; }
.tb-col-bara__coloane { display: flex; align-items: center; gap: 17px; padding: 0 30px 0 18px; border-right: 1px solid #dde1e7; }
.tb-col-bara__coloane button { display: flex; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: #9babcd; transition: color .15s ease; }
.tb-col-bara__coloane button:hover, .tb-col-bara__coloane button[aria-pressed="true"] { color: var(--tb-verde); }
.tb-col-bara__reducere { margin-right: auto; padding: 0 30px; font-size: 12px; }
.tb-col-bara__reducere .tb-optiune__bifa { background: #fff; box-shadow: inset 0 0 0 1px #7d8796; }
.tb-col-bara__reducere.is-activ .tb-optiune__bifa { background: var(--tb-verde); box-shadow: none; }
.tb-alege { position: relative; }
.tb-alege > summary {
    display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px;
    list-style: none; cursor: pointer; white-space: nowrap; color: #000; user-select: none;
}
.tb-alege > summary::-webkit-details-marker { display: none; }
.tb-alege > summary::marker { content: ""; }
.tb-alege b { font-weight: 600; }
.tb-alege > summary .tb-i { transition: transform .15s ease; }
.tb-alege[open] > summary .tb-i { transform: rotate(180deg); }
.tb-alege--numar { border-left: 1px solid #dde1e7; }
.tb-alege__lista {
    position: absolute; top: calc(100% + 2px); right: 0; z-index: 30; min-width: 180px; margin: 0; padding: 10px 0;
    list-style: none; background: #fff; border-radius: 4px; box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
}
.tb-alege--sortare .tb-alege__lista { left: 0; right: auto; }
.tb-alege__lista a { display: block; padding: 6px 16px; color: #000; font-size: 12px; line-height: 18px; white-space: nowrap; }
.tb-alege__lista a:hover { color: var(--tb-verde); background: #f7f8fa; }
.tb-alege__lista a[aria-current] { font-weight: 700; }

/* ---------- grila de produse ---------- */
.tb-produse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--tb-col-linie); border-left: 1px solid var(--tb-col-linie); }
.tb-produse > .tb-card { padding: 20px; border-right: 1px solid var(--tb-col-linie); border-bottom: 1px solid var(--tb-col-linie); }
.tb-produse--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-produse--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-produse--c2 .tb-card__titlu { font-size: 16px; line-height: 26px; min-height: 52px; }
.tb-produse--c1 { grid-template-columns: minmax(0, 1fr); }
.tb-produse--c1 > .tb-card { flex-direction: row; align-items: center; gap: 30px; }
.tb-produse--c1 .tb-card__media { flex: 0 0 min(280px, 34%); }
.tb-produse--c1 .tb-card__info { padding-top: 0; }
.tb-produse--c1 .tb-card__titlu { min-height: 0; font-size: 20px; line-height: 30px; }
.tb-produse--c1 .tb-card__pret { margin-top: 4px; font-size: 18px; }
.tb-card.is-nou { animation: tbCardApare .4s ease both; }
@keyframes tbCardApare { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- sub listă: numărul, „Încărcați mai mult”, paginarea ---------- */
.tb-col-jos { padding-top: 36px; text-align: center; }
.tb-col-jos__numar { margin: 0 0 18px; font-size: 14px; line-height: 22px; color: #000; }
.tb-col-jos__mai {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; height: 46px; padding: 0 30px;
    border-radius: 60px; background: #000; color: #fff; font-size: 16px; line-height: 1; font-weight: 600; transition: background-color .18s ease;
}
.tb-col-jos__mai:hover, .tb-col-jos__mai:focus-visible { background: var(--tb-verde); color: #fff; }
.tb-col-jos__mai.is-incarca { pointer-events: none; opacity: .75; }
.tb-col-jos__mai.is-incarca::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: tbRoteste .7s linear infinite; }
@keyframes tbRoteste { to { transform: rotate(360deg); } }
.tb-paginare { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.tb-paginare__nr, .tb-paginare__sageata, .tb-paginare__puncte {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px;
    border-radius: 18px; color: #000; font-size: 14px; line-height: 1;
}
.tb-paginare__nr:hover, .tb-paginare__sageata:hover { background: var(--tb-gri); color: #000; }
.tb-paginare__nr.is-curent, .tb-paginare__nr.is-incarcat { background: var(--tb-verde); color: #fff; }
/* ca pe vechiul site (modul „load-more”): cu JS, pe prima pagină, paginarea nu se vede (rămâne în HTML pentru motoare / fără JS) */
.tb-col-jos.is-js-mai .tb-paginare { display: none; }

/* ---------- textul colecției sub listă (ghid + întrebări frecvente; stil minim, neutru) ---------- */
.tb-col__seo { max-width: 820px; margin: 64px 0 0; font-size: 16px; line-height: 1.65; }
.tb-col__seo h2 { margin: 40px 0 14px; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.tb-col__seo h3 { margin: 26px 0 10px; font-size: 19px; line-height: 1.3; letter-spacing: 0; }
.tb-col__ghid > :first-child { margin-top: 0; }
.tb-col__seo ul { margin: 0 0 1em; padding-left: 1.25em; }
.tb-col__seo li { margin: 0 0 6px; }
/* tabelele: pe ecranele înguste derulează în interiorul cutiei, pagina nu se lățește */
.tb-col__tabel { max-width: 100%; overflow-x: auto; margin: 0 0 1em; -webkit-overflow-scrolling: touch; }
.tb-col__tabel table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.tb-col__tabel th, .tb-col__tabel td { padding: 8px 16px 8px 0; text-align: left; vertical-align: top; }
.tb-col__tabel thead th { font-weight: 700; }
.tb-col__tabel tbody th { font-weight: 600; }
.tb-col__faq { margin-top: 40px; }
.tb-col__intrebare { margin: 0 0 12px; }
.tb-col__intrebare > summary { cursor: pointer; font-weight: 600; }
.tb-col__intrebare > p { margin: 8px 0 0; }

/* ---------- vizualizarea rapidă (fragmentul îl dă GET /tb/rapid/{slug}/) ---------- */
dialog.tb-rapid {
    width: min(1030px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
    padding: 0; border: 0; border-radius: 6px; background: #fff; color: #000; overflow: hidden; box-shadow: var(--tb-umbra, 0 18px 50px rgba(15, 23, 42, .16));
}
dialog.tb-rapid[open] { animation: tbRapidApare .2s ease; }
dialog.tb-rapid::backdrop { background: rgba(0, 0, 0, .55); }
html.tb-rapid-deschis { overflow: hidden; }
@keyframes tbRapidApare { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tb-rapid__x {
    position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #000;
}
.tb-rapid__x:hover { background: var(--tb-gri); }
.tb-rapid__corp { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; overscroll-behavior: contain; }
.tb-rapid__incarc { min-height: 320px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #4b5563; font-size: 14px; }
.tb-rapid__incarc::before { content: ""; width: 22px; height: 22px; border: 2px solid #d9dee5; border-top-color: var(--tb-verde); border-radius: 50%; animation: tbRoteste .7s linear infinite; }
.tb-rapid__eroare { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: 15px; }

/* ==========================================================================
   TELEFON / TABLETĂ
   ========================================================================== */
@media (max-width: 1199px) {
    .tb-col-bara__coloane { padding: 0 20px 0 16px; gap: 14px; }
    .tb-col-bara__reducere { padding: 0 20px; }
    .tb-alege > summary { padding: 0 14px; }
}
@media (max-width: 991px) {
    .tb-col { padding-bottom: 50px; }
    .tb-col__cap { margin-bottom: 26px; }
    .tb-col__intro { margin-bottom: 28px; }
    .tb-col__seo { margin-top: 48px; }
    .tb-col__seo h2 { font-size: 22px; }
    .tb-col__seo h3 { font-size: 18px; }
    .tb-col__corp { grid-template-columns: minmax(0, 1fr); gap: 0; }

    /* filtrele: panou lateral */
    .tb-filtre {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 10001; width: min(380px, 88vw);
        display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 40px rgba(15, 23, 42, .25);
        transform: translateX(-104%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
    }
    .tb-filtre.is-deschis { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
    .tb-filtre__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px 10px 20px; border-bottom: 1px solid var(--tb-col-linie); }
    .tb-filtre__titlu { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--tb-verde); }
    .tb-filtre__x { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: none; color: #000; }
    .tb-filtre__x:hover { background: var(--tb-gri); }
    .tb-filtre__corp { flex: 1 1 auto; overflow-y: auto; padding: 24px 20px calc(30px + env(safe-area-inset-bottom)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .tb-filtru { margin-bottom: 30px; }
    .tb-filtru--cat { padding-bottom: 30px; }
    /* ținte de atingere ≥ 40 px (rândurile și „Filtrează”), cu același pas între rânduri ca înainte */
    .tb-filtru__categorii { gap: 0; }
    .tb-filtru__categorii a { display: block; padding: 7px 0; }
    .tb-filtru__lista { gap: 0; }
    .tb-filtru__lista .tb-optiune { display: flex; min-height: 40px; }
    .tb-filtru--reducere { display: block; }
    .tb-optiune { min-height: 40px; }
    .tb-pret__camp { height: 40px; }
    .tb-pret__camp input { align-self: stretch; height: auto; }
    .tb-pret__buton { display: inline-flex; align-items: center; min-height: 40px; margin-top: 7px; }
    .tb-recomandate__sageata { width: 40px; height: 40px; }
    .tb-filtre-fundal { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .45); }
    html.tb-filtre-deschise { overflow: hidden; }

    .tb-col-bara { margin-bottom: 16px; }
    .tb-col-bara__filtre {
        display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-right: 1px solid #dde1e7;
        background: none; color: #000; font-size: 13px; font-weight: 600; order: -2;
    }
    .tb-col-bara__nr { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--tb-verde); color: #fff; font-size: 11px; line-height: 1; }
    .tb-col-bara__coloane, .tb-col-bara__reducere { display: none; }
    .tb-alege--sortare { margin-left: auto; }
    .tb-alege--sortare .tb-alege__lista { left: auto; right: 0; }
    .tb-alege--numar { order: -1; border-left: 0; border-right: 1px solid #dde1e7; }
    .tb-alege--numar .tb-alege__lista { right: auto; left: 0; }

    .tb-produse, .tb-produse--c1, .tb-produse--c3, .tb-produse--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-produse--c1 > .tb-card { flex-direction: column; align-items: stretch; gap: 0; }
    .tb-produse--c1 .tb-card__media { flex: none; }
    .tb-produse--c1 .tb-card__info { padding-top: 16px; }
    .tb-produse--c1 .tb-card__titlu, .tb-produse--c2 .tb-card__titlu { font-size: 14px; line-height: 22px; min-height: 44px; }
    .tb-produse--c1 .tb-card__pret { font-size: 16px; margin-top: auto; }
    .tb-recomandate__sina { grid-auto-columns: 50%; }
    .tb-recomandate { margin-bottom: 36px; }
    .tb-recomandate__titlu { font-size: 18px; line-height: 26px; }
}
@media (max-width: 991px) and (min-width: 641px) {
    .tb-produse, .tb-produse--c1, .tb-produse--c2, .tb-produse--c4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tb-recomandate__sina { grid-auto-columns: 33.333%; }
}
@media (max-width: 640px) {
    .tb-produse > .tb-card { padding: 14px 12px 16px; }
    .tb-recomandate__el { padding: 14px 12px 16px; }
    .tb-card__info { padding-top: 14px; }
    .tb-card__reducere { width: 42px; height: 42px; font-size: 11px; top: 4px; left: 4px; }
    .tb-card__butoane { top: 6px; right: 6px; }
    .tb-card__btn { width: 32px; height: 32px; }
    /* zona de atingere 44 × 44 px, fără să se schimbe desenul butonului */
    .tb-card__btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
    .tb-card__titlu { font-size: 14px; line-height: 21px; min-height: 42px; margin-bottom: 8px; }
    .tb-card__meta { font-size: 11.5px; line-height: 16px; }
    .tb-card__pret { font-size: 15px; line-height: 22px; gap: 0 6px; }
    .tb-card__pret-vechi { font-size: 12px; }
    .tb-col-bara { font-size: 12px; }
    .tb-col-bara__filtre { padding: 0 12px; }
    .tb-alege > summary { padding: 0 12px; gap: 6px; }
    .tb-alege--sortare .tb-alege__et { display: none; }
    .tb-col-jos { padding-top: 28px; }
    .tb-paginare { gap: 2px; }
    dialog.tb-rapid { width: 100vw; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
    .tb-rapid__corp { max-height: 92vh; max-height: 92dvh; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
    .tb-alege--numar .tb-alege__et { display: none; }
}
@media print {
    .tb-filtre, .tb-col-bara, .tb-col-jos__mai, .tb-card__butoane, .tb-recomandate__nav { display: none !important; }
    .tb-col__corp { grid-template-columns: 1fr; }
}
