/* Lista de produse pe Bootstrap 5 (views/view_lista_piese_v2.php). Mobil intai:
   o coloana, filtrele intr-un sertar (offcanvas-lg); de la lg bara laterala in
   stanga si grila de 2-3 produse. Aceleasi culori ca prima pagina (ae-home.css).
   Clase proprii: prefix l-. */
.l { --lb: #007ce3; --lbi: #005bb0; --ln: #0c1d2e; --lm: #5b6b7c; --ll: #dbe2ea; --ls: #eef3f8; --lx: #ff5a1f;
  background: #f6f8fb; padding-bottom: 40px; }
.l .ico { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }
.l h1, .l h2 { font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }

/* firimituri: pe telefon un singur rand, derulabil, fara sa rupa pagina */
.l-crumbs { padding-top: 12px; }
.l-crumbs .breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 13px; margin-bottom: 10px; }
.l-crumbs .breadcrumb::-webkit-scrollbar { display: none; }
.l-crumbs .breadcrumb-item { flex: none; }  /* altfel se comprima si "/" se lipeste de text */
.l-crumbs a { color: var(--lm); }
.l-crumbs a:hover { color: var(--lb); }
.l-crumbs .active { color: var(--ln); font-weight: 600; }
@media (min-width: 992px) { .l-crumbs .breadcrumb { flex-wrap: wrap; white-space: normal; } }

