/*
 * iTech Custom Styles
 * Estética minimalista (Referencia: Bestmart)
 * Colores: Púrpura #2EA8FF, Fondo Blanco, Textos Negros/Grises
 * Fuentes: Montserrat (Títulos), Roboto (Cuerpo)
 */

/* ==========================================================
   GLOBAL WOOCOMMERCE TYPOGRAPHY & COLORS
   ========================================================== */
body.woocommerce,
body.woocommerce-page {
    font-family: 'Roboto', sans-serif;
    color: #333333;
    background-color: #FFFFFF;
}

.woocommerce h1, .woocommerce h2, .woocommerce h3, .woocommerce h4, .woocommerce h5, .woocommerce h6,
.woocommerce-page h1, .woocommerce-page h2, .woocommerce-page h3, .woocommerce-page h4, .woocommerce-page h5, .woocommerce-page h6 {
    font-family: 'Montserrat', sans-serif;
    color: #111111;
    font-weight: 600;
}

/* ==========================================================
   SINGLE PRODUCT PAGE
   ========================================================== */
.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    background-color: #FFFFFF;
}

/* Product Image Gallery */
.woocommerce div.product div.images {
    width: 60%; /* Ajustado al requerimiento del Master Prompt (60%) */
    border: none; /* Diseño más limpio sin borde tosco */
    padding: 0;
    background-color: #FFFFFF;
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Product Summary (Right column) */
.woocommerce div.product div.summary {
    width: 38%; /* Ajustado al requerimiento del Master Prompt (40% aprox para dejar margen) */
    padding-left: 30px;
}

/* Product Title */
.woocommerce div.product .product_title {
    font-size: 1.4rem; /* Reducido para mayor elegancia */
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Product Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #2EA8FF !important; /* Púrpura de énfasis */
    font-size: 1.4rem !important; /* Reducido */
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Add to Cart Form & Button */
.woocommerce div.product form.cart {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #EEEEEE;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
    background-color: #2EA8FF !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem; /* Reducido de 1.1rem */
    padding: 12px 25px; /* Reducido de 15px 30px */
    border-radius: 8px; /* Rounded corners */
    border: none;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Make it wide */
    text-align: center;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
    background-color: #1A91E5 !important; /* Slightly darker purple on hover */
}

/* Quantity Input */
.woocommerce div.product form.cart .quantity input.qty {
    height: 54px;
    border-radius: 8px;
    border: 1px solid #DDDDDD;
    width: 80px;
    font-size: 1.1rem;
    text-align: center;
}

/* Product Meta (SKU, Categories) */
.woocommerce div.product .product_meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #EEEEEE;
    font-size: 0.9rem;
    color: #666666;
}

.woocommerce div.product .product_meta a {
    color: #333333;
    text-decoration: none;
}
.woocommerce div.product .product_meta a:hover {
    color: #2EA8FF;
}

/* ==========================================================
   ARCHIVE / SHOP PAGE (CATALOG) FIXES
   ========================================================== */
/* Layout Base: Sidebar a la izquierda, productos a la derecha */
.woocommerce-page.archive .site-content > .container,
.woocommerce.archive .site-content > .container,
.woocommerce-page.archive .site-main-wrapper,
.woocommerce-page.archive .elementor-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Sidebar de Filtros (Izquierda) */
.woocommerce-page.archive #secondary,
.woocommerce-page.archive aside.widget-area {
    width: 23% !important;
    padding-right: 20px;
    float: left !important; /* Respaldo para temas antiguos */
}

/* Contenedor Principal de Productos (Derecha) */
.woocommerce-page.archive #primary,
.woocommerce.archive #primary,
.woocommerce-page.archive .site-main,
.woocommerce.archive .site-main {
    width: 75% !important;
    float: left !important;
    padding: 0 !important;
}

/* Forzar cuadrícula a 4 columnas específicamente para Elementor Archive Products */
.elementor-products-grid ul.products,
.elementor-widget-woocommerce-archive-products ul.products,
.itech-catalogo ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
}
.elementor-products-grid ul.products li.product,
.elementor-products-grid ul.products li.product.first,
.elementor-products-grid ul.products li.product.last,
.elementor-widget-woocommerce-archive-products ul.products li.product,
.elementor-widget-woocommerce-archive-products ul.products li.product.first,
.elementor-widget-woocommerce-archive-products ul.products li.product.last,
.itech-catalogo ul.products li.product,
.itech-catalogo ul.products li.product.first,
.itech-catalogo ul.products li.product.last {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
}

