/*
 * Velgala - live search
 * Bara de cautare din header, panoul de sugestii (desktop) si foaia pe tot ecranul (mobil).
 * Marcajul: application/modules/web/views/includes/header_test.php
 * Comportamentul: assets/web/js/cautare_live.js
 *
 * Dimensiunile sunt in px: tema seteaza html { font-size: 62.5% }.
 */

.cautare-live,
.cl-foaie,
.cl-declansator {
    --cl-albastru: #273676;
    --cl-albastru-inchis: #1b2757;
    --cl-portocaliu: #f3794f;
    --cl-portocaliu-inchis: #e0602f;
    --cl-text: #1a2142;
    --cl-text-2: #5d6687;
    --cl-text-3: #8a91ab;
    --cl-linie: #e4e7f1;
    --cl-fundal: #f4f6fb;
    --cl-fundal-2: #eceff8;
    --cl-verde: #17915a;
    --cl-galben: #b97500;
    --cl-font: "Poppins", "Open Sans", -apple-system, "Segoe UI", sans-serif;
}

.cautare-live *,
.cautare-live *::before,
.cautare-live *::after,
.cl-foaie *,
.cl-foaie *::before,
.cl-foaie *::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Bara de cautare (desktop)                                           */
/* ------------------------------------------------------------------ */

.cautare-live {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 660px;
    margin: 0 28px 0 8px;
    font-family: var(--cl-font);
}

.cl-bara {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    margin: 0;
    padding: 0 5px 0 18px;
    background: #fff;
    border: 2px solid var(--cl-albastru);
    border-radius: 27px;
    box-shadow: 0 6px 18px -8px rgba(39, 54, 118, 0.35);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cl-bara:hover {
    box-shadow: 0 8px 22px -8px rgba(39, 54, 118, 0.5);
}

.cl-bara:focus-within,
.cautare-live.este-deschis .cl-bara {
    border-color: var(--cl-portocaliu);
    box-shadow: 0 0 0 4px rgba(243, 121, 79, 0.18), 0 10px 24px -10px rgba(39, 54, 118, 0.45);
}

.cl-bara__lupa {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--cl-albastru);
    pointer-events: none;
}

