/* 3. TABEL DOTARI RADIALIGHT */
.radialight-features {
    border: 1px solid #005a8c;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.feature-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
}
.feature-row:last-child { border-bottom: none; }
.feature-icon { flex: 0 0 60px; margin-right: 20px; text-align: center; }
.feature-icon img { width: 50px; height: auto; display: block; margin: 0 auto; }
.feature-text { font-size: 14px; line-height: 1.5; color: #333; }

/* 4. OCHIUL / FOMO MESSAGE */
.wcv-message { display: none !important; }
.entry-summary .wcv-message,
.product .summary .wcv-message { display: block !important; }

/* 5. FAVORITE / WISHLIST */
:has(.wpcsb-id) .tinv-wishlist,
:has(.wpcsb-id) .yith-wcwl-add-to-wishlist,
:has(.wpcsb-id) a.add_to_wishlist,
:has(.wpcsb-id) a[href*="wishlist"] {
    display: none !important;
}
div.product .tinv-wishlist,
div.product .yith-wcwl-add-to-wishlist,
div.product a.add_to_wishlist,
div.product a[href*="wishlist"] {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-left: 10px;
}

/* 6. MINI CART & GALERIE */
.widget_shopping_cart_content { min-width: 280px !important; padding: 15px; }
.woocommerce-mini-cart-item { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 20px !important; }
.woocommerce-mini-cart-item .ct-media-container { flex: 0 0 70px; }
.woocommerce-mini-cart-item .product-data { flex: 1; min-width: 150px; }
.product-title { display: block; word-break: normal !important; overflow-wrap: break-word; line-height: 1.4; }
.woocommerce-product-gallery { opacity: 1 !important; display: block !important; width: 100% !important; }

/* ============================================================
   7. SECTIUNEA FILTRARE (MASTER DROPDOWN) - REPARATĂ
   ============================================================ */

/* Stil General Desktop */
.wbw-master-wrapper { 
    margin-bottom: 25px; 
    position: relative; 
    display: inline-block; 
}

.wbw-final-dropdown summary { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 10px 18px; 
    border: 1px solid #e2e8f0; 
    border-radius: 4px; 
    background: #fff;
    cursor: pointer; 
    min-width: 200px; 
    font-weight: 600; 
    font-size: 14px;
    color: #334155;
}

.wbw-final-dropdown summary::-webkit-details-marker { display: none; }
.btn-text { display: flex; align-items: center; gap: 8px; }

/* Stil MOBIL - Full Screen Overlay Nuclear Option */
@media (max-width: 768px) {
    .wbw-final-dropdown[open] .wbw-content-overlay {
        position: fixed !important;
        top: 0 !important; 
        left: 0 !important;
        width: 100vw !important; 
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 9999999 !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }


    /* Fortam titlurile sa fie negre si vizibile */
    .wpfFilterTitle, .wpfFilterName, .wps-filter-title, .wbw-inner-filter h3 {
        color: #000000 !important;
        display: block !important;
        visibility: visible !important;
        font-weight: 700 !important;
        font-size: 17px !important;
        opacity: 1 !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .wbw-master-wrapper { position: static !important; }
}

/* Stil Desktop pentru fereastra plutitoare */
@media (min-width: 769px) {
    .wbw-content-overlay {
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 350px;
        background: #fff; 
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 25px; 
        z-index: 1000; 
        margin-top: 5px; 
        border-radius: 5px;
    }
    .wbw-close-btn { display: none !important; }
}

.woocommerce-product-gallery {
    align-self: flex-start !important;
}

.woocommerce-product-gallery__wrapper img {
    width: auto !important;
    margin: 0 auto;
}

/* Asigură claritatea maximă în galeria Blocksy */
.ct-product-gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Previne distorsionarea */
    image-rendering: -webkit-optimize-contrast; /* Îmbunătățește claritatea pe unele browsere */
}

/* Fix pentru a preveni suprapunerea textului pe orice rezoluție */
.single-product div.product {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
}

.ct-product-gallery {
    flex: 0 0 46% !important;
    min-width: 300px;
}

.entry-summary {
    flex: 1 !important;
    min-width: 300px;
}

/* REPARARE ALINIERE PAGINĂ PRODUS PC */
@media (min-width: 992px) {
    /* Resetăm containerul principal al produsului */
    .single-product div.product {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 40px !important; /* Spațiul dintre poză și text */
        max-width: 1200px; /* Sau lățimea site-ului tău */
        margin: 0 auto !important;
    }

    /* Galeria (Stânga) */
    .single-product .ct-product-gallery {
        flex: 0 0 46% !important; /* Lățimea galeriei conform setărilor tale */
        max-width: 46% !important;
    }

    /* Descrierea și detaliile (Dreapta) */
    .single-product .entry-summary {
        flex: 1 !important;
        max-width: 50% !important;
        text-align: left !important;
        margin: 0 !important;
    }
}

/* Fix pentru descrierile lungi (tab-uri) de sub produs */
.woocommerce-tabs {
    clear: both;
    width: 100%;
}

/* Forțăm layout-ul pe două coloane la produsul single */
@media (min-width: 768px) {
    .woocommerce-product-gallery {
        width: 55% !important; /* Imaginea ocupă 55% */
        float: left;
        margin-right: 5%;
    }
    .summary.entry-summary {
        width: 40% !important; /* Textul ocupă 40% */
        float: left;
        clear: none;
    }
}

/* Curățăm float-ul pentru a nu strica restul paginii */
.product::after {
    content: "";
    display: table;
    clear: both;
}

.reset_variations {
    display: none !important;
}

/* --- 1. SCHIMBARE GLOBALĂ FONT ÎN TREBUCHET MS --- */
body, 
button, 
input, 
optgroup, 
select, 
textarea,
h1, h2, h3, h4, h5, h6,
.site-title,
.site-navigation,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif !important;
}

/* --- 4. GRID PRODUSE & E-COMMERCE --- */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product .price {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #DC2626 !important;
}