/* Asegurar que el contenido crezca y empuje el botón hacia abajo */
.itech-catalogo ul.products li.product .woocommerce-LoopProduct-link {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Alinear el botón siempre abajo */
.itech-catalogo ul.products li.product .button.add_to_cart_button,
.itech-catalogo ul.products li.product .button {
    margin-top: auto !important;
}

/* Corregir tipografía gigante del título en el catálogo */
.elementor-widget-woocommerce-archive-products .woocommerce-loop-product__title,
.itech-catalogo .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    line-height: 1.2 !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}

@media (max-width: 768px) {
    .woocommerce-page.archive #secondary,
    .woocommerce-page.archive #primary {
        width: 100% !important;
    }
    .woocommerce-page.archive ul.products,
    .woocommerce.archive ul.products {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columnas en móviles */
    }
}

/* ==========================================================
   TABS & REVIEWS
   ========================================================== */
.woocommerce div.product .woocommerce-tabs {
    width: 100%;
    margin-top: 50px;
    border-top: 2px solid #F5F5F5;
    padding-top: 30px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 10px 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #2EA8FF;
    border-bottom: 3px solid #2EA8FF;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: #FFFFFF;
    padding: 20px 0;
}

/* ==========================================================
   HEADER, FOOTER & HOME (BESTMART STYLE GLOBAL CSS)
   ========================================================== */

/* Header - Clean, white, subtle shadow, more padding */
header, .elementor-location-header {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #EEEEEE;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 15px 0; /* More air */
}

/* Header Search Bar - Pill Style (Bestmart) */
header input[type="search"], .elementor-location-header input[type="search"], .elementor-widget-search-form input[type="search"] {
    border: 1px solid #E0E0E0 !important;
    border-radius: 50px !important; /* Pill shape */
    background-color: #F8F9FA !important;
    padding: 12px 20px !important;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

header input[type="search"]:focus, .elementor-location-header input[type="search"]:focus {
    border-color: #2EA8FF !important;
    box-shadow: 0 0 5px rgba(46, 168, 255, 0.2) !important;
    outline: none !important;
}

/* Search Button (If present next to input) */
header button[type="submit"], .elementor-location-header button[type="submit"] {
    border-radius: 0 50px 50px 0 !important;
    background-color: #2EA8FF !important;
    color: #FFFFFF !important;
    transition: background-color 0.3s;
}

/* Navigation Menu - Modern Hover */
.elementor-nav-menu a, .elementor-nav-menu--main a.elementor-item {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    color: #333333 !important;
    position: relative;
    padding-bottom: 5px;
}

.elementor-nav-menu a:hover, .elementor-nav-menu--main a.elementor-item:hover {
    color: #2EA8FF !important;
}

/* Hover Underline effect */
.elementor-nav-menu a::after, .elementor-nav-menu--main a.elementor-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #2EA8FF;
    transition: width 0.3s ease, left 0.3s ease;
}

.elementor-nav-menu a:hover::after, .elementor-nav-menu--main a.elementor-item:hover::after {
    width: 100%;
    left: 0;
}

