/*
Theme Name: Boxes
Description: Child theme of Astra for the Boxes project
Author: Your Name
Version: 1.0.0
Template: astra
Text Domain: boxes
*/

/* Add your custom styles below this line */

/* ========================================================================
   GLOBAL VARIABLES & RESETS
   ======================================================================== */

:root {
    --background-nav-color: #2b2c78;
    --main-container-bg: #e3e3e3;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Main container background */
#page {
    background-color: var(--main-container-bg);
}


/* Override Astra container backgrounds to match page background */
.woocommerce.ast-separate-container .ast-woocommerce-container {
    background-color: transparent !important;
}

a{
    color: white;
}
.woocommerce-MyAccount-navigation li a{
    color: black;
}
p a , .woocommerce-privacy-policy-link, .showcoupon {
    color: black;
    text-decoration: underline !important;
}
.woocommerce-MyAccount-navigation li a:hover{
    color: rgb(179, 179, 246);
    text-shadow: 0 0 8px rgb(179, 179, 246), 0 0 2px;
}

/* ========================================================================
   HEADER STYLES
   ======================================================================== */

.header-top-row,
.cart-user-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto;
}


/* ========================================================================
   NAVIGATION
   ======================================================================== */


.woocommerce-mini-cart-item {
    display: grid !important;
}
.woocommerce-Price-amount,
span:has(.woocommerce-Price-amount) {
    color: black;
}


#primary-menu{
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-navigation {
    width: 100%;
    margin: 0 auto;
}

.woocommerce-account #page #primary,
.woocommerce-cart #page #primary,
.woocommerce-checkout #page #primary {
    padding-top: 110px;
}

#primary-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 50px;
}
/* Header base styles */
#masthead{ 
    background: var(--background-nav-color);
    color: white;
    padding: 5px 0;
    text-align: center;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
tbody td a {
    color:black;
}
/* Header transparent only on homepage */
.home #masthead,
.front-page #masthead {
    background: transparent;
}

/* Header when scrolled */
#masthead.scrolled {
    background: var(--background-nav-color);
    backdrop-filter: blur(10px);
}


#primary-menu .menu-item{
    color: white;
    transition: color 0.3s, text-shadow 0.3s;

}
#primary-menu .menu-item:hover {
    color: rgb(179, 179, 246);
    text-shadow: 0 0 8px rgb(179, 179, 246), 0 0 2px;
}

.header-icons li:hover{
    color: rgb(179, 179, 246);
    text-shadow: 0 0 8px rgb(179, 179, 246), 0 0 2px;
}

.header-icons ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.header-icons li {
    margin: auto 15px auto 15px;
    color: white;
    transition: color 0.3s, text-shadow 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.header-icons li .dashicons {
    font-size: 1.5rem;
}

.header-icons li a {
    margin-top: 7px;
}

/* Header icon state styles */
.header-cart-item .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}


.header-cart-item .cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff4757;
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    padding: 0 5px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Cart dropdown container */
.boxes-header-cart-wrap {
    position: relative;
}

.boxes-header-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 9999;
    margin-top: 0; /* avoid hover gap */
    pointer-events: none; /* prevent hover loss when hidden */
}

/* Hide dropdown completely on mobile to prevent interference */
@media (max-width: 999px) {
    .boxes-header-cart-dropdown {
        display: none !important;
    }
}

/* Cart hover dropdown only on desktop */
@media (min-width: 1000px) {
    .boxes-header-cart-wrap:hover .boxes-header-cart-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.boxes-header-cart-dropdown .widget_shopping_cart {
    padding: 14px;
}

.boxes-header-cart-dropdown .woocommerce-mini-cart {
    max-height: 380px;
    overflow-y: auto;
}

/* Ensure readable colors inside mini cart dropdown */
/* Keep default text/link colors inside the mini cart; no extra effects */

/* Mini cart subtotal styling */
.boxes-header-cart-dropdown .woocommerce-mini-cart__total {
    border-top: 1px solid #eaeaea;
    padding: 10px 0;
    margin: 10px 0 0 0;
    font-weight: bold;
    color: #333;
}

.boxes-header-cart-dropdown .woocommerce-mini-cart__total strong {
    font-weight: bold;
    color: #333;
}

/* Buttons inside mini cart */
/* Buttons: styled via shared rules below with product list buttons */

/* Product line item layout tweaks */
/* Rely on Woo defaults for mini-cart item layout to keep CSS minimal */

/* Simplify header hover effects (remove glows/shadows) */
#primary-menu .menu-item:hover,
.header-icons li:hover,
.mobile-menu-button:hover,
.mobile-menu-close:hover,
.header-cart-item .cart-link.has-items .dashicons,
.mobile-menu li a:hover {
    text-shadow: none;
}

#primary-menu .menu-item:hover,
.header-icons li:hover {
    color: inherit;
}


.header-user-item .user-link.is-logged-out .dashicons {
    opacity: 0.85;
}

/* ========================================================================
   MOBILE MENU
   ======================================================================== */

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s, text-shadow 0.3s;
}