.woocommerce ul.products li.product .button {
    background-color: #DC2626 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* --- 5. STILIZARE CATEGORII PRIMA PAGINĂ (.home) --- */
.home .woocommerce ul.products:has(.product-category) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 10px !important;
}

.home .woocommerce ul.products li.product-category {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 0 !important;
    min-width: 150px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.home .woocommerce ul.products li.product-category img {
    width: 100% !important;
    height: 165px !important;
    object-fit: cover !important;
}

/* --- STILIZARE GLOBALĂ "GAMA DE PRODUSE" (PC & MOBIL) --- */
.entry-content div[class*="vc_wp_custommenu"],
div[class*="vc_wp_custommenu"],
.widget_nav_menu {
    position: relative !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 99 !important;
}

/* Ascundem titlurile native duplicate */
.widget_nav_menu .widget-title,
.widget-title,
.vc_wp_custommenu .widget-title,
.widget_nav_menu h2.widget-title,
.widget_nav_menu > h2 {
    display: none !important;
}


/* Resetare listă principală */
.entry-content div[class*="vc_wp_custommenu"] ul,
div[class*="vc_wp_custommenu"] ul,
.widget_nav_menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Elemente listă (rânduri meniu) */
.entry-content div[class*="vc_wp_custommenu"] ul > li,
div[class*="vc_wp_custommenu"] ul > li,
.widget_nav_menu ul > li {
    position: relative !important;
    border-bottom: 1px solid #F1F5F9 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.entry-content div[class*="vc_wp_custommenu"] ul > li:last-child,
div[class*="vc_wp_custommenu"] ul > li:last-child {
    border-bottom: none !important;
}

/* Link-uri principale */
.entry-content div[class*="vc_wp_custommenu"] ul > li > a,
div[class*="vc_wp_custommenu"] ul > li > a,
.widget_nav_menu ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 18px !important;
    font-family: "Trebuchet MS", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1E293B !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.entry-content div[class*="vc_wp_custommenu"] ul > li > a:hover,
div[class*="vc_wp_custommenu"] ul > li > a:hover,
.widget_nav_menu ul > li > a:hover {
    background-color: #F8FAFC !important;
    color: #49a054 !important;
    padding-left: 22px !important;
}

/* Săgeată indicator pentru submeniuri */
.entry-content div[class*="vc_wp_custommenu"] ul > li.menu-item-has-children > a::after,
div[class*="vc_wp_custommenu"] ul > li.menu-item-has-children > a::after,
.widget_nav_menu ul > li.menu-item-has-children > a::after {
    content: "›" !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #94A3B8 !important;
}

/* --- STILIZARE DESKTOP: Submeniurile flotante (Dropdown lateral) --- */
@media (min-width: 769px) {
    .entry-content div[class*="vc_wp_custommenu"] ul.sub-menu,
    div[class*="vc_wp_custommenu"] ul.sub-menu,
    .widget_nav_menu ul.sub-menu {
        display: none !important;
        position: absolute !important;
        left: 100% !important;
        top: 0 !important;
        width: 260px !important;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 0 8px 8px 8px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        z-index: 999999 !important;
    }

    .entry-content div[class*="vc_wp_custommenu"] ul > li:hover > ul.sub-menu,
    div[class*="vc_wp_custommenu"] ul > li:hover > ul.sub-menu,
    .widget_nav_menu ul > li:hover > ul.sub-menu {
        display: block !important;
    }
}

/* Link-uri în submeniuri (Desktop) */
.entry-content div[class*="vc_wp_custommenu"] ul.sub-menu li a,
div[class*="vc_wp_custommenu"] ul.sub-menu li a,
.widget_nav_menu ul.sub-menu li a {
    display: block !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
}

.entry-content div[class*="vc_wp_custommenu"] ul.sub-menu li a:hover,
div[class*="vc_wp_custommenu"] ul.sub-menu li a:hover,
.widget_nav_menu ul.sub-menu li a:hover {
    background-color: #F1F5F9 !important;
    color: #49a054 !important;
    padding-left: 20px !important;
}

/* --- STILIZARE MOBIL: Submeniuri integrate în jos --- */
@media (max-width: 768px) {
    .entry-content div[class*="vc_wp_custommenu"] ul.sub-menu,
    div[class*="vc_wp_custommenu"] ul.sub-menu,
    .widget_nav_menu ul.sub-menu {
        display: none !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid #F1F5F9 !important;
        background: #F8FAFC !important;
        border-radius: 0 !important;
    }

    .entry-content div[class*="vc_wp_custommenu"] ul > li:hover > ul.sub-menu,
    div[class*="vc_wp_custommenu"] ul > li:hover > ul.sub-menu,
    .widget_nav_menu ul > li:hover > ul.sub-menu {
        display: block !important;
    }

    .entry-content div[class*="vc_wp_custommenu"] ul.sub-menu li a,
    div[class*="vc_wp_custommenu"] ul.sub-menu li a,
    .widget_nav_menu ul.sub-menu li a {
        padding: 10px 16px 10px 28px !important;
    }
}

.vc_row, .vc_column-inner, .wpb_wrapper {
    overflow: visible !important;
}

/* --- PRIORITATE ABSOLUTĂ: MENIUL DE SUS PESTE MENIUL VERTICAL (EXCLUSIV DESKTOP) --- */
@media (min-width: 769px) {
    .ct-header {
        position: relative !important; /* ACTIVĂM Z-INDEX-UL FĂRĂ SĂ STRICĂM GEOMETRIA */
        z-index: 99999999 !important;
    }
    
    .ct-header-navigation,
    .header-navigation,
    [data-id="menu"],
    .sub-menu,
    .ct-dropdown,
    .ct-mega-menu {
        z-index: 99999999 !important;
    }

    .entry-content div[class*="vc_wp_custommenu"],
    div[class*="vc_wp_custommenu"],
    .widget_nav_menu {
        z-index: 1 !important;
    }
}

/* --- FORȚARE SUPRAPUNERE MENIU VERTICAL PESTE BANNER/GALERIE WPBakery --- */

/* 1. Ridicăm coloana părinte care conține meniul deasupra tuturor */
.vc_column_container:has(.vc_wp_custommenu),
.wpb_column:has(.vc_wp_custommenu),
.vc_column-inner:has(.vc_wp_custommenu) {
    position: relative !important;
    z-index: 9999999 !important;
    overflow: visible !important;
}

/* 2. Ne asigurăm că rândul principal nu taie conținutul */
.vc_row:has(.vc_wp_custommenu) {
    position: relative !important;
    z-index: 999999 !important;
    overflow: visible !important;
}

/* 3. Coborâm forțat bannerul/galeria din coloana alăturată */
.vc_column_container:has(.wpb_images_carousel),
.vc_column_container:has(.vc_images_carousel),
.vc_column_container:has([class*="vc_gallery"]) {
    position: relative !important;
    z-index: 1 !important;
}

/* 4. Anulăm orice tăiere (clipping) pe wrapperele interne */
.wpb_wrapper {
    overflow: visible !important;
}

/* --- REPARARE SUPRAPUNERE MENIU PAGINĂ PESTE MENIUL OFF-CANVAS MOBIL --- */
@media (max-width: 768px) {
    /* Degradăm z-index-ul coloanelor WPBakery pe telefon ca să nu mai perforeze straturile superioare */
    .vc_column_container:has(.vc_wp_custommenu),
    .wpb_column:has(.vc_wp_custommenu),
    .vc_column-inner:has(.vc_wp_custommenu),
    .vc_row:has(.vc_wp_custommenu) {
        z-index: 10 !important;
    }

    /* Blindăm panoul mobil lateral cu un z-index absolut care domină orice element de pe pagină */
    #off-canvas,
    .ct-panel[data-id="mobile"],
    .ct-drawer,
    .ct-panel.is-active {
        z-index: 999999999 !important;
    }
    
    /* Ne asigurăm că și fundalul negru al meniului mobil acoperă pagina corect */
    .ct-panel-backdrop,
    .ct-drawer-backdrop {
        z-index: 999999998 !important;
    }
}

/* --- EFECT HOVER PENTRU LOGOURI ÎN MENIUL DROPDOWN --- */
.ct-header .sub-menu li a img,
.sub-menu li a img {
    /* Setăm o tranziție fluidă pentru a nu fi o schimbare bruscă, de amator */
    transition: transform 0.25s ease-in-out, filter 0.25s ease-in-out !important;
    transform: scale(1) !important;
    filter: brightness(1) !important;
    
    /* Recomand un mic spațiu sub imagini ca să nu stea lipite de textul de sub ele */
    margin-bottom: 5px !important; 
}

/* Efectul de activare la hover pe link-ul părinte */
.ct-header .sub-menu li a:hover img,
.sub-menu li a:hover img {
    transform: scale(1.07) !important; /* Mărire subtilă de 7% */
    filter: brightness(1.15) !important; /* Iluminare ușoară pentru a scoate logoul în evidență */
}

/* --- FUNDAȚIA CARDULUI DE PRODUS --- */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 15px !important;
    position: relative !important;
    transition: box-shadow 0.2s ease !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.12) !important;
}