/* antetul listei: H1, raspunsul scurt (primul paragraf din textul SEO) */
.l-head h1 { font-size: clamp(1.15rem, 3.4vw, 1.5rem); font-weight: 750; line-height: 1.2; margin: 0 0 6px; }
.l-intro { font-size: 14px; line-height: 1.55; color: #34475a; margin-bottom: 12px; max-width: 760px; }
.l-intro p { display: inline; margin: 0; }
.l-intro a { font-weight: 600; white-space: nowrap; }
.l-count { color: var(--lm); font-size: 14px; margin: 0 0 10px; }
.l-count b { color: var(--ln); }
.l-alert { border-radius: 12px; }

/* garajul (telefon, cu masina) si "Alege masina ta" (telefon, fara masina) */
.l-garaj { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #cfe3f6; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.l-garaj > .ico { font-size: 20px; color: var(--lb); }
.l-garaj span { min-width: 0; }
.l-garaj b { font-weight: 700; }
.l-garaj button { margin-left: auto; border: 0; background: none; color: var(--lb); font-weight: 650; padding: 4px 0 4px 8px; }
.l-alege { background: #e6f2fc; border: 1px solid #bcdcf6; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.l-alege-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.l-alege-t .ico { font-size: 22px; color: var(--lb); }
.l-alege p { font-size: 13px; color: #3d5167; margin: 4px 0 10px; }
/* conturat, ca "Adauga in cos" sa ramana singurele butoane pline (brief) */
.l-alege .btn { --bs-btn-bg: #fff; height: 44px; border-radius: 10px; border-width: 1.5px; font-weight: 650; }

/* bara: "Filtre" (telefon) + sortare, ca doua pastile */
.l-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.l-pill { background-color: #fff; border: 1px solid #cfd8e2; border-radius: 10px; height: 42px; font-size: 14px; font-weight: 600; color: var(--ln); }
.l-bar > .l-pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.l-bar > .l-pill:hover { border-color: var(--lb); color: var(--ln); }
.l-bar .badge { border-radius: 999px; }
.l-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.l-sort label { font-size: 13px; color: var(--lm); white-space: nowrap; }
@media (max-width: 991.98px) {
  .l-sort { flex: 1; }
  .l-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .l-sort .form-select { width: 100%; }
}
@media (min-width: 992px) { .l-sort .form-select { min-width: 190px; } }

/* filtrele aplicate */
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.l-chip { display: inline-flex; align-items: center; gap: 6px; background: #e6f2fc; color: #0a4f91; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.l-chip .ico { font-size: 11px; }
.l-chip:hover { background: #cfe5fa; color: #0a4f91; }
.l-chip-all { align-self: center; font-size: 13px; font-weight: 600; color: var(--lb); text-decoration: underline; }
.l-elf { margin-bottom: 14px; }
.l-elf:empty { margin: 0; }

/* bara laterala: casete */
.l-box { background: #fff; border: 1px solid var(--ll); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.l-box-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; margin: 0 0 10px; font-stretch: 100%; }
.l-box-t .ico { color: var(--lb); }
.l-side .offcanvas-body { flex-direction: column; }
@media (max-width: 991.98px) {
  .l-side { --bs-offcanvas-width: min(360px, 88vw); background: #f6f8fb; }
  .l-side .offcanvas-header { background: #fff; border-bottom: 1px solid var(--ll); }
  .l-side .offcanvas-title { font-size: 18px; font-weight: 800; margin: 0; }
}

/* caseta "Masina ta" (desktop, cu masina): acelasi albastru ca masina aleasa de
   pe prima pagina (.h-current) -- singura caseta care schimba CE piese vezi */
.l-car { background: #eaf4ff; border-color: #c4e0fb; }
/* prin variabila butonului, nu cu background-color: o regula directa bate si
   starea de hover, iar acolo Bootstrap face textul alb -- alb pe alb */
.l-car .btn { --bs-btn-bg: #fff; }
.l-car-head { display: flex; align-items: center; gap: 12px; }
.l-car-head img { width: 96px; height: 60px; object-fit: contain; flex: none; }
.l-car-head div { min-width: 0; }
.l-car-head b { display: block; font-size: 15px; line-height: 1.25; }
.l-car-head span { display: block; font-size: 13px; color: #4a5d70; }
.l-car-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.l-car-act .btn { border-radius: 8px; }
.l-car-x { font-size: 13px; color: var(--lm); margin-left: auto; text-decoration: underline; }
.l-garage { border-top: 1px dashed #c4e0fb; margin-top: 12px; padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.l-garage small { color: var(--lm); font-size: 12px; }
.l-garage a { color: var(--ln); font-weight: 600; }

/* selectorul de masina: pe desktop caseta deschisa in bara laterala, pe telefon
   panou de jos (brief). Un singur exemplar in pagina. */
.l-sheet { background: #eaf4ff; border: 1px solid #c4e0fb; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.l-sheet-h { display: flex; align-items: center; justify-content: space-between; }
.l-sheet-h .l-box-t { margin: 0; }
.l-sheet-h .btn-close, .l-handle { display: none; }
.l-sheet-p { font-size: 13px; color: #4a5d70; margin: 4px 0 10px; }
.l-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 8px; }
.l-sn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #cfd8e2; color: #fff; }
.l-step.l-ready .l-sn { background: var(--lb); }
.l-step.l-done .l-sn { background: #0f7a3d; }
.l-sheet .form-select { height: 40px; border-radius: 10px; font-size: 14px; background-color: #fff; }
.l-sheet .form-select:disabled { background-color: #f4f7fa; color: #9aa7b4; }
.l-go { width: 100%; height: 44px; border-radius: 10px; font-weight: 650; margin-top: 4px; }
.l-msg { font-size: 13px; color: var(--lm); margin: 8px 0 0; }
.l-msg:empty { display: none; }
@media (min-width: 992px) {
  .l-sheet.l-sheet-ascuns { display: none; }
}
@media (max-width: 991.98px) {
  .l-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1046; margin: 0; border: 0; border-radius: 18px 18px 0 0;
    background: #fff; padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); max-height: 90vh; overflow-y: auto;
    transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; box-shadow: 0 -12px 40px rgba(10,20,35,.25); }
  .l-sheet.show { transform: none; visibility: visible; transition: transform .25s ease; }
  .l-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: #cfd8e2; position: absolute; left: 50%; top: 6px; transform: translateX(-50%); }
  .l-sheet-h { padding-top: 8px; }
  .l-sheet-h .btn-close { display: block; }
  .l-sheet .form-select { height: 44px; font-size: 16px; }   /* 16px: iOS nu mai mareste pagina la focus */
  .l-go { height: 48px; font-size: 16px; }
}

/* listele de filtre */
.l-find { border-radius: 8px; margin-bottom: 8px; }
.l-opts { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.l-opts a, .l-opts .l-off { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; color: var(--ln); font-size: 14px; line-height: 1.3; }
.l-opts a:hover { background: var(--ls); }
.l-opts a[aria-current] { font-weight: 700; color: var(--lbi); }
.l-opts .l-off { color: #9aa7b4; }
.l-fgrp summary { cursor: pointer; list-style: none; justify-content: space-between; margin: 0; }
.l-fgrp summary::-webkit-details-marker { display: none; }
.l-fgrp summary::after { content: ""; width: 8px; height: 8px; border: solid var(--lm); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.l-fgrp[open] summary { margin-bottom: 10px; }
.l-fgrp[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.l-box-ck { width: 18px; height: 18px; flex: none; border: 1.5px solid #b8c4d0; border-radius: 5px; background: #fff; position: relative; }
.l-chk a[aria-current] .l-box-ck { background: var(--lb); border-color: var(--lb); }
.l-chk a[aria-current] .l-box-ck::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.l-ot { flex: 1; min-width: 0; }
.l-n { color: var(--lm); font-size: 12px; font-variant-numeric: tabular-nums; }
.l-hid { display: none !important; }

/* ajutor */
.l-help p { font-size: 13px; color: var(--lm); margin: -4px 0 8px; }
.l-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--ln); }
.l-help .btn { border-radius: 8px; }

/* grila de produse: o coloana pe telefon, 2 de la sm, 3 de la xl */
.l-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 576px) { .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .l-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* cardul (brief "Card produs AutoEco"): pe telefon poza 104px langa informatii,
   apoi pretul pe randul lui si butonul pe toata latimea */
.l-card { position: relative; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 12px;
  display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "img info" "pb pb" "add add"; gap: 12px;
  transition: box-shadow .15s, border-color .15s; }
.l-card:hover { border-color: #c4d3e2; box-shadow: 0 12px 28px -18px rgba(12,29,46,.45); }
.l-img { grid-area: img; display: block; align-self: start; width: 104px; height: 104px; border: 1px solid #eef1f5; border-radius: 8px; overflow: hidden; background: #fff; }
.l-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* badge-ul de reducere sta in coltul CARDULUI, nu al pozei: pe coloane poza e
   centrata, deci coltul ei cade spre mijlocul cardului */
.l-pct { position: absolute; left: 18px; top: 18px; z-index: 1; pointer-events: none; background: #d92d20; color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.l-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.l-brand { font-size: 12px; font-weight: 650; color: var(--lm); text-transform: uppercase; letter-spacing: .02em; }
.l-name { font-size: 15px; font-weight: 650; line-height: 1.3; margin: 0; font-stretch: 100%; letter-spacing: 0; }
.l-name a { color: var(--ln); }
/* tot cardul e tinta de click, fara sa invelim totul intr-un <a> */
.l-name a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.l-name a:hover { color: var(--lb); }
.l-logo { display: block; width: 70px; height: 30px; object-fit: contain; object-position: left center; }
/* caracteristicile: tabel mic, cate un rand pe criteriu -- randuri alternate
   si linie intre ele, denumirea la stanga, valoarea la dreapta */
.l-par { margin: 4px 0 0; font-size: 12px; border: 1px solid var(--ls); border-radius: 8px; overflow: hidden; }
.l-par div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; padding: 4px 8px; }
.l-par div + div { border-top: 1px solid var(--ls); }
.l-par div:nth-child(odd) { background: #f7f9fb; }
.l-par dt { font-weight: 400; color: var(--lm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.l-par dd { margin: 0; font-weight: 600; white-space: nowrap; text-align: right; flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.l-tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.l-tags li { display: inline-flex; align-items: center; gap: 4px; background: var(--ls); border-radius: 999px; padding: 2px 8px; color: var(--ln); }
.l-tags a { position: relative; z-index: 1; color: inherit; }

/* filtrul de sezon la anvelope: culorile selectorului de masina (.l-sheet),
   sezoanele ca butoane, cel al paginii curente plin */
.l-sezon { background: #eaf4ff; border: 1px solid #c4e0fb; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.l-sezon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.l-sezon a { display: block; background: #fff; border: 1px solid #c4e0fb; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ln); }
.l-sezon a:hover { border-color: var(--lb); color: var(--lbi); }
.l-sezon a[aria-current] { background: var(--lb); border-color: var(--lb); color: #fff; }
.l-sezon-sus { padding: 12px; margin-bottom: 12px; }
.l-sezon-sus .l-box-t { margin-bottom: 8px; }
.l-sezon-sus ul { flex-direction: row; }
.l-sezon-sus li { flex: 1; }
.l-sezon-sus a { text-align: center; padding: 8px 4px; font-size: 13px; }

/* accesorii: fara poza, amperajul bateriei, nota de la baterii */
.l-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ls); color: #9aa7b4; font-size: 34px; }
.l-amp { position: absolute; left: 18px; top: 18px; z-index: 1; pointer-events: none; background: var(--lb); color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.l-amp.l-amp-jos { top: 42px; }
.l-nota { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #d92d20; }
@media (min-width: 576px) { .l-pct, .l-amp { left: 20px; top: 20px; } .l-amp.l-amp-jos { top: 44px; } }

/* pretul: mare, imediat sub informatii; reducerea langa el */
.l-pb { grid-area: pb; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid #eceff3; padding-top: 12px; }
.l-price { font-size: 30px; font-weight: 750; line-height: 1; color: var(--ln); font-variant-numeric: tabular-nums; }
.l-price small { font-size: 15px; font-weight: 650; margin-left: 3px; }
.l-price.l-sale { color: #d92d20; }
/* pretul taiat si "Economisesti" stau impreuna, pe un singur rand: pe trei
   coloane nu incap langa un pret de 3-4 cifre, deci trec AMANDOUA sub el, nu se
   despart */
.l-red { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.l-old { font-size: 14px; color: #8a98a8; }
.l-save { font-size: 12px; font-weight: 600; color: #d92d20; background: #fdecea; border-radius: 4px; padding: 1px 6px; }
@media (min-width: 576px) { .l-red { gap: 6px; } .l-old { font-size: 13px; } .l-save { font-size: 11px; padding: 1px 5px; } }
.l-vat { width: 100%; font-size: 12px; color: var(--lm); margin-top: -2px; }

/* butonul de cos: plin, pe toata latimea, 48px; #006fcc in loc de #007ce3
   pentru contrast AA cu textul alb (brief) */
.l-add { grid-area: add; position: relative; z-index: 1; --bs-btn-bg: #006fcc; --bs-btn-border-color: #006fcc; --bs-btn-color: #fff;
  --bs-btn-hover-bg: #005bb0; --bs-btn-hover-border-color: #005bb0; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #004f99; --bs-btn-active-border-color: #004f99; --bs-btn-active-color: #fff;
  width: 100%; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; }
.l-add .ico { font-size: 20px; }
.l-add[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* pe coloane (de la sm) cardul devine vertical: poza sus, mai mare */
@media (min-width: 576px) {
  .l-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "info" "pb" "add"; grid-template-rows: auto 1fr auto auto; padding: 14px; gap: 10px; }
  .l-img { width: 100%; height: 150px; border: 0; }
  .l-pb { padding-top: 10px; }
  .l-price { font-size: 28px; }
  .l-add { height: 44px; font-size: 15px; }
}

/* "Mai multe produse": urmatoarea pagina, adusa in aceeasi lista */
.l-more { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 14px; background: #fff; border: 1px solid #cfd8e2; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--ln); }
.l-more:hover { border-color: var(--lb); color: var(--ln); }
.l-more[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* paginare */
.l-pag { margin: 22px 0 8px; }
.l-pag .pagination { gap: 4px; --bs-pagination-border-radius: 10px; --bs-pagination-color: var(--ln); }
.l-pag .page-link { border-radius: 10px !important; min-width: 40px; height: 40px; display: grid; place-items: center; font-weight: 650; }
.l-pag .page-item.disabled .page-link { border-color: transparent; background: none; }

/* linkuri interne (marci / alte modele) */
.l-links { margin-top: 26px; }
.l-links h2, .l-seo h2 { font-size: 18px; font-weight: 750; margin-bottom: 10px; font-stretch: 100%; }
.l-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.l-links a { display: inline-block; background: #fff; border: 1px solid var(--ll); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ln); }
.l-links a:hover { border-color: var(--lb); color: var(--lb); }

/* linkurile interne ale accesoriilor (views/shell/accesorii_linkuri.php, comun
   cu lista veche): markup-ul vechi cu "|" intre elemente; separatorii sunt
   noduri de text, deci se ascund prin font-size 0 pe lista */
.l-links-acc .footer-links { margin-top: 26px; }
.l-links-acc .section-title { display: block; font-size: 18px; font-weight: 750; margin-bottom: 10px; }
.l-links-acc .sect-branduri { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; }
.l-links-acc .sect-branduri li { font-size: 13px; }
.l-links-acc .sect-branduri a { display: inline-block; background: #fff; border: 1px solid var(--ll); border-radius: 999px; padding: 4px 11px; color: var(--ln); }
.l-links-acc .sect-branduri a:hover { border-color: var(--lb); color: var(--lb); }

/* textul SEO (views/shell/lista_seo.php, comun cu lista veche) */
.l-seo { margin-top: 26px; color: #34475a; font-size: 15px; line-height: 1.6; }
.l-seo > div:empty { display: none; }
.l-seo h3 { font-size: 16px; font-weight: 700; }
.l-seo .btn-link { font-weight: 650; }