.mobile-menu-button .dashicons {
    font-size: 1.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    left: 0;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--background-nav-color);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s, text-shadow 0.3s;
}

.mobile-menu-close:hover {
    color: rgb(179, 179, 246);
    text-shadow: 0 0 8px rgb(179, 179, 246), 0 0 2px;
}

.mobile-menu-close .dashicons {
    font-size: 1.5rem;
}
#search-icon{
    display:none;
}

.mobile-navigation {
    width: 100%;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-size: 1.1rem;
    transition: color 0.3s, text-shadow 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li a:hover {
    color: rgb(179, 179, 246);
    text-shadow: 0 0 8px rgb(179, 179, 246), 0 0 2px;
}

/* Mobile Search Form - Uses exact searchform.php styles */
.mobile-search-form {
    display: none;
}

/* ========================================================================
   CAROUSEL STYLES
   ======================================================================== */

.banner-carousel-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.banner-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-widget {
    width: 100vw;
    flex-shrink: 0;
    text-align: center;
    height: 500px; /* Fixed height for all banner widgets */
    overflow: hidden; /* Hide any overflow */
    position: relative;
}

.banner-widget img {
    width: 100%;
    height: 100%; /* Fill the container height */
    display: block;
    max-width: none;
    object-fit: cover; /* Maintain aspect ratio while filling container */
    object-position: center center; /* Explicitly center both horizontally and vertically */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
button:focus, button:hover {
    background-color: transparent;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn .dashicons {
    font-size: 20px;
}

/* Carousel Indicators Container for Banners */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.banner-widget .banner-title {
    margin: 0;
    padding: 10px 0;
    font-size: 1.2rem;
    color: #333;
}



/* (removed) Broad container rule replaced by specific Woo/Single rules below */

/* Enforce centered content on WooCommerce templates */
@media (min-width: 769px) {
    /* Primary site container on WooCommerce contexts */
    body.single-product .site-content > .ast-container,
    body.woocommerce-page .site-content > .ast-container,
    body.ast-woo-shop-archive .site-content > .ast-container,
    /* WooCommerce specific inner container used by Astra */
    body.single-product #primary .ast-woocommerce-container,
    body.ast-woo-shop-archive #primary .ast-woocommerce-container,
    body.woocommerce-cart #primary .ast-woocommerce-container,
    body.woocommerce-checkout #primary .ast-woocommerce-container,
    body.woocommerce-account #primary .ast-woocommerce-container {
        max-width: 1300px !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* WooCommerce shipping placeholders */
ul#shipping_method .envia-placeholder-logo {
    width: 45px;
    height: 45px;
    background-color: #f4f5f7;
    border: 1px solid #d9dde3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6472;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.woocommerce-additional-fields h3 {
    display: none;
}

.boxes-checkout-heading {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
}
button[name="update_cart"] {
    display:none!important;
}
.woocommerce-billing-fields > h3:not(.boxes-checkout-heading) {
    display: none;
}

.select2-selection__rendered{
    min-height: 18px;
}



.cart_totals h2{
    display:none;
}


/* Responsive Design */



@media (max-width: 999px) {
    /* Hide desktop navigation */
    #site-navigation {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
        width: 105px;
    }
    
    /* Adjust header layout for mobile */
    .header-top-row {
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .site-branding {
        flex: 1;
        text-align: center;
    }
    
    .header-search {
        display: none;
    }
    .header-icons a{
        display: none;
    }
    
    
    /* Adjust hero section for mobile */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .about-section,
    .services-section {
        padding: 50px 0;
    }
    .header-icons li {
        margin: auto 5px auto 5px;
    }
    
    #search-icon{
        display: flex;
        cursor: pointer;
    }

    /* Checkout: asegurar márgenes laterales en pantallas < 920px */
    .woocommerce-billing-fields {
        margin: 0 4vw;
    }

}

@media (max-width: 1024px) {
    ul#shipping_method {
        width: auto;
        min-width: auto;
    }
    form[name="checkout"] {
        margin: 0 1.7vw 0 1.7vw;
    }
}

@media (max-width: 921px) {
    .woocommerce-cart .woocommerce-shipping-calculator .button {
        width: auto;
    }
    .woocommerce-cart .cart-collaterals .cart_totals{
        padding: 0;
    }
    .cart-subtotal{display:none!important;}
}

/* Mobile Carousel Styles */
@media (max-width: 768px) {
    .banner-widget {
        height: 300px; /* Smaller height for mobile */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn .dashicons {
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}


@media (max-width: 428px) {
    .banner-desktop {
        height: 205px;
    }
    .banner-widget {
        height: 300px; /* Even smaller height for very small screens */
    }
    
    .mobile-menu-toggle{
        width: auto;
    }
    
    .custom-logo-link{
        margin-left: 25px;
    }

    .banner-widget img {
        width: 100%;
        height: 70%;
        display: block;
        max-width: none;
        object-fit: cover;
        object-position: center center;
        position: absolute;
        top: 34%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Logo visibility control - CSS-only approach */
/* Hide logo when banner exists and header hasn't scrolled yet */
body:has(.banner-carousel-container) #masthead:not(.scrolled) .site-branding .custom-logo-link {
    visibility: hidden;
}

/* Show logo when header is scrolled (banner scrolled past) */
#masthead.scrolled .site-branding .custom-logo-link {
    visibility: visible;
}

/* Desktop Design - 1000px and above */
@media (min-width: 1000px) {
    /* Header adjustments for medium desktop */
    .primary-menu {
        font-size: 0.9rem;
    }  
    #primary-menu li a {
        font-size: 0.9rem;
    }
    .header-icons li .dashicons {
        font-size: 1.3rem;
    }
    .header-icons li {
        margin: auto 7px auto 7px;
    }

    .featured-products-section {
        padding-left: 20px!important;
        padding-right: 20px!important;
    }

    /* Product title character limit for desktop */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem; /* Slightly smaller to fit more characters */
    }
}

/* ========================================================================
   PRODUCT STYLES
   ======================================================================== */

.nuestras-boxes-cta {
    padding: 15px 0 0 0;
    text-align: center;
}

.nuestras-boxes-cta .container {
    max-width: 1300px;
    margin: 0 auto;
}

.nuestras-boxes-btn {
    display: inline-block;
    padding: 5px 50px;
    background-color: transparent;
    color: var(--background-nav-color);
    border: 2px solid var(--background-nav-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nuestras-boxes-btn:hover {
    background-color: var(--background-nav-color);
    color: white;
}

.featured-products-section {
    padding: 15px 0;
    background-color: var(--main-container-bg);
}

.featured-products-section .container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 600;
}

/* Custom WooCommerce Product List Item Styles */
.woocommerce ul.products,
.woocommerce-page ul.products {
    row-gap: 15px;
}

.woocommerce ul.products li.product {
    position: relative;
    padding: 10px 15px 0; /* Reduced padding */
    display: flex;
    flex-direction: column;
    border-radius: 5px;
}

/* Product content wrapper for better alignment */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Product image scaling */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product info container */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    flex-shrink: 0;
}

/* Button container - pushes to bottom */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    margin-top: 10px; /* Add space above button for better centering */
}