/* Asigurăm extinderea corectă a linkului interior */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* --- TITLU ȘI RATING --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    color: #111827 !important;
    font-weight: 500 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 15px 0 10px 0 !important;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .star-rating {
    font-size: 13px !important;
    color: #fbbc04 !important;
    margin-bottom: 15px !important;
}

/* --- PREȚ ALINIAT LA STÂNGA JOS --- */
.woocommerce ul.products li.product .price {
    margin-top: auto !important; /* Împinge prețul fix la baza cardului indiferent de lungimea titlului */
    color: #e50000 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    padding-right: 55px !important; /* Lasă spațiu pentru butonul de coș absolut */
}

.woocommerce ul.products li.product .price del {
    display: block !important;
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin-bottom: 4px !important;
}

/* --- BUTON ADAUGĂ ÎN COȘ (STIL eMAG) --- */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background-color: #003377 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important; /* Ascundem textul inestetic "Adaugă în coș" */
    min-height: auto !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #002255 !important;
}

/* Generare Iconiță Coș curată prin Mască SVG */
.woocommerce ul.products li.product .button::after {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    background-color: #ffffff !important;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/></svg>') no-repeat center;
    -webkit-mask-size: contain !important;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/></svg>') no-repeat center;
    mask-size: contain !important;
}

/* --- BUTON FAVORITE PLUTITOR COMPLET ȘI CENTRAT (TI WOOCOMMERCE WISHLIST) --- */

/* 1. Poziționarea absolută pe dreapta sus */
.woocommerce ul.products li.product .tinv-wishlist {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important; 
    z-index: 99 !important;
    margin: 0 !important;
    width: auto !important;
}

/* 2. Desenarea cercului (Fără Flexbox. Folosim position: relative ca ancoră) */
.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button {
    background-color: #ffffff !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: block !important; /* Bloc curat, nu flex */
    position: relative !important; /* Ancora pentru centrarea matematică */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

/* 3. Ascundem textul inestetic "Add to wishlist" */
.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button span {
    display: none !important;
}

/* 4. Inimioara - CENTRARE GEOMETRICĂ ABSOLUTĂ (Glonțul de argint) */
.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button::before {
    color: #475569 !important;
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    /* Mutăm inima matematic exact în centru: */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: color 0.2s ease !important;
}

/* 5. Efectul de hover și starea activă */
.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button:hover,
.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
    border-color: #e50000 !important;
}

.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button:hover::before,
.woocommerce ul.products li.product .tinv-wishlist a.tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before {
    color: #e50000 !important;
}