/* Cart Icon / Badge Styling */
.elementor-menu-cart__toggle .elementor-button-icon[data-counter]::before,
.woocommerce .cart-contents span.count,
.header-cart-count {
    background-color: #2EA8FF !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* Footer - Dark theme */
footer, .elementor-location-footer {
    background-color: #111111 !important;
    color: #FFFFFF !important;
}

footer a, .elementor-location-footer a {
    color: #CCCCCC !important;
    text-decoration: none !important;
}

footer a:hover, .elementor-location-footer a:hover {
    color: #2EA8FF !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.elementor-location-footer h1, .elementor-location-footer h2, .elementor-location-footer h3, .elementor-location-footer h4, .elementor-location-footer h5, .elementor-location-footer h6 {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
}

/* Top Bars (Notice & Links) */
.itech-top-links-bar a:hover {
    color: #2EA8FF !important;
}

/* Home / Global Layout tweaks for minimalism */
.elementor-widget-container, .elementor-container {
    font-family: 'Roboto', sans-serif;
}

/* Make hover effects snappy and distinct (BestBuy Style) */
.elementor-post__card, .product {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent; /* Prepare for hover border */
    border-radius: 8px;
    padding: 10px; /* Give some breathing room inside the border */
    background-color: #fff;
}

.elementor-post__card:hover, .product:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    border: 1px solid #EEEEEE;
}

/* Image zoom on hover inside product card */
.elementor-post__card img, .product img {
    transition: transform 0.4s ease;
}

.elementor-post__card:hover img, .product:hover img {
    transform: scale(1.04);
}

/* ==========================================================
   UTILITY CLASSES PARA ELEMENTOR (Añadir en Advanced > CSS Classes)
   ========================================================== */

/* 1. Cintillo de Confianza (Trust Badges) */
.itech-trust-badges {
    background-color: #FAFAFA;
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
    padding: 5px 0; /* Más delgado/alargado verticalmente */
}
.itech-trust-badges .elementor-icon-box-icon .elementor-icon {
    color: #2EA8FF !important; /* Púrpura */
    transition: transform 0.3s ease;
    font-size: 20px !important; /* Iconos un poco más pequeños */
}
.itech-trust-badges .elementor-icon-box-title, 
.itech-trust-badges .elementor-icon-box-description {
    font-size: 0.85rem !important; /* Texto más pequeño */
    margin-bottom: 0;
}
.itech-trust-badges:hover .elementor-icon-box-icon .elementor-icon {
    transform: scale(1.1);
}

/* 1.5 Categorías Principales (Celulares, Notebooks, etc) y Contenedores en Home */
.itech-main-categories .elementor-container,
.tech-main-categories {
    display: flex !important;
    flex-wrap: nowrap !important; /* Fuerza a que los 5 elementos queden exactamente en 1 sola fila en escritorio */
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
}
.itech-main-categories .elementor-column,
.tech-main-categories > .e-child {
    flex: 1 1 0% !important; /* Los 5 toman exactamente el mismo ancho (20% real) sin salirse por los márgenes */
    width: auto !important;
    max-width: 20% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}
@media (max-width: 768px) {
    .itech-main-categories .elementor-container,
    .tech-main-categories {
        flex-wrap: wrap !important; /* En celular o tablet permitimos salto de línea para no aplastarse */
    }
    .itech-main-categories .elementor-column,
    .tech-main-categories > .e-child {
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
}
@media (max-width: 480px) {
    .itech-main-categories .elementor-column,
    .tech-main-categories > .e-child {
        width: 50% !important; /* 2 columnas en teléfonos pequeños */
    }
}
.itech-main-categories img,
.tech-main-categories img {
    border-radius: 12px;
    transition: transform 0.3s;
    max-width: 100% !important;
    height: auto !important;
}
.itech-main-categories img:hover,
.tech-main-categories img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Evitar que las letras se salgan del recuadro (Overflow protection & Clamp font) */
.itech-main-categories h2, .itech-main-categories h3, .itech-main-categories .elementor-heading-title,
.tech-main-categories h2, .tech-main-categories h3, .tech-main-categories .elementor-heading-title {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem) !important; /* Letra dinámica que se adapta al ancho y nunca se desborda */
    line-height: 1.25 !important;
    text-align: center !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    padding: 0 4px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Banners Promocionales Intermedios (Estilo BestBuy) */
.itech-promo-banner {
    overflow: hidden;
    border-radius: 8px;
    background-color: #F0F2F4; /* Fondo gris suave típico de grandes tiendas */
    padding: 30px;
    transition: box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.itech-promo-banner:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid #E5E5E5;
}
.itech-promo-banner img {
    transition: transform 0.5s ease;
}
.itech-promo-banner:hover img {
    transform: scale(1.05); /* Zoom in suave en la imagen */
}

/* Títulos y botones dentro del banner estilo BestBuy */
.itech-promo-banner h2, .itech-promo-banner h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #111111 !important;
    line-height: 1.2;
}
.itech-promo-banner p {
    color: #444444;
    font-size: 1rem;
}
.itech-promo-banner .elementor-button {
    background-color: #2EA8FF !important; /* El color de acción de iTech */
    border-radius: 4px !important; /* Bordes menos redondeados, más corporativos */
    font-weight: 600 !important;
    padding: 12px 24px !important;
}