/* Custom Add to Cart Button - Full Width, Clean Design */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
/* Reuse same style for mini-cart action buttons */
.boxes-header-cart-dropdown .buttons .button,
.boxes-header-cart-dropdown .buttons .wc-forward {
    display: block;
    padding: 8px 16px; /* Further reduced padding */
    background-color: white;
    color: #333;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem; /* Smaller font */
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover,
.boxes-header-cart-dropdown .buttons .button:hover,
.boxes-header-cart-dropdown .buttons .wc-forward:hover {
    background-color: #333;
    color: white;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Loading state */
.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
    cursor: wait;
}

.woocommerce ul.products li.product .button.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}


/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: #333;
    margin: 6px 0 4px 0; /* Reduced margins */
    line-height: 1.3;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    color: #243949;
    font-weight: 600;
    font-size: 1rem; /* Reduced from 1.15rem */
    margin: 4px 0 6px 0; /* Further reduced margins */
}

/* Sale Price Styling */
.woocommerce ul.products li.product .price del {
    opacity: 0.6;
    font-size: 0.9em;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* ========================================
   PRODUCT CAROUSEL STYLES
   Responsive carousel for mobile/tablet
   ======================================== */

/* Carousel container for products */
.featured-products-section .products-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel track wrapper */
.featured-products-section .products-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel track (the actual UL that moves) */
.featured-products-section .products.products-carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    transform: translateX(0);
}

