/* ==========================================================================
   PANOU DE CONTROL SETĂRI GLOBALE (VARIABILE)
   ========================================================================== */
:root {
    --inaltime-butoane-pc: 45px;          
    --latime-buton-cos-pc: 180px;         
    --aliniere-stoc-pc: left;             
    --aliniere-bule-pc: flex-start;       
    --inaltime-butoane-mobil: 45px;       
    --latime-buton-cos-mobil: 100%;       
    --aliniere-stoc-mobil: center;        
    --aliniere-bule-mobil: center;        
    --spatiu-cantitate-inima: 15px;       
    --culoare-stoc-suficient: #5da035;    
    --culoare-stoc-redus: #e6a23c;        
    --culoare-stoc-epuizat: #d9534f;      
}

/* ==========================================================================
   SETĂRI GLOBALE & HEADER (Navigație, Meniu, Căutare)
   ========================================================================== */
.home .entry-categories,
.home div.entry-categories {
    display: none !important;
}
/* Corectare contrast TOTAL carduri Blog - DOAR PE HOMEPAGE (WCAG Pass) */
.home .wdt-post-entry .blog-entry .entry-date,
.home .wdt-post-entry .blog-entry .entry-date i,
.home .wdt-post-entry .blog-entry .entry-categories a,
.home .wdt-post-entry .blog-entry .entry-body p,
.home .wdt-post-entry .blog-entry .entry-title h4 a,
.home article.blog-entry .entry-categories a {
    color: #111111 !important;
    font-weight: 700 !important;
}
.home article.blog-entry .entry-categories a {
    color: # !important;
    font-weight: 700 !important;
}
.home .wdt-post-entry .blog-entry .entry-categories a:hover,
.home .wdt-post-entry .blog-entry .entry-title h4 a:hover {
    color: #8c5a35 !important;
}


body:not(.logged-in) .mobile-user-actions .m-view-logged-in { display: none !important; }
body.logged-in .mobile-user-actions .m-view-logged-out { display: none !important; }

@media (max-width: 768px) {
    body { overflow-x: hidden !important; width: 100% !important; }
    .elementor-nav-menu--dropdown a, .wdt-mobile-menu a, .mobile-menu li a, li.menu-item a {
        font-size: 14px !important; white-space: normal !important; line-height: 1.4 !important;
    }
}

html[lang="ro-RO"] .wdt-user-register-menu-icon .icotype-label { font-size: 0 !important; }
html[lang="ro-RO"] .wdt-user-register-menu-icon .icotype-label:after { content: "CONT NOU"; font-size: 14px; font-weight: 600; }
html[lang="ro-RO"] .wdt-user-authlink-menu-icon a[href*="my-account"] .icotype-label { font-size: 0 !important; }
html[lang="ro-RO"] .wdt-user-authlink-menu-icon a[href*="my-account"] .icotype-label:after { content: "AUTENTIFICARE"; font-size: 14px; font-weight: 600; }
html[lang="ro-RO"] .wishlist-item .icotype-label { font-size: 0 !important; }
html[lang="ro-RO"] .wishlist-item .icotype-label:after { content: "FAVORITE"; font-size: 14px; font-weight: 600; }