/* 3. Carrusel de Marcas (Grayscale a Color) */
.itech-brand-carousel img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}
.itech-brand-carousel img:hover,
.itech-brand-carousel .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 4. Etiqueta de Oferta (Sale Badge) Premium */
.woocommerce span.onsale {
    background-color: #2EA8FF !important;
    color: #000000 !important; /* Texto negro según requerimiento iTech */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 50px !important; /* Redondeado tipo píldora */
    min-width: auto;
    min-height: auto;
    top: 10px !important;
    left: 10px !important;
    right: auto !important; /* Asegurar que no esté a la derecha si el tema lo fuerza */
    box-shadow: 0 4px 10px rgba(46, 168, 255, 0.3);
}

/* ==========================================================
   BUTTONS GLOBAL (Cart, Checkout, etc)
   ========================================================== */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
    background-color: #2EA8FF;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce #respond input#submit:hover {
    background-color: #1A91E5;
    color: #FFFFFF;
}

/* ==========================================================
   RESPONSIVE (Mobile)
   ========================================================== */
@media (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
        padding-left: 0;
    }
    
    .woocommerce div.product div.images {
        margin-bottom: 30px;
    }
    
    .woocommerce div.product .product_title {
        font-size: 1.8rem;
    }
}

/* ==========================================================
   REDISEÑO HEADER FULL-WIDTH (BESTMART STYLE)
   ========================================================== */

/* Forzar anchos completos en contenedores clave */
.itech-fw-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Top Bars */
.itech-top-bar-1 {
    background-color: #F5F5F5;
    padding: 5px 20px;
    font-size: 0.8rem;
    color: #666666;
    border-bottom: 1px solid #EEEEEE;
}
.itech-top-bar-2 {
    background-color: #FFFFFF;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid #EEEEEE;
}

/* Main Header (White) */
.itech-header-middle {
    background-color: #FFFFFF;
    padding: 20px 40px; /* Espacio lateral para pantallas grandes */
    border-bottom: 1px solid #EEEEEE;
    width: 100%;
}