/* Product items in carousel mode */
.featured-products-section .products.products-carousel-active {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    list-style: none;
    scroll-snap-type: x mandatory; /* Centrado por snap en navegadores con scroll */
    gap: 0; /* evita espacios que corten tarjetas */
}

.featured-products-section .products.products-carousel-active .product {
    flex: 0 0 100%;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

/* Carousel navigation buttons for products */
.products-carousel-prev,
.products-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(36, 57, 73, 0.8);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default, shown in JS when needed */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.products-carousel-prev:hover,
.products-carousel-next:hover {
    background: rgba(36, 57, 73, 1);
    transform: translateY(-50%) scale(1.1);
}

.products-carousel-prev {
    left: 10px;
}

.products-carousel-next {
    right: 10px;
}

.products-carousel-prev .dashicons,
.products-carousel-next .dashicons {
    font-size: 18px;
}

/* Carousel indicators for products */
.products-carousel-indicators {
    display: none; /* Hidden by default */
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.products-carousel-indicators .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(36, 57, 73, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.products-carousel-indicators .carousel-indicator.active {
    background: rgba(36, 57, 73, 1);
    transform: scale(1.3);
}

.products-carousel-indicators .carousel-indicator:hover {
    background: rgba(36, 57, 73, 0.6);
}

/* Fallback: Stacked layout if carousel fails */
.products.products-fallback {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products.products-fallback .product {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Desktop: Keep grid layout (carousel inactive) */
@media (min-width: 1000px) {
    .featured-products-section .products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .featured-products-section .products .product {
        flex: none;
        max-width: none;
    }
    
    /* Hide carousel controls on desktop */
    .products-carousel-prev,
    .products-carousel-next,
    .products-carousel-indicators {
        display: none !important;
    }
}

/* Tablet: 3 columnas, sin carrusel */
@media (min-width: 768px) and (max-width: 999px) {
    .section-title {
        font-size: 1.5rem;
        margin-left: 1.7vw;
    }
    .featured-products-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .featured-products-section .products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    /* Anula reglas de WooCommerce (columns-*) para que la grilla funcione */
    .featured-products-section .products.products-carousel-track { 
        transform: none !important; /* por si quedó transform al redimensionar */
    }
    .featured-products-section .products .product {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }
    .featured-products-section .products-carousel-container { padding: 0; overflow: visible; }
    .products-carousel-prev,
    .products-carousel-next,
    .products-carousel-indicators {
        display: none !important;
    }
}

/* Desktop: 4 columnas, sin carrusel */
@media (min-width: 1000px) {
    .featured-products-section .products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .featured-products-section .products.products-carousel-track { transform: none !important; }
    .featured-products-section .products .product {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }
    .featured-products-section .products-carousel-container { padding: 0; overflow: visible; }
    .products-carousel-prev,
    .products-carousel-next,
    .products-carousel-indicators {
        display: none !important;
    }
}

/* Mobile: Show 1 product in carousel */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
        margin-left: 1.7vw;
    }
    
    /* Hacer las cards más pequeñas para mostrar tarjetas adyacentes */
    .featured-products-section .products.products-carousel-active .product {
        flex: 0 0 75%; /* Tarjeta ocupa 75% para mostrar las laterales */
        max-width: 300px;
        margin: 0 5px; /* Pequeño margen para separación */
        scroll-snap-align: center; /* centra cada tarjeta */
        box-sizing: border-box; /* incluye padding en el ancho */
        transform: scale(0.95); /* Reduce ligeramente el tamaño */
    }
    
    /* Reducir tamaños internos en mobile */
    .woocommerce ul.products li.product {
        padding: 8px 12px 0; /* Padding más pequeño en mobile */
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__link {
        margin-bottom: 6px; /* Menor espacio en mobile */
    }
    
    .woocommerce ul.products li.product img {
        max-height: 180px; /* Limita altura de imagen en mobile */
        object-fit: cover;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.85rem; /* Título más pequeño en mobile */
        margin: 4px 0 3px 0;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 0.9rem; /* Precio más pequeño en mobile */
        margin: 3px 0 5px 0;
    }
    
    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .added_to_cart {
        padding: 6px 12px; /* Botón más pequeño en mobile */
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .products-carousel-prev,
    .products-carousel-next {
        width: 35px;
        height: 35px;
    }

    .products-carousel-prev .dashicons,
    .products-carousel-next .dashicons {
        font-size: 14px;
    }

    .products-carousel-indicators {
        display: flex;
        margin-top: 20px;
    }
}

/* ========================================================================
   PAGE TEMPLATES
   ======================================================================== */

/* Main page container */
.page-content-container {
    margin: 80px 30px 60px;
}

.page-inner {
    background: white;
    padding: 40px;
}

.page-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 30px 0;
    font-weight: 600;
}

.page-content {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
}

.page-content p {
    margin-bottom: 1.2em;
}

/* Contact layout - two columns on desktop */
.contact-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 0 0 50%;
    max-width: 600px;
}

.contact-info {
    flex: 1;
    color: #333;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 1.2em;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #243949;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .submit-button {
    display: inline-block;
    padding: 12px 32px;
    background-color: white;
    color: #333;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .submit-button:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

.form-response {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
}

.form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-content-container {
        margin-top: 100px;
    }
    
    .page-inner {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    /* Stack contact layout on mobile */
    .contact-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
    
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .contact-form .submit-button {
        width: 100%;
        padding: 12px;
    }
}

/* ========================================================================
   FOOTER STYLES
   ======================================================================== */

.boxes-footer {
    background: var(--background-nav-color);
    color: white;
    padding: 30px 20px 15px;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-menu {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-social a:hover {
    color: rgb(179, 179, 246);
    text-shadow: 0 0 8px rgb(179, 179, 246);
}

.footer-copy {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

.footer-copy p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* WhatsApp shipping coordination block */
.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp {
    display: flex;
}
.is-whatsapp span span {
    align-self: start!important;
}
.is-whatsapp span a span {
    color:white!important;
}
label:has(> .is-whatsapp) {
    justify-content: left!important;
}

.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp .wc-shipping-method__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
}

.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp .wc-shipping-method__title {
    font-weight: 600;
    color: inherit;
}

.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp .wc-shipping-method__description {
    font-size: 0.9rem;
    color: var(--boxes-text-muted, #555555);
}

.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp .wc-shipping-method__cta {
    align-self: flex-start;
    padding: 0.55rem 1.35rem;
    border:solid 1px #25D366;
    background-color:#25D366; 
    color: #25D366;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp .wc-shipping-method__cta:hover,
.woocommerce .woocommerce-shipping-methods .shipping_method + label .wc-shipping-method.is-whatsapp .wc-shipping-method__cta:focus {
    background-color: #1fb759;
    color: #ffffff;
}

.woocommerce .woocommerce-shipping-methods .shipping_method--whatsapp {
    display: none;
}

.page-whatsapp-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
}

.page-whatsapp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    justify-content: center;
    width: 100%;
}

.page-whatsapp-cta__btn:hover,
.page-whatsapp-cta__btn:focus {
    background-color: #1fb759;
    color: #ffffff;
}

.page-email-cta__btn {
    background-color: #1a73e8;
}

.page-email-cta__btn:hover,
.page-email-cta__btn:focus {
    background-color: #1557b0;
    color: #ffffff;
}

.page-whatsapp-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.page-whatsapp-cta__description {
    align-self: center;
    margin: 0;
    color: var(--boxes-text-muted, #555555);
}


.whatsapp-sticky {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
}

.whatsapp-sticky__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background-color: #25D366;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-sticky__btn:hover,
.whatsapp-sticky__btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 211, 102, 0.35);
    background-color: #1fb759;
    color: #ffffff;
}

.whatsapp-sticky__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.1rem;
}

.whatsapp-sticky__label {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .whatsapp-sticky {
        right: 1rem;
        bottom: 1rem;
    }

    .whatsapp-sticky__btn {
        padding: 0.75rem;
        width: 3.2rem;
        height: 3.2rem;
        justify-content: center;
    }

    .whatsapp-sticky__label {
        display: none;
    }

    .whatsapp-sticky__icon {
        width: 2.2rem;
        height: 2.2rem;
    }
}