/*
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=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Colors 
#c8003a
#000200
*/

html, body {
    font-family: "Roboto", 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: 280px;
    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;
    font-family: 'Roboto', sans-serif !important;
}

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

.wp-block-group a:hover {
    color: #c8003a;
    font-family: 'Roboto', sans-serif !important;
}

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

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

/* 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: #fff;
}

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

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: 25px;
}

.contact_form input, .contact_form textarea {
    border: 1px solid #ccc;
    padding: 7px;
    margin-top: 10px;
}

.contact_form a {
    color: #c8003a;
}

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

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

/* 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;
}


/* 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;
    }
}