/* Search Bar (Pill Shape) */
.itech-search-pill {
    width: 100%;
    max-width: 600px; /* Buscador ancho */
    margin: 0 auto;
}
.itech-search-pill .elementor-search-form__input {
    border-radius: 50px 0 0 50px !important;
    background-color: #F8F9FA !important;
    border: 1px solid #E0E0E0 !important;
    border-right: none !important;
    padding: 15px 25px !important;
    color: #333333 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}
.itech-search-pill .elementor-search-form__button {
    border-radius: 0 50px 50px 0 !important;
    background-color: #2EA8FF !important;
    padding: 15px 30px !important;
    transition: background-color 0.3s;
}
.itech-search-pill .elementor-search-form__button:hover {
    background-color: #1A91E5 !important;
}

/* Menu de Categorías (Bottom Nav) - Fondo Blanco */
.itech-header-bottom-nav {
    background-color: #FFFFFF;
    border-bottom: 1px solid #EAEAEA;
    padding: 0 40px;
}
.itech-header-bottom-nav .elementor-nav-menu a {
    color: #333333 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 18px 20px;
    transition: color 0.3s;
}
.itech-header-bottom-nav .elementor-nav-menu a:hover {
    color: #2EA8FF !important;
    background-color: transparent !important;
}
/* Mega Menu Dropdowns */
.itech-header-bottom-nav .elementor-nav-menu--dropdown {
    background-color: #FFFFFF !important;
    border: 1px solid #EEEEEE !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
}
.itech-header-bottom-nav .elementor-nav-menu--dropdown a {
    color: #555555 !important;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 500;
}
.itech-header-bottom-nav .elementor-nav-menu--dropdown a:hover {
    color: #2EA8FF !important;
    background-color: #F9F9F9 !important;
}

/* ==========================================================
   REDISEÑO FOOTER DARK
   ========================================================== */
.itech-footer-dark {
    background-color: #111111;
    color: #CCCCCC;
    padding: 60px 0 30px;
    font-family: 'Roboto', sans-serif;
}
.itech-footer-dark h2, .itech-footer-dark h3, .itech-footer-dark h4 {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}
.itech-footer-dark a {
    color: #CCCCCC !important;
    text-decoration: none;
    transition: color 0.3s;
}
.itech-footer-dark a:hover {
    color: #2EA8FF !important;
}

/* ==========================================================
   PÁGINA DE CONTACTO
   ========================================================== */
.itech-contact-cards .elementor-icon-box-wrapper {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #2EA8FF;
    transition: transform 0.3s;
}
.itech-contact-cards .elementor-icon-box-wrapper:hover {
    transform: translateY(-5px);
}
.itech-contact-cards .elementor-icon-box-icon i {
    font-size: 40px !important;
    color: #2EA8FF !important;
    margin-bottom: 15px;
}
.itech-contact-cards .elementor-icon-box-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ==========================================================
   MI CUENTA (MY ACCOUNT) WOOCOMMERCE
   ========================================================== */

/* Contenedor General de Mi Cuenta */
.woocommerce-account .woocommerce {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Roboto', sans-serif;
}

/* ---------------------------------------------------
   1. LOGIN / REGISTRO
   --------------------------------------------------- */
#customer_login {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Ensure cards align to the top */
    gap: 30px;
}

#customer_login .col-1, 
#customer_login .col-2 {
    width: 47% !important; /* Force width */
    float: none !important; /* Override WooCommerce default floats */
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #EEEEEE;
    margin: 0 !important;
}

#customer_login h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 25px;
    border-bottom: 2px solid #F5F5F5;
    padding-bottom: 15px;
}

/* Estilización de Inputs en Formularios */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    background-color: #F9F9F9;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #2EA8FF;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.1);
    outline: none;
}

.woocommerce form .form-row label {
    font-weight: 500;
    color: #444444;
    margin-bottom: 8px;
    display: inline-block;
}

/* Botón de Acceder / Registrarse */
.woocommerce form.login .button, 
.woocommerce form.register .button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ---------------------------------------------------
   2. PANEL DE NAVEGACIÓN (SIDEBAR)
   --------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 25%;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #EEEEEE;
    overflow: hidden; /* Para redondear los bordes del menú */
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #F5F5F5;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 18px 25px;
    color: #555555;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: #2EA8FF;
    background-color: #FDFBFF;
}

/* Pestaña Activa */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #2EA8FF;
    font-weight: 700;
    background-color: #FDFBFF;
    border-left: 3px solid #2EA8FF;
}

