/*
Theme Name: Dualvalcost WP
Theme URI: https://dualcv.net/dualvalcost
Author: Your Name
Author URI: https://dualcv.net
Description: WordPress theme optimized for WooCommerce and Elementor.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dualvalcost
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* Colors 
#c8003a
#000200
*/

html, body {
    font-family: "Poppins", sans-serif;
}

a.hfe-menu-item {
    color: #000200;
}

p {
    margin-bottom: 1rem !important;
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0 0 1rem 0;
}

/* Asigură că butonul dropdown are un pointer */
.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Micșorează iconița săgeată */
.dropdown-toggle i {
    font-size: 14px;
}

/* Clase pentru animare meniu mobil */
.translate-x-0 {
    transform: translateX(0);
}
.-translate-x-full {
    transform: translateX(-100%);
}

/* Dropdown-ul este inițial ascuns */
[data-dropdown] {
    display: none;
}

/* Header block 2 SVG */
li.wp-social-link.wp-block-social-link svg:hover {
    fill: #c8003a !important;
}

/* Offcanvas sidebar */
.translate-x-full {
    transform: translateX(100%);
}

.translate-x-0 {
    transform: translateX(0);
}

#desktop-offcanvas {
    min-width: 350px;
    transition: transform 0.3s ease-in-out;
}

.wp-block-group {
    box-sizing: border-box;
    margin: 15px 0px;
    border-bottom: 1px solid #f2f2f2;
}

h2.wp-block-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 20px;
}

ul.wp-block-latest-posts__list.wp-block-latest-posts li, ul.wp-block-archives-list.wp-block-archives li, ul.wp-block-categories-list.wp-block-categories li {
    margin: 15px 0px;
}

label.wp-block-search__label {
    font-size: 1rem;
    font-weight: 700;  
}

.wp-block-group a:hover {
    color: #c8003a;
}

.wp-block-search__input {
    border: 1px solid #f2f2f2;
}

button.wp-block-search__button.wp-element-button {
    background-color: #f2f2f2;
    margin: 0;
    padding: 10px;
}

/* Menu */

/*
 * Acestea sunt stilurile CSS care trebuie incluse (injectate din JS)
 * pentru a funcționa corect cu modificările din PHP.
 */
@media (max-width: 767px) {
    /* -------------------------------------- */
    /* STILURI PENTRU ASCUNDERE/ANIMARE MOBIL */
    /* -------------------------------------- */
    .submenu-dropdown,
    .submenu-dropdown-nested {
        /* Resetări de layout necesare pentru a permite max-height */
        position: static !important;
        display: none; 
        max-height: 0;
        overflow: hidden;
        
        /* Design mobil specific */
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid #eee !important;
        background: #f9fafb !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        
        /* Tranziția critică */
        transition: max-height 0.3s ease-in-out;
    }

    /* Starea deschisă: max-height mare pentru a simula slide-down */
    .submenu-dropdown.mobile-open,
    .submenu-dropdown-nested.mobile-open {
        display: block !important;
        max-height: 1000px !important; /* Suficient de mare */
        padding: 0.5rem 0 !important;
    }
    
    /* Pe mobil, săgeata de pe link-ul principal este ascunsă, dar săgeata submeniu este vizibilă */
    /* Săgeata Nivel 1+ (dreapta) trebuie să fie vizibilă */
    .submenu-item .submenu-indicator {
        display: none !important;
    }

    /* Previne mișcarea sau rotația nedorită pe mobil */
    .submenu-item .submenu-indicator-icon {
        transform: none !important; 
    }
    
    /* Ajustăm spațiul pentru butonul toggle */
    .has-submenu > a {
        padding-right: 3rem !important; 
    }
    
    /* Pe mobil, rotim săgeata din butonul toggle */
    .submenu-toggle i.fa-chevron-down {
        transition: transform 0.3s ease;
    }
}

/* -------------------------------------- */
/* STILURI DESKTOP (păstrate pentru hover) */
/* -------------------------------------- */
@media (min-width: 768px) {
    /* Starea inițială (ascunsă la desktop) */
    .submenu-dropdown,
    .submenu-dropdown-nested {
        display: block !important;
        position: absolute !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
    }

    /* Hover/Focus pe desktop (folosind clasele generate de PHP) */
    .has-submenu:hover > .submenu-dropdown,
    .submenu-item:hover > .submenu-dropdown-nested,
    .has-submenu:focus-within > .submenu-dropdown,
    .submenu-item:focus-within > .submenu-dropdown-nested {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    
    /* Rotire săgeată Nivel 0 la hover */
    .has-submenu:hover > a .submenu-indicator-desktop .submenu-indicator-icon {
        transform: rotate(180deg);
    }

    /* Ascunde butonul toggle pe desktop */
    .submenu-toggle { 
        display: none !important; 
    }
    
    /* Săgeata submeniu nivel 1+ se aliniază la dreapta */
    .submenu-dropdown-nested .submenu-indicator {
        display: flex !important;
    }
}

/* Modal buton search */
.hidden {
    display: none;
}

#search-modal {
    transition: opacity 0.3s ease-in-out;
}

