/* 
Theme Name: CalParra Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Tema customitzat per a CalParra
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: CalParra-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
.toastProducteAfegit {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    /*animation: fadeinout 5s ease-in-out !important;*/
}
@keyframes fadeinout {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
  }
  .added_to_cart.wc-forward {
    display: none !important;
  }
#calparra_dia_repartiment_wrap {
    background: var(--sections-background-color, #fff);
    border-color: var(--sections-border-color, #d5d8dc);
    border-radius: var(--sections-border-radius, 3px);
    border-style: var(--sections-border-type, solid);
    border-width: 1px;
    display: block;
    margin: var(--sections-margin, 0 0 24px 0);
    padding: var(--sections-padding, 16px 30px);
}
.checkout h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
}
.checkout h3 span {
    font-size: 16px !important;
    font-weight: 400 !important;
}
.error_codi_postal {
    color: red;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.bread-cut-wrapper {
    margin-bottom: 20px;
}
.bread-cut-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
/*.bread-cut-select {
    width: 100%;
    padding: 11px 0px 11px 8px;
    border: 1px solid #ddd;
    border-radius: 0px;
    max-width: 193px;
}*/
.bread-cut-select {
    width: 100%;
    padding: 7px 0px 7px 8px;
    border: 1px solid #ddd;
    border-radius: 0px;
    max-width: 193px;
    margin-top: 22px !important;
}
.products .bread-cut-wrapper {
    margin: 10px 0;
}
.products .bread-cut-select {
    font-size: 0.9em;
    padding: 5px;
}
.bread-cut-shortcode {
    margin: 10px 10px 10px 0px;
}
@media (max-width: 768px) {
    .bread-cut-select {
        padding: 2px !important;
    }
}
.widget_shopping_cart_content dt.variation-Tall, .woocommerce-cart-form__cart-item dt.variation-Tall, .woocommerce-checkout-review-order-table dt.variation-Tall, .wc-block-components-product-details__tall .wc-block-components-product-details__name, .wc-block-cart-item__wrap .wc-block-cart-item__prices {
    display: none !important;
}
.widget_shopping_cart_content dd.variation-Tall, .woocommerce-cart-form__cart-item dd.variation-Tall, .woocommerce-checkout-review-order-table dd.variation-Tall, .wc-block-components-product-details__tall .wc-block-components-product-details__value, .wc-block-cart-item__wrap .wc-block-cart-item__prices {
    margin-left: 0 !important;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif !important;
    font-weight: 400 !important;
    color: var(--order-summary-items-color,#000) !important;
}

@media (max-width: 768px) {
/* Flecha izquierda */
    /*.filter-categorias .elementor-widget-container::before {
        content: "";
        position: absolute;
        left: -20px;
        top: 30%;
        transform: translateY(-50%);
        z-index: 2;
        width: 20px;
        height: 20px;
        background-image: url('/wp-content/uploads/2025/05/left-chevron-1.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        transition: opacity 0.3s ease;
        opacity: 1; 
    }*/
    

    /* Flecha derecha */
    /*.filter-categorias .elementor-widget-container::after {
        content: "";
        position: absolute;
        right: -20px;
        top: 30%;
        transform: translateY(-50%) rotate(180deg); 
        z-index: 2;
        width: 20px;
        height: 20px;
        background-image: url('/wp-content/uploads/2025/05/left-chevron-1.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        transition: opacity 0.3s ease;
        opacity: 1; 
    }
*/


    /* Ocultar la flecha izquierda cuando estamos al inicio */
    /*.filter-categorias .elementor-widget-container.scroll-start::before {
        opacity: 0;
        pointer-events: none;
    }*/

    /* Ocultar la flecha derecha cuando estamos al final */
    /*.filter-categorias .elementor-widget-container.scroll-end::after {
        opacity: 0;
        pointer-events: none;
    }*/
    .header-sticky-scrolled {
        transition: max-width 0.4s ease;
        box-shadow: 0 6px 6px -4px rgba(0, 0, 0, 0.4) !important;
    }
    .header-sticky-scrolled .logo img {
        max-width:55px !important;    
        transition: max-width 0.4s ease;
    }
    .submenu-open .sub-menu{
        position: relative !important;
        width: 100% !important;
    }
    .submenu-open .sub-menu a{
        text-align: center !important;
        display: block !important;
    }
}
@media (min-width: 768px) {
    .header-sticky-scrolled {
        transition: max-width 0.4s ease;
    }
    .header-sticky-scrolled .logo img {
        max-width:85px !important;    
        transition: max-width 0.4s ease;
    }
    .header-sticky-scrolled {
        background-color: rgba(255, 255, 255, .8) !important;
        box-shadow: 0 6px 6px -4px rgba(0, 0, 0, 0.4) !important;
    }
}

/* Oculta los controles nativos del input */
.section-bucle-productos .quantity input[type="number"]::-webkit-inner-spin-button,
.section-bucle-productos .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.section-bucle-productos .quantity input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 18px;
    outline: none;
}

.section-bucle-productos .quantity {
    display: flex;
    align-items: center;
    border: 1px solid darkgrey;
    border-radius: 2px;
    overflow: hidden;
    width: fit-content;
    height: 40px;
    padding: 0;
    background: #fff;
    margin-right: 10px !important;
}

.section-bucle-productos .qty-custom-arrows {
    display: flex;
    flex-direction: column;
    border-left: 1px solid darkgrey !important;
    height: 40px;
    
}

.section-bucle-productos .qty-custom-arrow {
    background: #fff !important;
    border: none !important;
    width: 28px !important;
    height: 20px !important;
    font-size: 26px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.2s !important;
    color: darkgrey !important;
}
@media (min-width: 768px) {
    /*.section-bucle-productos .qty-custom-arrow-up {
        transform: rotate(-90deg);
        
    }*/
    .section-bucle-productos .qty-custom-arrow-down {
        transform: rotate(180deg);
        
    }
    .order-again {
        margin-left: 10px !important;
    }
    .bread-cut-shortcode-no-product {
        margin-top: 60px;
    }
}
@media (max-width: 768px) {
    /*.section-bucle-productos .qty-custom-arrow-up {
        transform: rotate(-90deg);
        
    }*/
    .section-bucle-productos .qty-custom-arrow-down {
        transform: rotate(180deg);
        
    }
    .order-again {
        margin-top: 10px !important;
    }
    .bread-cut-shortcode-no-product {
        display: none !important;
    }
}
.section-bucle-productos .qty-custom-arrow:active {
    background: #eee;
}
/* Estils del filtre */
/*.e-filter {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}*/

/* Botó principal del desplegable (només mòbil) */
.filter-dropdown-toggle, .filter-dropdown-toggle:hover {
    /*display: none;*/
    border: none !important;
    color: #000 !important;
    background-color: transparent !important;
    padding-left: 0px !important;
    /*width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
}

/*.filter-dropdown-toggle:hover {
    border-color: #ccc;
}*/

.filter-dropdown-toggle .icon {
    margin-right: 8px;
    font-size: 18px;
}

.filter-dropdown-toggle .arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.filter-dropdown-toggle.active .arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Contingut del desplegable */

.e-filter.show {
    display: block !important;
}

/* Botons del filtre dins el desplegable */
.e-filter-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.e-filter-item:last-child {
    border-bottom: none;
}

.e-filter-item:hover {
    background-color: #f8f8f8;
}

.e-filter-item[aria-pressed="true"] {
    font-weight: bold;
}


/* Per a desktop (manté l'estil original) */
@media (min-width: 768px) {
    .filter-dropdown-toggle {
        display: none;
    }
    

    /*.e-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        position: static;
    }

    .e-filter {
        display: flex !important;
        position: static;
        border: none;
        box-shadow: none;
        background: none;
        flex-wrap: wrap;
        gap: 8px;
        max-height: none;
        overflow: visible;
    }

    .e-filter-item {
        display: inline-block;
        width: auto;
        padding: 8px 16px;
        background-color: #fff;
        border: 2px solid #ddd;
        border-radius: 20px;
        font-size: 14px;
        border-bottom: 2px solid #ddd;
    }

    .e-filter-item:hover {
        border-color: #007cba;
        background-color: #f0f8ff;
    }

    .e-filter-item[aria-pressed="true"] {
        background-color: #007cba;
        border-color: #007cba;
        color: white;
    }*/
}

/* Per a mòbils */
@media (max-width: 767px) {
    .filter-dropdown-toggle {
        display: block;
    }
    .e-filter {
        display: none !important;
        background-color: #fff;
        border: 2px solid #ddd;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 300px;
        overflow-y: auto;
    }
    
}

.add_to_cart_button {
    font-size: 0 !important; /* Oculta el texto visualmente */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px !important;
}

.add_to_cart_button svg {
    font-size: initial;
}
#calparra_verificacio_completa_wrap {
    margin: 20px;
}