/* ---------------------------------------------------
   3. ÁREA DE CONTENIDO (DASHBOARD)
   --------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 72%;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #EEEEEE;
}

.woocommerce-MyAccount-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.woocommerce-MyAccount-content a {
    color: #2EA8FF;
    font-weight: 500;
}

/* Tabla de Pedidos */
.woocommerce table.my_account_orders {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.woocommerce table.my_account_orders th {
    background-color: #F9F9F9;
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #EEEEEE;
}

.woocommerce table.my_account_orders td {
    padding: 15px;
    border-bottom: 1px solid #EEEEEE;
    color: #555555;
}

.woocommerce table.my_account_orders .button {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Responsive para Mi Cuenta */
@media (max-width: 768px) {
    #customer_login .col-1, 
    #customer_login .col-2 {
        width: 100%;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
        padding: 25px;
    }
}

/* ==========================================================
   CARRITO DE COMPRAS (CART)
   ========================================================== */
/* Forzar fondo blanco en toda la página para evitar el fondo negro del tema */
body.woocommerce-cart, 
body.woocommerce-checkout,
body.woocommerce-cart #page,
body.woocommerce-checkout #page,
body.woocommerce-cart #content,
body.woocommerce-checkout #content,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-cart main,
body.woocommerce-checkout main {
    background-color: #FFFFFF !important;
}

.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #FFFFFF !important; /* Forzar fondo blanco sobre el tema oscuro */
    padding: 20px;
    border-radius: 12px;
}

/* CLEARFIX: Evita que el Footer suba e invada la página por culpa de los elementos flotantes */
.woocommerce-cart .woocommerce::after,
.woocommerce-checkout .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

/* Formulario Principal de Productos (Izquierda) */
.woocommerce-cart .woocommerce-cart-form {
    width: 65%;
    float: left;
}

/* Tabla del Carrito */
.woocommerce table.shop_table.cart {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    margin-bottom: 30px;
}

.woocommerce table.shop_table.cart th {
    background-color: #FDFDFD;
    color: #444444;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 20px;
    border-bottom: 2px solid #EEEEEE;
}

.woocommerce table.shop_table.cart td {
    padding: 20px;
    border-bottom: 1px solid #F5F5F5;
    vertical-align: middle;
    background-color: #FFFFFF !important;
}

/* Imágenes en el Carrito */
.woocommerce table.shop_table.cart td.product-thumbnail img {
    width: 80px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Nombres de Productos en el Carrito */
.woocommerce table.shop_table.cart td.product-name a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
}
.woocommerce table.shop_table.cart td.product-name a:hover {
    color: #2EA8FF;
}

/* Contenedor de Totales del Carrito (Derecha) */
.woocommerce-cart .cart-collaterals {
    width: 30%;
    float: right;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background-color: #FDFDFD;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #EEEEEE;
    width: 100%;
}

.woocommerce-cart .cart-collaterals h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 25px;
    border-bottom: 2px solid #EEEEEE;
    padding-bottom: 15px;
}

.woocommerce-cart .cart-collaterals table {
    width: 100%;
    border: none;
}
.woocommerce-cart .cart-collaterals table th, 
.woocommerce-cart .cart-collaterals table td {
    border: none;
    padding: 15px 0;
    border-bottom: 1px solid #F5F5F5;
}

/* Botón Proceder al Pago */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #2EA8FF !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px !important;
    border-radius: 8px !important;
    text-align: center;
    display: block;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(46, 168, 255, 0.3);
    transition: all 0.3s ease;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #1A91E5 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 168, 255, 0.4);
}

/* ==========================================================
   FINALIZAR COMPRA (CHECKOUT)
   ========================================================== */
.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #FFFFFF !important; /* Forzar fondo blanco */
    padding: 30px;
    border-radius: 12px;
}

/* Forzar color de texto oscuro para etiquetas del formulario */
.woocommerce-checkout form label {
    color: #333333 !important;
    font-weight: 500;
}

/* Layout 2 Columnas para Checkout */
.woocommerce-checkout #customer_details {
    width: 55%;
    float: left;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 40%;
    float: right;
    clear: right;
}

/* Títulos de Facturación y Resumen */
.woocommerce-checkout h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111111;
}

/* Estilización del Resumen de Pedido (Ticket Box) */
.woocommerce-checkout #order_review {
    background-color: #FFFFFF;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #EEEEEE;
    border-top: 4px solid #2EA8FF; /* Acento corporativo superior */
}

.woocommerce-checkout table.shop_table {
    border: none;
    border-radius: 0;
}
.woocommerce-checkout table.shop_table th, 
.woocommerce-checkout table.shop_table td {
    border: none;
    border-bottom: 1px solid #EEEEEE;
    padding: 15px 5px;
}