/* Stilizare Footer */

footer.site-footer {
    background-color: #000200;
    color: #fff;
}

.footer-widget {
    padding: 50px 20px;
}

.footer-widget p {
    line-height: 35px;
}

.site-footer a {
    color: #c8003a'
}

.site-footer a:hover {
    color: #fff;
}

h6.wp-block-heading {
    color: #c8003a;
    border-style: dotted;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

ul.wp-block-list li {
    margin: 10px 0;
}

ul.wp-block-list a:hover {
    color: #c8003a;
}

hr.wp-block-separator.has-alpha-channel-opacity {
    border-color: red;
    margin: 15px 0px;
    border-style: solid;
    opacity: 0.25;
}

.wp-block-separator {
    border: none;
    border-top: 0px solid;
}

/* WooCommerce */
li.product-item-custom {
    list-style-type: none;
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}
/* Stilizare Modal WooCommerce */
.woocommerce-message-modal {
    position: fixed;
    bottom: 10%;
    right: 20px;
    width: 320px;
    background-color: #ffffff;
    border: 2px solid #c53030;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Afișare Modal */
.woocommerce-message-modal.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Iconița de închidere */
.woocommerce-message-modal .close-modal {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #c53030;
}

/* Buton View Cart */
.woocommerce-message-modal .button {
    background-color: white !important;
    color: #c53030 !important; /* Red-700 */
    border: 2px solid #c53030;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 10px;
}

/* Iconița pentru View Cart */
.woocommerce-message-modal .button::before {
    content: "\f06e"; /* FontAwesome fa-eye */
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    margin-right: 8px;
}

/* Efect hover pe buton */
.woocommerce-message-modal .button:hover {
    background-color: #c53030 !important;
    color: white !important;
}

.woocommerce .quantity .qty {
    text-align: center;
    padding: 5px;
    border: 1px solid #9ca3af;
    border-radius: 5px;
}

/* Stelutele din rating vor fi galbene (Tailwind yellow-400) */
.star-rating span {
    color: #FBBF24 !important;
}
/* Textarea din formularul de rating va avea bordură de 1px (border-gray-300) */
#comment {
    border: 1px solid #D1D5DB !important;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

span.woocommerce-Price-amount.amount {
    color: rgb(107 114 128);
}
/* Suprascrie stilizarea prețurilor pentru produs */
div.mt-2 > span.text-lg.font-bold.text-gray-900 {
    font-size: 1.125rem !important;  /* echivalent cu text-lg */
    font-weight: 700 !important;     /* echivalent cu font-bold */
    color: #1a202c !important;        /* echivalent cu text-gray-900 */
}

div.mt-2 > span.text-sm.text-gray-500.line-through.ml-2 {
    font-size: 0.875rem !important;   /* echivalent cu text-sm */
    color: #111 !important;        /* echivalent cu text-gray-500 */
    text-decoration: line-through !important;
    margin-left: 0.5rem !important;    /* echivalent cu ml-2 */
}

button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
    visibility: hidden;
}

.woocommerce-message {
    border-top-color: #fff;
    background-color: #fff;
}
.woocommerce .woocommerce-error .button, .woocommerce .woocommerce-info .button, .woocommerce .woocommerce-message .button, .woocommerce-page .woocommerce-error .button, .woocommerce-page .woocommerce-info .button, .woocommerce-page .woocommerce-message .button {
    float: none;
    margin: 0px auto;
}

/* ==========================
   Personalizare Cart Order Summary
   ========================== */

/* Fundal gri, padding și border-radius pentru blocul de total comandă */
.wp-block-woocommerce-cart-order-summary-block {
    background-color: #f5f5f5; /* Fundal gri deschis */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd; /* Bordură subtilă */
}

/* Butonul "Proceed to Checkout" - roșu 700, text alb, border-radius */
.wp-block-woocommerce-cart-order-summary-block .checkout-button,
.woocommerce a.checkout-button {
    display: block;
    width: 100%;
    background-color: #c53030; /* Roșu 700 */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

/* Hover pentru buton */
.wp-block-woocommerce-cart-order-summary-block .checkout-button:hover,
.woocommerce a.checkout-button:hover {
    background-color: #a12020; /* Roșu mai închis la hover */
}

/* Ajustare spațiere pentru colateralele coșului */
.cart-collaterals {
    margin-top: 20px;
}

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    padding: 10px;
}

.wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block.is-large, .wp-block-woocommerce-checkout.alignwide.wc-block-checkout {
    padding: 35px;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained, button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    background-color: #c8003a;
    border-radius: 10px;
    color: #fff;
    margin-top: 20px;
}

label {
    display: block;
    margin: 10px 0;
}

.swiper-container.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
    padding: 20px 0;
}