.mobile-user-actions { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; text-align: center; }
.mobile-user-actions a { color: #000 !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0px; text-decoration: none; text-transform: uppercase; }
.mobile-user-actions .m-sep { margin: 0 8px; color: #bbb; font-weight: 300; }

/* Ascunde H1 vizual, dar îl păstrează pentru Google SEO */
.seo-hidden-h1 { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* BUTON AUTENTIFICARE HEADER (RO vs EN) */
html:lang(ro-RO) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(2),
html:lang(ro) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(2) { display: none !important; }
html:lang(ro-RO) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text,
html:lang(ro) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text { font-size: 0 !important; }
html:lang(ro-RO) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text::after,
html:lang(ro) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text::after { content: "AUTENTIFICARE / ÎNREGISTRARE"; font-size: 14px !important; display: inline-block; font-weight: 600; }

html:lang(en-GB) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(2),
html:lang(en-US) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(2),
html:lang(en) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(2) { display: none !important; }
html:lang(en-GB) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text,
html:lang(en-US) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text,
html:lang(en) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-text { font-size: 0 !important; }
html:lang(en-GB) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text::after,
html:lang(en-US) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text::after,
html:lang(en) body:not(.logged-in) .elementor-element-1d1f328 .elementor-icon-list-item:nth-child(1) .elementor-icon-list-text::after { content: "LOGIN / REGISTER"; font-size: 14px !important; display: inline-block; font-weight: 600; }

/* SEARCH BAR FIBOSEARCH */
.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp { height: 35px !important; }
.dgwt-wcas-style-solaris .dgwt-wcas-search-input { height: 35px !important; min-height: 35px !important; line-height: 35px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 14px !important; }
.dgwt-wcas-style-solaris .dgwt-wcas-search-submit { height: 35px !important; min-height: 35px !important; }
.dgwt-wcas-details-wrapp span.dgwt-wcas-stock, .dgwt-wcas-details-wrapp .dgwt-wcas-details-desc, .dgwt-wcas-details-wrapp .dgwt-wcas-details-hr, .dgwt-wcas-details-wrapp .quantity { display: none !important; }
.dgwt-wcas-details-wrapp .quantity.quantity-with-plusminus, .dgwt-wcas-details-wrapp form .quantity { display: none !important; }
.dgwt-wcas-details-wrapp .dgwt-wcas-details-product-title { font-size: 18px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-price { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 15px !important; justify-content: flex-start !important; }
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-price .stock { margin: 0 !important; }
.dgwt-wcas-details-wrapp .dgwt-wcas-details-product-sku { display: none !important; }

/* SOLUȚIA PENTRU BLOCURILE DE CONT PE MOBIL (RO vs EN) */
.bloc-cont-ro, .bloc-cont-en { display: none !important; }
html:lang(ro-RO) .bloc-cont-ro, html:lang(ro) .bloc-cont-ro { display: block !important; }
html:lang(en-GB) .bloc-cont-en, html:lang(en-US) .bloc-cont-en, html:lang(en) .bloc-cont-en { display: block !important; }

/* ==========================================================================
   TRADUCERE FORȚATĂ BUTON "READ MORE" (ORICUNDE PE SITE)
   ========================================================================== */
html[lang*="ro"] .entry-button a,
html[lang*="ro"] .wdt-post-entry .entry-button a {
    font-size: 0 !important;
}

html[lang*="ro"] .entry-button a::before,
html[lang*="ro"] .wdt-post-entry .entry-button a::before {
    content: "CITEȘTE MAI MULT" !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

html[lang*="ro"] .entry-button a svg,
html[lang*="ro"] .wdt-post-entry .entry-button a svg {
    margin-left: 8px !important;
}

/* Ascunde linkurile moarte din meniul de mobil pentru boti */
.close-nav a[href="javascript:void(0);"], .go-back a[href="javascript:void(0);"] { pointer-events: auto; }

/* Ascunde butonul Cumpără Acum cu eroare de contrast de pe Homepage */
.elementor-element-9dbf58d, 
#wdt-button-9dbf58d {
    display: none !important;
}

/* Fix Aspect Ratio Logo Header */
.wdt-logo-container img[alt*="CBD Mania România"] {
    height: auto !important;
    object-fit: contain !important;
}


/* Corectare contrast butoane ADAUGA IN COS (Grile WDT) - DOAR PE HOMEPAGE */
body.home .wdt-products-container a.wdt-button.add_to_cart_button,
body.home ul.products li.product a.button.add_to_cart_button {
    background-color: #8c5a35 !important; /* Maro închis pentru contrast */
    color: #ffffff !important; /* Text alb */
    border: none !important;
    font-weight: 700 !important;
}

body.home .wdt-products-container a.wdt-button.add_to_cart_button:hover,
body.home ul.products li.product a.button.add_to_cart_button:hover {
    background-color: #222222 !important; /* Negru la hover */
    color: #ffffff !important;
}