/* Métodos de Pago Box */
#add_payment_method #payment, 
.woocommerce-cart #payment, 
.woocommerce-checkout #payment {
    background: #F9F9F9;
    border-radius: 8px;
    padding: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #EEEEEE;
}

/* Botón Realizar Pedido */
.woocommerce-checkout #payment #place_order {
    background-color: #2EA8FF !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 20px !important;
    border-radius: 8px !important;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(46, 168, 255, 0.3);
    transition: all 0.3s ease;
}
.woocommerce-checkout #payment #place_order:hover {
    background-color: #1A91E5 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 168, 255, 0.4);
}

/* Responsive Cart & Checkout */
@media (max-width: 992px) {
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals,
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
        float: none;
        margin-bottom: 40px;
    }
}

/* ==========================================================
   MINI CARRITO LATERAL (SIDE CART)
   ========================================================== */
/* Corregir tipografía gigante de los precios */
.elementor-menu-cart__product-price,
.elementor-menu-cart__product-price .amount,
.widget_shopping_cart_content .mini_cart_item .quantity,
.widget_shopping_cart_content .mini_cart_item .quantity .amount {
    font-size: 1rem !important;
    color: #333333 !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* Corregir botones grises inmensos y apilarlos ordenadamente */
.elementor-menu-cart__footer-buttons,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important; /* Apilados verticalmente para que quepan perfectos */
    gap: 10px !important;
    margin-top: 15px !important;
}

.elementor-menu-cart__footer-buttons a.elementor-button,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.button {
    width: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 12px 15px !important;
    background-color: #2EA8FF !important; /* Aplicar el púrpura corporativo */
    color: #FFFFFF !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    white-space: normal !important; /* Evitar que el texto se corte si es muy largo */
}

.elementor-menu-cart__footer-buttons a.elementor-button:hover,
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.button:hover {
    background-color: #1A91E5 !important;
}

/* Arreglar la 'X' de cerrar para que no se corte por la mitad */
.elementor-menu-cart__close-button {
    right: 20px !important;
    top: 20px !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #F5F5F5 !important;
    border-radius: 50% !important;
    color: #333 !important;
}
.elementor-menu-cart__close-button:hover {
    background-color: #E5E5E5 !important;
}

/* Texto de carrito vacío - Tamaño normal */
.elementor-menu-cart__empty-message {
    font-size: 1.2rem !important;
    text-align: center !important;
    padding: 40px 20px !important;
    color: #666666 !important;
    font-family: 'Roboto', sans-serif !important;
}

/* ==========================================================
   HEADER SPACING FIX (ACERCAR ELEMENTOS)
   ========================================================== */
header.elementor-location-header > .elementor-section > .elementor-container,
header.elementor-location-header > .e-con {
    max-width: 1100px !important; /* Restringe el ancho máximo para acercar Logo, Buscador y Carrito */
    margin: 0 auto !important;
}

/* ==========================================================
   WIDGETS DEL SIDEBAR (Categorías y Filtros)
   ========================================================== */
/* ==========================================================
   WIDGETS DEL SIDEBAR (Categorías Menú Hamburguesa / Acordeón)
   ========================================================== */
/* Título del widget de categorías: Estilo barra superior con ícono hamburguesa */
.woocommerce-page.archive .widget_product_categories .widget-title,
.woocommerce.archive .widget_product_categories .widget-title,
.widget_product_categories .widget-title,
.widget_product_categories h2, .widget_product_categories h3, .widget_product_categories h5 {
    background: #111111 !important;
    color: #FFFFFF !important;
    padding: 14px 18px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative;
}
/* Agregar ícono de hamburguesa (☰) automáticamente antes del título */
.widget_product_categories .widget-title::before,
.widget_product_categories h2::before,
.widget_product_categories h3::before,
.widget_product_categories h5::before {
    content: "☰" !important;
    font-size: 1.3rem !important;
    color: #A528FE !important; /* Púrpura corporativo en el ícono */
}