/* Contact Form */
.contact_form label {
  font-weight: 700;
  margin-bottom: 1px;
}

.contact_form input {
    border: 1px solid #ccc;
    padding: 10px 7px;
    margin-top: 5px;
    max-width: 250px;
    border-radius: 20px;
    background-color: #f3f5f3;
}

.contact_form input:hover {
    background-color: #fff;
}

.contact_form textarea {
    border: 1px solid #ccc;
    padding: 7px;
    margin-top: 5px;
    border-radius: 20px;
    background-color: #f3f5f3;
}

.contact_form textarea:hover {
    background-color: #fff;
}

.contact_form select {
    border: 1px solid #ccc;
    padding: 7px;
    margin-top: 5px;
    border-radius: 20px;
    background-color: #f3f5f3;
}

.contact_form select:hover {
    background-color: #fff;
}

.contact_form a {
  color: #111;
}
.contact_form a:hover {
  color: #f58220;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
  background-color: #f58220;
  color: #fff;
  padding: 10px 25px;
  border-radius: 15px;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
  background-color: #111;
}

/* Subscribe */

.subscribe p {
    display: flex;
    align-items: center; /* Aliniere verticală */
    gap: 10px; /* Spațiu între input și buton */
}

.subscribe input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px; /* Ajustează lățimea după necesități */
}

.subscribe br {
    display: none;
}

.subscribe button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #111;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* =========================================
   STILIZARE WIDGET TAG CLOUD (Etichete)
   ========================================= */

/* 1. Starea Normală (Default) */
.widget_tag_cloud a,
.wp-block-tag-cloud a {
    display: inline-block;             /* Permite setarea marginilor și padding-ului */
    border: 1px solid #e5e7eb;         /* Contur gri deschis subtil */
    background-color: #ffffff;         /* Fundal alb */
    color: #555555;                    /* Text gri închis (nu negru complet pentru eleganță) */
    
    padding: 6px 14px;                 /* Spațiere interioară (sus-jos stânga-dreapta) */
    margin-right: 6px;                 /* Spațiu între etichete */
    margin-bottom: 8px;                /* Spațiu între rânduri */
    
    border-radius: 99px;               /* Colțuri complet rotunjite (stil pilulă) */
    font-size: 0.85rem !important;     /* Mărime text uniformă */
    font-weight: 500;                  /* Grosime text medie */
    text-decoration: none;             /* Elimină sublinierea */
    text-transform: capitalize;        /* Prima literă mare (opțional) */
    
    transition: all 0.3s ease;         /* Animație fluidă la hover */
}

/* 2. Starea la Hover (Când pui mouse-ul) */
.widget_tag_cloud a:hover,
.wp-block-tag-cloud a:hover {
    border-color: #f2862b;             /* Conturul devine portocaliu */
    background-color: #f2862b;         /* Fundalul devine portocaliu */
    color: #ffffff;                    /* Textul devine alb */
    transform: translateY(-2px);       /* Efect ușor de ridicare */
    box-shadow: 0 4px 6px -1px rgba(242, 134, 43, 0.3); /* Umbră portocalie discretă */
}

/* 3. (Opțional) Numărul de postări din etichetă - dacă este afișat */
.widget_tag_cloud a .tag-link-count {
    background: #111;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

.mobile-call-button {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
  }
}

/* Media */
@media (min-width: 768px) {
    .show-dropdown-desktop {
        display: block !important;
        position: absolute;
        left: 100%;
        top: 0;
        margin-left: 5px;
        background-color: white;
        border: 1px solid #ccc;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    }

}

@media (max-width: 767px) {
    .show-dropdown-mobile {
        display: block !important;
        position: relative;
        left: 0;
        top: auto;
        margin-left: 0;
        background-color: white;
        border: 1px solid #ccc;
        box-shadow: none;
        z-index: 999;
    }
    .footer-widget {
        text-align: center;
    }
    .woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering {
        float: none;
        text-align: center;
    }
    img.wp-image-429 {
        margin: 0px auto;
    }
    .footer-widget {
        padding: 10px;
    }
    hr.wp-block-separator.has-alpha-channel-opacity {
        width: 50%;
        margin: 0px auto;
    }
    .contact_form input, .contact_form textarea {
          max-width: 100%;
      }
    .footer-widget {
        padding: 50px 20px 10px;
    }
}
}