/* --- BARA DE CĂUTARE INFRAPANEL (STRUCTURĂ ȘI CULORI) --- */
.infrapanel-search-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 650px !important; /* Lățime maximă ca să nu arate disproporționat pe monitoare mari */
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 2px solid #0c2b54 !important; /* Contur ferm, albastru închis */
    border-radius: 6px !important;
    overflow: hidden !important; /* Taie colțurile elementelor interioare pentru a respecta bordura rotunjită */
}

/* Câmpul de introducere text */
.infrapanel-search-bar .search-field {
    flex: 1 1 auto !important; /* Forțează câmpul să ocupe tot spațiul disponibil */
    width: 100% !important;
    border: none !important; /* Ucidem marginile native ale temei */
    outline: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #333333 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: 42px !important; /* Înălțime fixă pentru aliniere perfectă */
}

/* Butonul de căutare din dreapta */
.infrapanel-search-bar .search-btn {
    flex: 0 0 auto !important; /* Împiedică butonul să se micșoreze */
    background: #0c2b54 !important; /* Albastrul închis din antet */
    color: #ffffff !important;
    border: none !important;
    padding: 0 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin: 0 !important;
    border-radius: 0 !important; /* Lipire perfectă de marginea containerului principal */
    height: 42px !important;
}

/* Efectul la trecerea cu mouse-ul */
.infrapanel-search-bar .search-btn:hover {
    background: #49a054 !important; /* Verdele InfraPanel pentru contrast */
}

.ct-container, .site-main, .page-content { padding-top: 0 !important; margin-top: 0 !important; }

/* --- 1. CURĂȚARE CONTAINERE EXTERIOARE (Prevenire fantome/dubluri) --- */
div[class*="vc_wp_custommenu"] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ascundem orice titlu nativ introdus din greșeală în setările modulului WPBakery */
.widget_nav_menu .widgettitle,
.vc_wp_custommenu .widgettitle {
    display: none !important;
}

/* --- 2. STRUCTURA UNICĂ A MENIULUI --- */
.widget_nav_menu {
    background: #ffffff !important; 
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
}

/* --- 3. INJECTARE TITLU UNIC "GAMA DE PRODUSE" --- */
.widget_nav_menu::before {
    content: "≡  GAMA DE PRODUSE" !important;
    display: block !important;
    background: #0c2b54 !important; /* Albastrul care sudează structura */
    color: #ffffff !important;
    font-family: "Trebuchet MS", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 15px 20px !important;
    margin-bottom: 0 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important; 
    letter-spacing: 0.5px !important;
}

/* Setăm lista să înceapă curat */
.widget_nav_menu ul {
    margin: 0 !important;
    padding: 0 !important;
}
/* Sudarea finală a bării de căutare */
.infrapanel-search-bar {
    border: 2px solid #0c2b54 !important;
    border-radius: 4px !important;
    overflow: hidden !important; /* Aceasta forțează elementele din interior să nu iasă din conturul rotunjit */
}

.infrapanel-search-bar .search-field {
    height: 42px !important;
    border: none !important; /* Ucide complet conturul nativ al câmpului */
    border-radius: 0 !important; 
    margin: 0 !important;
    box-shadow: none !important;
}

.infrapanel-search-bar .search-btn {
    height: 42px !important;
    border: none !important;
    border-radius: 0 !important; /* Îi taie colțurile rotunjite ca să se lipească perfect de câmpul alb */
    margin: 0 !important;
}

/* --- ASCUNDERE MENIU VERTICAL REDUNDANT PE MOBIL --- */
@media (max-width: 768px) {
    .vc_column_container:has(.vc_wp_custommenu),
    .wpb_column:has(.vc_wp_custommenu) {
        display: none !important;
    }
}

/* --- BARA TACTILĂ DE MOBIL (CLONĂ CLIMATICO) --- */
@media (max-width: 768px) {
    [data-device="mobile"] .ct-header [data-row*="middle"] {
        background-color: #f7f7f7 !important;
        border-top: 1px solid #eeeeee !important;
        border-bottom: 1px solid #eeeeee !important;
        min-height: 50px !important;
    }

    [data-device="mobile"] .ct-header [data-row*="middle"] > .ct-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 15px !important;
        width: 100% !important;
    }
}

/* Reguli EXCLUSIVE pentru PC (Ecrane mari) */
@media screen and (min-width: 769px) {
    .infrapanel-dual-header .mobile-phone-icon {
        display: none !important;
    }
    .infrapanel-dual-header .infrapanel-search-bar {
        display: flex !important;
    }
}

/* Reguli EXCLUSIVE pentru Mobil (Ecrane mici) */
@media screen and (max-width: 768px) {
    .infrapanel-dual-header .mobile-phone-icon svg {
        stroke: #111827 !important;
    }
}

/* --- FUNDAL GRI PENTRU BARA DE MOBIL --- */
@media screen and (max-width: 768px) {
    header#header [data-row*="middle"],
    .ct-header [data-row*="middle"] {
        background-color: #f7f7f7 !important;
        border-top: 1px solid #eeeeee !important;
        border-bottom: 1px solid #eeeeee !important;
    }
}

/* --- ALINIERE MATEMATICĂ BARA TACTILĂ MOBIL --- */
@media screen and (max-width: 768px) {
    /* 1. Ucidem coloanele invizibile (Left/Center/Right) ale temei */
    .ct-header [data-row*="middle"] > .ct-container > div {
        display: contents !important;
    }

    /* 2. Containerul principal preia controlul total și împarte spațiul */
    .ct-header [data-row*="middle"] > .ct-container {
        display: flex !important;
        justify-content: space-evenly !important; 
        align-items: center !important;
        width: 100% !important;
        padding: 5px 0 !important;
    }

    /* 3. Forțăm fiecare iconiță să stea exact pe centrul feliei ei de ecran */
    .ct-header [data-row*="middle"] .ct-header-item {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 !important;
    }
}