.cautare-live .cl-camp,
.cl-foaie .cl-camp {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 10px 0 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
    color: var(--cl-text);
    font-family: var(--cl-font);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cl-camp::placeholder {
    color: var(--cl-text-3);
    font-weight: 400;
    opacity: 1;
}

.cl-camp::-webkit-search-cancel-button,
.cl-camp::-webkit-search-decoration {
    -webkit-appearance: none;
    display: none;
}

.cl-camp::-ms-clear {
    display: none;
}

.cl-sterge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 6px;
    padding: 0;
    background: var(--cl-fundal-2);
    border: 0;
    border-radius: 50%;
    color: var(--cl-text-2);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.cl-sterge[hidden] {
    display: none;
}

.cl-sterge:hover {
    background: #dfe3f0;
    color: var(--cl-text);
}

.cl-sterge svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

.cl-buton {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    background: var(--cl-portocaliu);
    border: 0;
    border-radius: 21px;
    color: #fff;
    font-family: var(--cl-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

.cl-buton:hover {
    background: var(--cl-portocaliu-inchis);
}

.cl-buton:active {
    transform: scale(0.97);
}

.cl-buton svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.cl-sterge:focus-visible,
.cl-buton:focus-visible,
.cl-foaie__inapoi:focus-visible,
.cl-declansator:focus-visible,
.cl-icon-header:focus-visible,
.cl-buton-secundar:focus-visible,
.cl-titlu__actiune:focus-visible,
.cl-fraza__sterge:focus-visible {
    outline: 3px solid rgba(39, 54, 118, 0.45);
    outline-offset: 2px;
}

/* linia de progres de sub bara, cat timp se asteapta raspunsul */
.cl-bara::after,
.cl-foaie__progres {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--cl-portocaliu), transparent);
    background-size: 45% 100%;
    background-repeat: no-repeat;
    background-position: -60% 0;
    opacity: 0;
    pointer-events: none;
}

.cl-se-incarca .cl-bara::after,
.cl-se-incarca .cl-foaie__progres {
    opacity: 1;
    animation: cl-progres 0.9s linear infinite;
}

@keyframes cl-progres {
    from { background-position: -60% 0; }
    to { background-position: 160% 0; }
}

.cl-scutura {
    animation: cl-scutura 0.32s ease;
}

@keyframes cl-scutura {
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* ------------------------------------------------------------------ */
/* Fundalul intunecat + ridicarea headerului deasupra lui              */
/* ------------------------------------------------------------------ */

.cl-fundal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1044;
    background: rgba(15, 20, 48, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.cl-fundal.este-vizibil {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease;
}

body.cl-deschis .header-middle {
    position: relative;
    z-index: 1046;
    background: #fff;
}

body.cl-deschis .header-middle.fixed {
    position: fixed;
}

/* ------------------------------------------------------------------ */
/* Panoul (desktop)                                                    */
/* ------------------------------------------------------------------ */

.cl-panou {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: 920px;
    max-width: calc(100vw - 32px);
    max-height: 640px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(39, 54, 118, 0.07), 0 32px 70px -12px rgba(15, 20, 48, 0.45);
    color: var(--cl-text);
    font-family: var(--cl-font);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.cl-panou[hidden] {
    display: none;
}

.cautare-live.este-deschis .cl-panou {
    opacity: 1;
    transform: none;
}

.cl-panou__corp {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cfd4e6 transparent;
}

.cl-panou__jos {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    background: #fff;
    border-top: 1px solid var(--cl-linie);
}

.cl-panou__jos[hidden],
.cl-foaie__jos[hidden] {
    display: none;
}

.cl-stare {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Continutul comun (desktop + mobil)                                  */
/* ------------------------------------------------------------------ */

.cl-coloane {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100%;
}

.cl-coloane--una {
    display: block;
}

.cl-col {
    min-width: 0;
    padding: 20px 22px 14px;
}

.cl-coloane:not(.cl-coloane--una) > .cl-col--dreapta {
    background: var(--cl-fundal);
    border-left: 1px solid var(--cl-linie);
}

.cl-sectiune {
    margin: 0 0 20px;
}

.cl-sectiune:last-child {
    margin-bottom: 6px;
}

.cautare-live .cl-titlu,
.cl-foaie .cl-titlu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0;
    color: var(--cl-text-2);
    font-family: var(--cl-font);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cl-titlu__actiune {
    padding: 2px 0;
    background: none;
    border: 0;
    color: var(--cl-albastru);
    font-family: var(--cl-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.cl-titlu__actiune:hover {
    color: var(--cl-portocaliu-inchis);
    text-decoration: underline;
}

.cl-titlu__numar {
    color: var(--cl-text-3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.cl-lista {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 -10px;
}

.cl-lista--asteapta {
    opacity: 0.5;
    transition: opacity 0.12s ease;
}

/* elementele pe care se poate ajunge cu mouse-ul sau cu sagetile */
.cautare-live .cl-el,
.cl-foaie .cl-el {
    color: var(--cl-text);
    font-family: var(--cl-font);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.cl-el:focus {
    outline: 0;
}

.cl-el:focus-visible {
    outline: 2px solid var(--cl-albastru);
    outline-offset: -2px;
}

.cautare-live mark,
.cl-foaie mark {
    padding: 0;
    background: none;
    color: var(--cl-portocaliu-inchis);
    font-weight: 700;
}

/* --- produs --- */

.cl-produs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 12px;
    transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

.cl-produs.este-activ,
.cl-produs:active {
    background: #fff;
    box-shadow: 0 0 0 1.5px rgba(39, 54, 118, 0.3), 0 10px 20px -10px rgba(39, 54, 118, 0.5);
}

.cl-produs.este-activ .cl-img--produs {
    border-color: rgba(39, 54, 118, 0.3);
}

.cl-coloane--una .cl-produs.este-activ,
.cl-coloane--una .cl-produs:active {
    background: var(--cl-fundal);
}

.cl-img {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.cl-img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cl-img__gol {
    display: none;
    width: 22px;
    height: 22px;
    color: #c3c9de;
    stroke-width: 1.6;
}

.cl-img.este-gol .cl-img__gol {
    display: block;
}

.cl-img--produs {
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 1px solid var(--cl-linie);
    border-radius: 10px;
}

.cl-produs__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cl-produs__nume {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--cl-text);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.cl-produs__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    color: var(--cl-text-3);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.cl-cod mark {
    font-weight: 600;
}

.cl-stoc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.cl-stoc::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.cl-stoc--da { color: var(--cl-verde); }
.cl-stoc--putin { color: var(--cl-galben); }
.cl-stoc--furnizor { color: var(--cl-text-2); }

.cl-produs__pret {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 76px;
    text-align: right;
    white-space: nowrap;
}

.cl-pret {
    color: var(--cl-albastru);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.cl-pret sup {
    top: -0.45em;
    font-size: 0.62em;
    font-weight: 600;
}

.cl-pret small {
    font-size: 0.72em;
    font-weight: 600;
}

.cl-pret--redus {
    color: var(--cl-portocaliu-inchis);
}

.cl-pret--cerere {
    color: var(--cl-text-2);
    font-size: 12px;
    font-weight: 600;
}

.cl-pret-vechi {
    color: var(--cl-text-3);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.2;
}

/* --- carduri (produse recomandate) --- */

.cl-carduri {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cl-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--cl-linie);
    border-radius: 12px;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.cl-card.este-activ,
.cl-card:active {
    border-color: rgba(39, 54, 118, 0.35);
    box-shadow: 0 8px 18px -10px rgba(39, 54, 118, 0.45);
}

.cl-img--card {
    width: 100%;
    height: 76px;
    border-radius: 8px;
}

.cl-card__nume {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 2.6em;
    overflow: hidden;
    color: var(--cl-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cl-card__pret {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}

.cl-card__pret .cl-pret {
    font-size: 14.5px;
}

/* --- categorie --- */

.cl-categorie {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 12px;
    transition: background-color 0.1s ease;
}

.cl-categorie.este-activ,
.cl-categorie:active {
    background: var(--cl-fundal-2);
}

.cl-img--categorie,
.cl-img--icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.cl-img--categorie {
    border: 1px solid var(--cl-linie);
}

.cl-img--categorie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cl-img--icon {
    background: var(--cl-albastru);
}

.cl-img--icon img {
    width: 22px;
    height: 22px;
}

.cl-img--icon .cl-img__gol {
    color: #fff;
    width: 20px;
    height: 20px;
}

.cl-categorie__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cl-categorie__nume {
    overflow: hidden;
    color: var(--cl-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-categorie__meta {
    overflow: hidden;
    color: var(--cl-text-3);
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-categorie__numar {
    flex: 0 0 auto;
    padding: 3px 9px;
    background: var(--cl-fundal);
    border-radius: 10px;
    color: var(--cl-text-2);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.cl-categorie.este-activ .cl-categorie__numar {
    background: #fff;
    color: var(--cl-albastru);
}

/* --- fraze (cautari recente, completari) --- */

.cl-fraza-rand {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cl-fraza {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 6px 10px;
    background: none;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.cl-fraza.este-activ,
.cl-fraza:active {
    background: var(--cl-fundal-2);
}

.cl-fraza__ico {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--cl-text-3);
}

.cl-fraza__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-fraza__completeaza {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--cl-text-3);
}

.cl-fraza__sterge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    color: var(--cl-text-3);
    cursor: pointer;
}

.cl-fraza__sterge:hover {
    background: var(--cl-fundal-2);
    color: var(--cl-text);
}

.cl-fraza__sterge svg {
    width: 14px;
    height: 14px;
}

/* --- chipuri (cautari populare) --- */

.cl-chipuri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 14px 6px 11px;
    background: var(--cl-fundal);
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.cautare-live .cl-chip,
.cl-foaie .cl-chip {
    color: var(--cl-albastru);
}

.cl-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-chip svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--cl-portocaliu);
    stroke-width: 2.3;
}

.cautare-live .cl-chip.este-activ,
.cl-foaie .cl-chip.este-activ,
.cl-chip:active {
    background: #fff;
    border-color: var(--cl-portocaliu);
    color: var(--cl-portocaliu-inchis);
}

/* --- subsol: toate rezultatele + taste --- */

.cautare-live .cl-toate,
.cl-foaie .cl-toate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    background: var(--cl-albastru);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.12s ease;
}

.cautare-live .cl-toate.este-activ,
.cl-foaie .cl-toate.este-activ,
.cl-toate:hover,
.cl-toate:active {
    background: var(--cl-albastru-inchis);
    color: #fff;
    text-decoration: none;
}

.cl-toate__numar {
    font-weight: 500;
    opacity: 0.75;
}

.cl-toate svg {
    width: 17px;
    height: 17px;
    transition: transform 0.12s ease;
}

.cl-toate.este-activ svg,
.cl-toate:hover svg {
    transform: translateX(3px);
}

.cl-taste {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cl-text-3);
    font-size: 12px;
    white-space: nowrap;
}

.cl-taste kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0 6px;
    background: var(--cl-fundal);
    border: 1px solid var(--cl-linie);
    border-bottom-width: 2px;
    border-radius: 6px;
    box-shadow: none;
    color: var(--cl-text-2);
    font-family: var(--cl-font);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.cl-taste kbd:first-child,
.cl-taste kbd + kbd {
    margin-left: 0;
}

/* --- mesaje: anunt de corectare, nimic gasit, eroare --- */

.cl-anunt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 22px;
    background: #fff6f1;
    border-bottom: 1px solid #fbdccd;
    color: var(--cl-text);
    font-size: 13.5px;
    line-height: 1.4;
}

.cl-anunt svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--cl-portocaliu-inchis);
}

.cl-anunt strong {
    font-weight: 600;
}

.cl-mesaj {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 24px 30px;
    text-align: center;
}

.cl-mesaj--gol {
    padding-bottom: 10px;
}

.cl-mesaj__ico {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--cl-fundal);
    border-radius: 50%;
    color: var(--cl-albastru);
}

.cautare-live .cl-mesaj__titlu,
.cl-foaie .cl-mesaj__titlu {
    margin: 0 0 6px;
    color: var(--cl-text);
    font-family: var(--cl-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cautare-live .cl-mesaj__text,
.cl-foaie .cl-mesaj__text {
    max-width: 380px;
    margin: 0;
    color: var(--cl-text-2);
    font-family: var(--cl-font);
    font-size: 13.5px;
    line-height: 1.5;
}

.cl-buton-secundar {
    margin-top: 16px;
    min-height: 40px;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid var(--cl-albastru);
    border-radius: 10px;
    color: var(--cl-albastru);
    font-family: var(--cl-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cl-buton-secundar:hover {
    background: var(--cl-albastru);
    color: #fff;
}

/* --- schelet de incarcare --- */

.cl-schelet {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}

.cl-schelet__img,
.cl-schelet__linii i,
.cl-schelet__pret,
.cl-schelet-chipuri i {
    background: linear-gradient(90deg, #e9ecf5 25%, #f4f6fb 45%, #e9ecf5 65%);
    background-size: 300% 100%;
    animation: cl-schelet 1.2s linear infinite;
}

.cl-schelet__img {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 10px;
}

.cl-schelet__linii {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-schelet__linii i {
    display: block;
    height: 11px;
    border-radius: 6px;
}

.cl-schelet__linii i:first-child { width: 82%; }
.cl-schelet__linii i:last-child { width: 46%; }

.cl-schelet__pret {
    flex: 0 0 auto;
    width: 58px;
    height: 16px;
    border-radius: 6px;
}

.cl-schelet-chipuri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cl-schelet-chipuri i {
    display: block;
    width: 110px;
    height: 36px;
    border-radius: 18px;
}

.cl-schelet-chipuri i:nth-child(2n) { width: 84px; }
.cl-schelet-chipuri i:nth-child(3n) { width: 136px; }

@keyframes cl-schelet {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* ------------------------------------------------------------------ */
/* Mobil: bara care deschide foaia + pictograma din headerul fixat     */
/* ------------------------------------------------------------------ */

.container_cautare_mobil {
    display: none;
    padding: 10px 15px 12px;
    background: #fff;
}

.cl-declansator {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 4px 0 16px;
    background: #fff;
    border: 2px solid var(--cl-albastru);
    border-radius: 24px;
    box-shadow: 0 6px 16px -8px rgba(39, 54, 118, 0.4);
    color: var(--cl-text-3);
    font-family: var(--cl-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cl-declansator > svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--cl-albastru);
}

.cl-declansator__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cl-declansator__text.are-text {
    color: var(--cl-text);
    font-weight: 500;
}

.cl-declansator__buton {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--cl-portocaliu);
    border-radius: 50%;
    color: #fff;
}

.cl-declansator__buton svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.4;
}

.cl-icon-header {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    color: #273676;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cl-icon-header svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}

/* ------------------------------------------------------------------ */
/* Mobil: foaia pe tot ecranul                                         */
/* ------------------------------------------------------------------ */

html.cl-blocat,
html.cl-blocat body {
    overflow: hidden !important;
}

.cl-foaie {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    color: var(--cl-text);
    font-family: var(--cl-font);
    font-size: 14px;
    line-height: 1.4;
    animation: cl-foaie 0.18s ease;
}

.cl-foaie[hidden] {
    display: none;
}

@keyframes cl-foaie {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.cl-foaie__sus {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 14px 10px 6px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    background: #fff;
    border-bottom: 1px solid var(--cl-linie);
}

.cl-foaie__inapoi {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    color: var(--cl-albastru);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cl-foaie__inapoi:active {
    background: var(--cl-fundal);
}

.cl-foaie__inapoi svg {
    width: 22px;
    height: 22px;
}

.cl-foaie__camp {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 4px 0 14px;
    background: var(--cl-fundal);
    border: 2px solid transparent;
    border-radius: 23px;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

.cl-foaie__camp:focus-within {
    background: #fff;
    border-color: var(--cl-portocaliu);
}

.cl-foaie__lupa {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--cl-albastru);
}

/* 16px: sub aceasta valoare iOS mareste pagina la focus */
.cl-foaie .cl-camp {
    padding: 0 8px 0 10px;
    font-size: 16px;
}

.cl-foaie .cl-sterge {
    margin-right: 4px;
}

.cl-foaie__progres {
    left: 0;
    right: 0;
    bottom: -1px;
}

.cl-foaie__corp {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.cl-foaie__jos {
    flex: 0 0 auto;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--cl-linie);
    box-shadow: 0 -8px 20px -14px rgba(15, 20, 48, 0.35);
}

.cl-foaie .cl-toate {
    display: flex;
    width: 100%;
    min-height: 48px;
    font-size: 15px;
}

.cl-foaie .cl-taste {
    display: none;
}

.cl-foaie .cl-coloane {
    display: block;
}

.cl-foaie .cl-col {
    padding: 18px 16px 4px;
}

.cl-foaie .cl-col + .cl-col {
    padding-top: 4px;
}

.cl-foaie .cl-coloane > .cl-col--dreapta {
    background: none;
    border-left: 0;
}

.cl-foaie .cl-col:last-child {
    padding-bottom: 20px;
}

.cl-foaie .cl-sectiune {
    margin-bottom: 22px;
}

.cl-foaie .cl-produs,
.cl-foaie .cl-categorie {
    padding: 8px 10px;
}

.cl-foaie .cl-produs.este-activ,
.cl-foaie .cl-produs:active {
    background: var(--cl-fundal);
    box-shadow: none;
}

.cl-foaie .cl-produs__nume {
    font-size: 14px;
}

.cl-foaie .cl-fraza {
    min-height: 44px;
}

.cl-foaie .cl-fraza__sterge {
    width: 40px;
    height: 40px;
}

.cl-foaie .cl-chip {
    min-height: 40px;
    padding: 8px 15px 8px 12px;
    font-size: 14px;
}

.cl-foaie .cl-anunt {
    padding: 12px 16px;
}

/* in rezultate, pe mobil, categoriile devin un rand care se deruleaza orizontal, ca produsele sa ramana sus */
.cl-foaie .cl-coloane--rezultate .cl-lista--categorii {
    flex-direction: row;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cl-foaie .cl-coloane--rezultate .cl-lista--categorii::-webkit-scrollbar {
    display: none;
}

.cl-foaie .cl-coloane--rezultate .cl-categorie {
    flex: 0 0 auto;
    max-width: 300px;
    gap: 10px;
    padding: 6px 8px 6px 6px;
    background: var(--cl-fundal);
    border-radius: 14px;
}

/* in randul orizontal ramane doar numele si numarul de rezultate */
.cl-foaie .cl-coloane--rezultate .cl-categorie__meta {
    display: none;
}

.cl-foaie .cl-coloane--rezultate .cl-categorie__numar {
    background: #fff;
}

.cl-foaie .cl-coloane--rezultate .cl-img--categorie,
.cl-foaie .cl-coloane--rezultate .cl-img--icon {
    width: 36px;
    height: 36px;
}

.cl-foaie .cl-carduri {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cl-foaie .cl-carduri::-webkit-scrollbar {
    display: none;
}

/* ------------------------------------------------------------------ */
/* Puncte de intrerupere                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 1299px) {
    .cautare-live {
        margin-right: 20px;
    }

    .cl-buton {
        width: 42px;
        padding: 0;
    }

    .cl-buton span {
        display: none;
    }
}

@media (max-width: 991px) {
    .cautare-live {
        display: none;
    }

    .container_cautare_mobil {
        display: block;
    }

    /* cand headerul este fixat sus (bara de cautare a ramas in urma), apare pictograma de cautare */
    .header-middle.fixed .cl-icon-header {
        display: inline-flex;
    }

    /* ...iar logo-ul se micsoreaza putin, ca pictogramele sa incapa si pe ecranele de 360px */
    .header-middle.fixed .element_header_absolute img {
        height: 46px;
    }
}

/* pe ecranele foarte inguste pictograma din headerul fixat nu mai are loc langa logo */
@media (max-width: 339px) {
    .header-middle.fixed .cl-icon-header {
        display: none;
    }
}

@media (max-height: 620px) and (min-width: 992px) {
    .cl-col {
        padding-top: 14px;
    }

    .cl-sectiune {
        margin-bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cl-panou,
    .cl-fundal,
    .cl-bara,
    .cl-foaie {
        transition: none;
        animation: none;
    }

    .cl-se-incarca .cl-bara::after,
    .cl-se-incarca .cl-foaie__progres,
    .cl-schelet__img,
    .cl-schelet__linii i,
    .cl-schelet__pret,
    .cl-schelet-chipuri i {
        animation-duration: 3s;
    }
}