/* Contenedor principal de la lista de categorías (Caja estilo tarjeta) */
.widget_product_categories ul.product-categories,
.widget_product_categories ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

/* Cada ítem de categoría principal (Estilo fila interactiva con flex para integrar el contador) */
.widget_product_categories ul.product-categories > li,
.widget_product_categories ul > li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #F3F4F6 !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.widget_product_categories ul.product-categories > li:last-child,
.widget_product_categories ul > li:last-child {
    border-bottom: none !important;
}

/* Enlace de la categoría principal */
.woocommerce-page.archive .widget_product_categories a,
.woocommerce.archive .widget_product_categories a,
.widget_product_categories a {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px !important;
    color: #374151 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

/* Estilo VIP para el número contador de productos (Píldora / Badge en la misma línea) */
.widget_product_categories span.count,
.widget_product_categories .count {
    background-color: #F3F4F6 !important;
    color: #6B7280 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-right: 14px !important;
    display: inline-block !important;
    transition: all 0.25s ease !important;
}
.widget_product_categories ul > li:hover > span.count {
    background-color: #A528FE !important;
    color: #FFFFFF !important;
}

/* Flecha / Indicador visual en ítems con subcategorías */
.widget_product_categories ul.product-categories li.cat-parent > a::after,
.widget_product_categories ul li.cat-parent > a::after {
    content: "▼" !important;
    font-size: 0.65rem !important;
    color: #9CA3AF !important;
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}
.widget_product_categories ul li.cat-parent:hover > a::after {
    color: #A528FE !important;
    transform: rotate(-90deg) !important;
}

/* Efecto Hover en las filas (Se ilumina en púrpura suave y se desplaza) */
.widget_product_categories ul > li:hover {
    background-color: #FAF5FF !important;
    border-left: 4px solid #A528FE !important;
    padding-left: 2px !important;
}
.widget_product_categories a:hover,
.widget_product_categories li.current-cat > a {
    color: #A528FE !important;
    font-weight: 600 !important;
}

/* Categoría activa actualmente seleccionada */
.widget_product_categories li.current-cat {
    background-color: #F3E8FF !important;
    border-left: 4px solid #A528FE !important;
}

/* ACORDEÓN / MENÚ DESPLEGABLE: Ocultar subcategorías por defecto para un menú limpio y compacto */
.widget_product_categories ul.children {
    display: none !important;
    width: 100% !important;
    background: #F9FAFB !important;
    border: none !important;
    border-top: 1px solid #F3F4F6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    list-style: none !important;
}
/* Al pasar el ratón por la categoría principal (o si está seleccionada), desplegar suavemente */
.widget_product_categories ul > li.cat-parent:hover > ul.children,
.widget_product_categories ul > li.current-cat > ul.children,
.widget_product_categories ul > li.current-cat-parent > ul.children,
.widget_product_categories ul > li.current-cat-ancestor > ul.children {
    display: block !important;
    animation: fadeInDown 0.25s ease-in-out !important;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.widget_product_categories ul.children li {
    border-bottom: none !important;
    padding: 0 !important;
}
.widget_product_categories ul.children a {
    padding: 8px 18px 8px 36px !important; /* Mayor sangría para jerarquía */
    font-size: 0.85rem !important;
    color: #6B7280 !important;
    font-weight: 400 !important;
}
.widget_product_categories ul.children li:hover {
    background: transparent !important;
    border-left: none !important;
}
.widget_product_categories ul.children a:hover,
.widget_product_categories ul.children li.current-cat > a {
    color: #A528FE !important;
    padding-left: 40px !important;
}

/* Filtro de Precio: Cambiar el morado base a Celeste Institucional */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #2EA8FF !important;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #EEEEEE !important;
}
.woocommerce .widget_price_filter .price_slider_amount .button {
    background-color: #2EA8FF !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-weight: 500 !important;
}
.woocommerce .widget_price_filter .price_slider_amount .button:hover {
    background-color: #1A91E5 !important;
}