/* --- UCIDEREA TEXTULUI "CONTUL MEU" PE BARA TACTILĂ --- */
@media screen and (max-width: 768px) {
    .ct-header-account .ct-label,
    .ct-header-account .ct-item-title,
    .ct-header-account .ct-item-label {
        display: none !important;
    }
}

/* --- CENTRARE FORȚATĂ A ICONIȚEI DE CONT --- */
.ct-header [data-row*="middle"] .ct-header-account,
.ct-header [data-row*="middle"] .ct-header-account > a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- REPARAȚIA FINALĂ ȘI DEFINITIVĂ A BAREI TACTILE --- */
@media screen and (max-width: 768px) {
    /* 1. Vopsim în gri absolut toate straturile rândului */
    .ct-header [data-row*="middle"],
    .ct-header [data-row*="middle"] > .ct-container,
    .ct-header [data-row*="middle"] [data-column="center"] {
        background-color: #f7f7f7 !important;
        box-shadow: none !important;
    }

    /* 2. Containerul devine stăpân absolut pe lățime */
    .ct-header [data-row*="middle"] [data-column="center"] > .ct-box-flex {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* 3. Orice element pus aici e forțat matematic la fracție egală */
    .ct-header [data-row*="middle"] [data-column="center"] > .ct-box-flex > * {
        flex: 1 1 0% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* --- CORECTURĂ CHIRURGICALĂ CARD PRODUS --- */

/* 1. Ascundem definitiv stelele de rating dacă au rămas vizibile forțat */
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .woocommerce-product-rating {
    display: none !important;
}

/* 2. Forțăm corpul cardului să aibă un layout flexibil la bază */
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* 3. Zona de preț și acțiune o aliniem curat pe rândul de jos */
.woocommerce ul.products li.product .price {
    display: inline-block !important;
    margin-top: auto !important; /* Împinge totul spre bază */
    margin-bottom: 0 !important;
    position: relative !important;
    top: 6px !important; /* Ajustare fină pe axa Y să se alinieze cu mijlocul butonului */
}

/* 4. Poziționarea absolută a butonului de coș în colțul de jos-dreapta */
.woocommerce ul.products li.product .button.add_to_cart_button {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    margin: 0 !important;
}

/* --- FIX STICKY HEADER BACKGROUND LA SCROLL --- */
header#header .ct-header-row.is-sticky,
header#header .is-sticky [data-row] {
    background-color: #0c2b54 !important; /* Înlocuiește cu codul tău exact de albastru închis dacă difere */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* --- CONTROL TOTAL VIZIBILITATE ANTET --- */

/* Pe PC: Ascundem orice iconiță de telefon rătăcită sub bara de căutare */
@media screen and (min-width: 769px) {
    .ct-header [data-row*="middle"] a[href^="tel:"],
    .ct-header [data-row*="middle"] .mobile-phone-icon {
        display: none !important;
    }
}

/* Pe Mobil: Ascundem complet formularul de căutare de tip desktop */
@media screen and (max-width: 768px) {
    .ct-header [data-row*="middle"] form.infrapanel-search-bar,
    .ct-header [data-row*="middle"] .infrapanel-search-bar {
        display: none !important;
    }
}

/* --- STILIZARE FILTRE CLONĂ CLIMATICO --- */

/* 1. Containerul general al barei laterale */
aside.sidebar, 
.ct-sidebar, 
#secondary {
    background-color: transparent !important;
    padding-right: 20px !important;
}

/* 2. Transformăm fiecare widget/grup de filtre într-o cutie albă, curată (Card) */
aside.sidebar .widget, 
.ct-sidebar .widget, 
#secondary .widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* 3. Stilizarea titlurilor filtrelor (Preț, Putere, Categorie) */
aside.sidebar .widgettitle, 
.ct-sidebar .widget h2, 
#secondary .widget .widget-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0c2b54 !important; /* Albastrul brandului tău */
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-transform: none !important;
}

/* 4. Curățarea listelor de opțiuni (checkbox-uri și text) */
aside.sidebar ul, 
.ct-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

aside.sidebar li, 
.ct-sidebar li {
    padding: 6px 0 !important;
    font-size: 14px !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Aliniere curată pentru inputurile de tip checkbox */
aside.sidebar input[type="checkbox"] {
    accent-color: #0c2b54 !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
}

/* 5. Optimizarea cursorului de preț (Price Filter) */
aside.sidebar .price_slider_wrapper .price_slider {
    margin-bottom: 15px !important;
}

aside.sidebar .price_slider_wrapper .ui-slider .ui-slider-range {
    background-color: #0c2b54 !important;
}

aside.sidebar .price_slider_wrapper .ui-slider .ui-slider-handle {
    background-color: #ffffff !important;
    border: 2px solid #0c2b54 !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
}

/* --- CARDURI UNIFICATE PENTRU TOATE TIPURILE DE FILTRE DIN SIDEBAR --- */

/* 1. Curățăm fundalul general al coloanei laterale */
aside.sidebar, 
.ct-sidebar, 
#secondary,
.widget-area {
    background-color: transparent !important;
}

/* 2. Forțăm ORICE widget, secțiune sau bloc din sidebar să devină un card alb individual */
aside.sidebar .widget, 
.ct-sidebar .widget, 
#secondary .widget,
.widget-area section,
.widget-area > div,
.wp-block-group,
.wc-block-filter {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* 3. Stilizarea unificată a titlurilor din fiecare card de filtru */
aside.sidebar .widgettitle, 
.ct-sidebar .widget h2, 
#secondary .widget .widget-title,
.widget-area h2,
.widget-area h3,
.wp-block-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0c2b54 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    text-transform: none !important;
}

/* 4. Curățarea listelor și a opțiunilor din interiorul cardurilor */
aside.sidebar ul, 
.ct-sidebar ul,
.widget-area ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

aside.sidebar li, 
.ct-sidebar li,
.widget-area li {
    padding: 6px 0 !important;
    font-size: 14px !important;
    color: #334155 !important;
}

/* 5. Ascundem titlurile generice rătăcite de tipul "Filtre" care stau degeaba sus */
.widget-area > h1:first-child,
.widget-area > h2:first-child {
    display: none !important;
}
/* --- SUPREMAȚIE TOTALĂ CSS: CURĂȚARE TITLU & BUTON FILTRARE --- */

/* 1. Ascundem absolut orice element care conține textul "Filtrare" de deasupra produselor */
.ct-catalog-ordering > div:has(.ct-filters-trigger),
button.ct-filters-trigger,
.ct-filters-trigger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* 2. Forțăm titlul "Filtre" din stânga să crească în dimensiune și să elimine orice linie */
aside.sidebar .widget-title,
.ct-sidebar .widget-title,
#secondary .widget-title,
.widget-area .widget-title,
aside.sidebar h2:first-child,
.ct-sidebar h2:first-child {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0c2b54 !important;
    border: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 20px !important;
    background: transparent !important;
}

/* 3. Anulăm liniile de separator injectate automat de temă sub titluri în sidebar */
aside.sidebar .widget .widget-title::after,
.ct-sidebar .widget h2::after {
    display: none !important;
}

/* --- RESTAURAREA SORTĂRII ȘI ADAPTAREA PENTRU MOBIL (DROPDOWN) --- */

/* 1. Readucem containerul de sus, dar ascundemos strict elementul vechi de filtrare (WBF) */
.woo-listing-top {
    display: flex !important;
    justify-content: flex-end !important; /* Împingem sortarea în dreapta pe PC */
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Ascundem exclusiv resturile vechiului plugin, lăsând sortarea nativă vizibilă */
.woo-listing-top .wbw-master-wrapper,
.woo-listing-top > details,
.woo-listing-top > .wbw-filter {
    display: none !important;
}

/* 2. Comportamentul pe telefon: Filtrele și Sortarea devin butoane tip Dropdown deasupra produselor */
@media screen and (max-width: 768px) {
    /* Forțăm bara laterală (filtrele) să se ascundă nativ și să devină meniu ascuns / drop-down */
    .ct-sidebar, 
    aside.sidebar, 
    #secondary {
        display: none !important; /* Ascunse inițial pe mobil până la acțiune */
    }

    /* Dacă tema are clasa nativă pentru butonul de declanșare a filtrelor pe mobil, o afișăm */
    .ct-catalog-ordering, 
    .woo-listing-top {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
}
/* --- FORȚARE AFIȘARE CONTROALE DE FILTRARE PE MOBIL --- */
@media screen and (max-width: 768px) {
    /* Asigurăm că rândul de deasupra produselor devine flexibil și vizibil */
    .woo-listing-top, 
    .ct-catalog-ordering {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Forțăm butonul de declanșare a filtrelor pe mobil să apară vizibil și curat */
    .ct-sidebar-trigger,
    .ct-filters-trigger {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        padding: 8px 14px !important;
        color: #0c2b54 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
    }
}

/* =========================================
   SUBSOL CUSTOM INFRAPANEL FINAL
   ========================================= */

.ct-footer .widget_custom_html {
    margin: 0 !important;
    padding: 0 !important;
}

.infra-custom-footer {
    background-color: #f8fafc;
    border-top: 2px solid #49a054;
    font-family: inherit;
    color: #475569;
    font-size: 14px;
}

/* 1. BARA DE LOCAȚIE */
.infra-location-bar {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 15px;
    display: flex;
    justify-content: center;
}

.location-box {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.location-box svg {
    width: 36px;
    height: 36px;
}

.loc-text strong {
    color: #0c2b54;
    font-size: 15px;
}

/* 2. CONȚINUTUL PRINCIPAL */
.infra-main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 30px;
}

.infra-col {
    flex: 1;
    min-width: 250px;
}

.infra-col h4 {
    color: #49a054;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: none;
}

.infra-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infra-col ul li {
    margin-bottom: 10px;
}

.infra-col a, .infra-col p {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
    margin: 0;
}

.infra-col a:hover {
    color: #0c2b54;
}

.infra-btn-green {
    display: inline-block;
    background-color: #49a054;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s;
}

.infra-btn-green:hover {
    background-color: #3b8343;
}

/* 3. ICONIȚE, PLĂȚI ȘI ANPC */
.infra-trust {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.infra-socials {
    display: flex;
    gap: 15px;
}

.infra-socials a {
    font-weight: 600;
    color: #0c2b54;
}

.infra-payments {
    font-size: 15px;
    color: #0c2b54;
}

.anpc-link {
    display: block;
    background: #ffffff;
    border: 1px solid #0c2b54;
    color: #0c2b54 !important;
    text-align: center;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.anpc-link:hover {
    background: #0c2b54;
    color: #ffffff !important;
}

/* 4. BARA DE JOS (COPYRIGHT ȘI LEGAL) */
.infra-footer-bottom {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.infra-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.infra-legal-links a:hover {
    color: #0c2b54;
}

/* RESPONSIVE PENTRU TELEFON */
@media (max-width: 768px) {
    .infra-main-content {
        flex-direction: column;
        padding: 30px 15px;
    }
    
    .infra-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- INFRAPANEL PRODUCT TEMPLATE GLOBAL STYLES --- */
.klima-h2 { font-size: 26px; font-weight: 700; color: #1e293b; margin-bottom: 20px; line-height: 1.3; }
.klima-h3 { font-size: 20px; font-weight: 600; color: #0f172a; margin-top: 35px; margin-bottom: 20px; border-bottom: 2px solid #10b981; display: inline-block; padding-bottom: 5px; }

/* Butoane CTA Profesionale + Animații HOVER */
.klima-cta-group { display: flex; flex-wrap: wrap; gap: 15px; margin: 30px 0; }
.klima-btn { display: inline-block; padding: 12px 24px; font-weight: 600; border-radius: 6px; text-decoration: none !important; text-align: center; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.klima-btn-primary { background-color: #10b981; color: #ffffff !important; border: 2px solid #10b981; }
.klima-btn-secondary { background-color: #1e293b; color: #ffffff !important; border: 2px solid #1e293b; }
.klima-btn-outline { background-color: transparent; border: 2px solid #e2e8f0; color: #475569 !important; }

/* REPARAȚIE GEOMETRIE BUTOANE PENTRU MOBIL */
@media (max-width: 768px) {
    .klima-cta-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .klima-btn {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

/* Efectul de Hover pentru Butoane */
.klima-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.15); opacity: 0.95; }

/* Grid Carduri Caracteristici + Animații HOVER */
.klima-features-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; margin-bottom: 40px; }
.klima-feature-card { flex: 1 1 300px; display: flex; align-items: center; background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.3s ease; }
.klima-feature-icon { flex: 0 0 70px; margin-right: 15px; text-align: center; }
.klima-feature-icon img { max-width: 60px; height: auto; border-radius: 4px; display: inline-block; }
.klima-feature-text { font-size: 14px; color: #475569; line-height: 1.5; margin: 0; }

/* Efectul de Hover pentru Carduri */
.klima-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,0.08); border-color: #10b981; }

.klima-disclaimer { background-color: #f8fafc; border-left: 4px solid #10b981; padding: 15px 20px; font-size: 14px; color: #475569; margin-bottom: 25px; }
/* --- END INFRAPANEL STYLES --- */
/* --- DICTATURĂ ABSOLUTĂ BARA DE CĂUTARE HEADER --- */
header .infrapanel-search-bar, 
.ct-header-cart-handler + div .infrapanel-search-bar,
.infrapanel-search-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 480px !important;
    background: #ffffff !important;
    border: 1.5px solid #0c2b54 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.infrapanel-search-bar input.search-field {
    flex: 1 !important;
    width: auto !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    color: #334155 !important;
    background: transparent !important;
    height: 38px !important;
    margin: 0 !important;
}

.infrapanel-search-bar button.search-btn {
    flex-shrink: 0 !important;
    background-color: #0c2b54 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 18px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    height: 38px !important;
    line-height: 38px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.infrapanel-search-bar button.search-btn:hover {
    background-color: #49a054 !important;
}

/* --- REPARAȚIE CĂUTARE PESTE BANNER ȘI MENIU LATERAL --- */
.ct-header-search-form {
    position: absolute !important;
    right: 20px !important;
    top: 100% !important;
    z-index: 99999;
    background: #ffffff !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    border-radius: 4px !important;
}

/* GLONȚUL DE ARGINT: Activăm Z-Index-ul pe header FĂRĂ să îi stricăm geometria */
@media (min-width: 769px) {
    .ct-header {
        position: relative !important;
        z-index: 99999999 !important;
    }
}

/* === FIX: CĂUTAREA ANTETULUI PESTE BANNER ȘI "GAMA DE PRODUSE" (PC) === */
@media (min-width: 769px) {

    /* 1. Coborâm valorile uriașe. Meniul rămâne peste banner,
          dar nu mai acoperă antetul și panoul de căutare */
    .vc_row:has(.vc_wp_custommenu) {
        z-index: 5 !important;
    }
    .vc_column_container:has(.vc_wp_custommenu),
    .wpb_column:has(.vc_wp_custommenu),
    .vc_column-inner:has(.vc_wp_custommenu) {
        z-index: 50 !important;
    }

    /* 2. Panoul de căutare al temei, deasupra oricărui conținut */
    #search-modal,
    .ct-panel,
    .ct-header-search-form {
        z-index: 999999999 !important;
    }
    .ct-panel-backdrop,
    .ct-drawer-backdrop {
        z-index: 999999998 !important;
    }

    /* 3. Rezultatele căutării live (dacă ai un plugin de căutare) */
    .dgwt-wcas-suggestions-wrapp,
    .dgwt-wcas-details-wrapp {
        z-index: 999999999 !important;
    }
}

/* =====================================================
   FIX MOBIL: BUTOANE ȘI CONȚINUT CARE IESEAU DIN ECRAN
   ===================================================== */
@media (max-width: 768px) {

    /* Grupul de butoane: coloană, pe toată lățimea, fără depășire */
    .klima-cta-group,
    div:has(> .klima-btn),
    p:has(> .klima-btn) {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fiecare buton: nu poate fi mai lat decât ecranul */
    .klima-btn,
    a[class*="klima-btn"] {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    /* Pagina de produs: nimic nu mai împinge pagina în lateral */
    .ct-product-gallery,
    .entry-summary,
    .summary.entry-summary,
    .woocommerce-tabs,
    .woocommerce-Tabs-panel {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-Tabs-panel img {
        max-width: 100% !important;
        height: auto !important;
    }

    .woocommerce-Tabs-panel iframe,
    .woocommerce-Tabs-panel video {
        max-width: 100% !important;
    }

    .woocommerce-Tabs-panel table {
        display: block !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }
}

/* =====================================================
   FIX: titlul "GAMA DE PRODUSE" doar la meniul din pagină,
   nu la orice meniu din site (subsol, bară laterală)
   ===================================================== */
.widget_nav_menu::before {
    content: none !important;
}
div[class*="vc_wp_custommenu"] .widget_nav_menu::before,
div[class*="vc_wp_custommenu"].widget_nav_menu::before {
    content: "≡  GAMA DE PRODUSE" !important;
}

/* =====================================================
   FIX MOBIL: BUTOANE UNUL SUB ALTUL (fără scroll lateral)
   ===================================================== */
@media (max-width: 768px) {

    /* Tabelele care conțin butoane: celulele devin rânduri separate */
    .woocommerce-Tabs-panel table:has(.klima-btn),
    .woocommerce-Tabs-panel table:has(.klima-btn) tbody,
    .woocommerce-Tabs-panel table:has(.klima-btn) tr,
    .woocommerce-Tabs-panel table:has(.klima-btn) td,
    .woocommerce-Tabs-panel table:has(.klima-btn) th {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        border: 0 !important;
        padding: 0 0 10px 0 !important;
        box-sizing: border-box !important;
    }

    /* Containerele de butoane nu mai pot avea bară de scroll */
    .klima-cta-group,
    div:has(> .klima-btn),
    p:has(> .klima-btn),
    td:has(> .klima-btn) {
        overflow: visible !important;
        flex-wrap: nowrap !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Butonul secundar (cel cu contur) arată ca celălalt, pe toată lățimea */
    .klima-btn,
    .klima-btn-outline {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 10px 0 !important;
        box-sizing: border-box !important;
    }
}

/* Forțare randare și interacțiune corectă pentru CookieYes */
.cky-consent-container, 
.cky-box-bottom-left, 
.cky-box-bottom-right, 
.cky-box-center {
    z-index: 999999 !important;
    pointer-events: auto !important;
}

.cky-banner-element {
    display: block !important;
    visibility: visible !important;
}
/* Cardul complet de lucrare */
.post-grid-item, .uc_post_grid_box { /* adaptează la clasa plugin-ului tău */
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.post-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Forțează toate pozele la același raport de aspect (aspect ratio 4:3 sau 1:1) */
.post-grid-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-grid-item:hover img {
  transform: scale(1.03);
}

/* Titlul lucrării */
.post-grid-item .post-title, .post-grid-item h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f2a4a !important;
  line-height: 1.3 !important;
  margin: 16px 16px 8px 16px !important;
  min-height: 44px; /* menține butoanele aliniate jos chiar dacă titlul are 1 sau 2 rânduri */
}

/* Ascunderea descrierii dacă modulul nu o permite din setări */
.post-grid-item .post-excerpt {
  display: none !important;
}

/* Butonul 'Vezi Proiectul' */
.post-grid-item .read-more-btn, .post-grid-item a.btn {
  margin: auto 16px 16px 16px !important;
  background-color: #0f2a4a !important; /* bleumarinul brandului tău */
  color: #ffffff !important;
  text-align: center;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.post-grid-item .read-more-btn:hover {
  background-color: #1a426f !important;
}

/* 1. Luminează poza de fundal scăzând opacitatea overlay-ului de la 0.7 la 0.5 */
#infrapanel-landing .hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('LINKUL_POZEI_TALE.jpg') center/cover no-repeat !important;
}

/* 2. Fixează dezastrul tipografic și proporțiile stricte pe mobil */
@media (max-width: 768px) {
    #infrapanel-landing .hero-content h1 {
        font-size: 2rem !important; /* Dimensiune controlată */
        line-height: 1.3 !important; /* Spațiere corectă între rânduri */
        text-shadow: none !important; /* Elimină conturul negru ieftin */
        margin-bottom: 20px;
    }
    
    #infrapanel-landing .hero-content p {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0 10px; /* Adaugă aer pe lateral */
    }
    
    #infrapanel-landing .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Spațiu curat între butoane */
        padding: 0 20px;
    }

    #infrapanel-landing .btn {
        width: 100%;
        margin: 0;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

  .infrapanel-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .infrapanel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    border-color: #10b981;
  }
  .infrapanel-btn-green, .infrapanel-btn-white {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 60px;
    padding: 0 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .infrapanel-btn-green {
    background-color: #10b981;
    color: #ffffff !important;
    border: 2px solid #10b981;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .infrapanel-btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.3);
    background-color: #059669;
  }
  .infrapanel-btn-white {
    background-color: transparent;
    color: #475569 !important;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .infrapanel-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #10b981;
    color: #10b981 !important;
  }

.infrapanel-wrapper { font-family: inherit; color: #333; line-height: 1.7; font-size: 16px; }
.infrapanel-title { font-size: 26px; font-weight: bold; color: #1e293b; margin-bottom: 20px; line-height: 1.3; }
.infrapanel-subtitle { font-size: 20px; font-weight: 600; color: #0f172a; margin-top: 35px; margin-bottom: 20px; border-bottom: 2px solid #10b981; display: inline-block; padding-bottom: 5px; }
.infrapanel-text { margin-bottom: 15px; color: #475569; }

.infrapanel-list { padding-left: 20px; margin-bottom: 30px; }
.infrapanel-list-item { margin-bottom: 12px; }
.infrapanel-faq-title { font-size: 18px; color: #1e293b; margin-bottom: 10px; font-weight: 600; }

.infrapanel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 15px; margin-top: 25px; margin-bottom: 40px; }

.infrapanel-card { display: flex; align-items: center; background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.infrapanel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,0.08); border-color: #10b981; }

.infrapanel-icon { flex: 0 0 60px; margin-right: 15px; text-align: center; }
.infrapanel-icon img { max-width: 50px; height: auto; display: block; margin: 0 auto; }
.infrapanel-card-text { font-size: 14px; color: #475569; line-height: 1.5; margin: 0; }

.infrapanel-alert { background-color: #f8fafc; border-left: 4px solid #10b981; padding: 15px 20px; font-size: 14px; color: #475569; margin-bottom: 25px; border-radius: 0 8px 8px 0; }
.infrapanel-btn-wrap { display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px; margin: 30px 0; }

.infrapanel-btn-green, .infrapanel-btn-white, .infrapanel-btn-dark { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 300px; height: 60px; padding: 0 15px; font-weight: 600; border-radius: 6px; text-decoration: none; text-align: center; transition: all 0.2s ease; }

.infrapanel-btn-green { background-color: #10b981; color: #ffffff !important; border: 2px solid #10b981; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.infrapanel-btn-green:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,185,129,0.3); background-color: #059669; }

.infrapanel-btn-dark { background-color: #1e293b; color: #ffffff !important; border: 2px solid #1e293b; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.infrapanel-btn-dark:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30,41,59,0.3); background-color: #0f172a; }

.infrapanel-btn-white { background-color: transparent; color: #475569 !important; border: 2px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.infrapanel-btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: #10b981; color: #10b981 !important; }