/*
Theme Name: Animalista Ropa
Theme URI: https://tusitio.com
Author: Antigravity
Description: Un tema elegante con Tailwind CSS para tienda de ropa estilo Animalista.
Version: 1.2
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: animalista
*/

body {
    background-color: #050505; /* Fondo ultra oscuro */
    color: #e5e5e5;
}

/* Glassmorphism utility */
.glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ajustes básicos para WooCommerce sobre fondo oscuro */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
    color: #fff;
}

.woocommerce div.product .product_title {
    color: #fff;
}

/* Botones y estilos aesthetic para la tienda WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background-color: #8b0000 !important;
    color: #fff !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4) !important;
}

.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    background-color: #ff3333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.6) !important;
}

.woocommerce span.onsale {
    background-color: #8b0000 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.woocommerce .woocommerce-ordering select {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
}

/* PARCEL PANEL AESTHETIC FIXES (Modo Oscuro + Rojo) */
.rastreo-container input[type="text"], 
.rastreo-container input[type="email"],
.rastreo-container .pp-input {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
}

.rastreo-container button, 
.rastreo-container .pp-btn,
.rastreo-container input[type="submit"] {
    background-color: #8b0000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 25px !important;
    box-shadow: 0 4px 15px rgba(139,0,0,0.4) !important;
    transition: all 0.3s ease !important;
}

.rastreo-container button:hover, 
.rastreo-container .pp-btn:hover {
    background-color: #ff3333 !important;
    box-shadow: 0 6px 20px rgba(255,51,51,0.6) !important;
}

/* ParcelPanel timeline fix for dark mode */
.pp-timeline-item, .pp-timeline-content, .pp-desc, .pp-time {
    color: #ccc !important;
    background-color: transparent !important;
}
.pp-timeline-content {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
}
.pp-status-icon, .pp-timeline-icon {
    background-color: #8b0000 !important;
    border-color: #500 !important;
    color: #fff !important;
}
.pp-carrier, .pp-product-name, .pp-tracking-number {
    color: #fff !important;
    font-weight: bold !important;
}

/* My Account / Login & Register Aesthetic */
.woocommerce-account .woocommerce-form-login, 
.woocommerce-account .woocommerce-form-register {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 2rem !important;
}

.woocommerce-account .woocommerce h2 {
    color: #fff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid #8b0000 !important;
    padding-bottom: 0.5rem !important;
    display: inline-block !important;
}

.woocommerce form .form-row label {
    color: #ccc !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
}

.woocommerce form .form-row input.input-text {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    width: 100% !important;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #8b0000 !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(139,0,0,0.3) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: rgba(20, 20, 20, 0.6) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: #ccc !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: block !important;
    padding: 0.75rem 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #ff3333 !important;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    color: #ccc !important;
}

/* WooCommerce Mensajes y Alertas (Aesthetic Fix) */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background-color: rgba(20, 20, 20, 0.8) !important;
    color: #fff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-top: 3px solid #8b0000 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
    color: #8b0000 !important;
}

.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
    color: #ff3333 !important;
    font-weight: bold !important;
}

/* -------------------------------------
   WOOCOMMERCE FIXES (Basado en capturas)
---------------------------------------- */

/* Color del precio (Quitar el verde/amarillo feo) */
.woocommerce div.product p.price, 
.woocommerce div.product span.price, 
.woocommerce ul.products li.product .price {
    color: #ff3333 !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

/* Arreglo para el fondo blanco al hacer hover (zoom) en la imagen del producto */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image .zoomImg {
    background-color: #050505 !important;
}

/* Corrección Definitiva del Catálogo (Usando Flexbox en vez de Grid) */
.woocommerce ul.products, .woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after {
    display: none !important; /* Elimina floats nativos de WC que rompen el diseño */
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product {
    flex: 0 0 calc(33.333% - 20px) !important;
    max-width: calc(33.333% - 20px) !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
@media (max-width: 1024px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products[class*="columns-"] li.product {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
}
@media (max-width: 767px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products[class*="columns-"] li.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
.woocommerce ul.products li.product .button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: auto !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    border-radius: 9999px !important;
}

/* Pestañas (Descripción, Info adicional) - Quitar el fondo blanco */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #333 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: #8b0000 !important;
    background: transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #888 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
    background: rgba(255,255,255,0.02) !important;
    color: #ccc !important;
    padding: 25px !important;
    border-radius: 0 0 12px 12px !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-top: none !important;
    margin-top: 0 !important;
}

/* Selectores de Talla/Color y Cantidad MÁS FUERTES */
.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    background-color: #050505 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    padding: 10px !important;
    border-radius: 8px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
.woocommerce div.product form.cart .variations select option {
    background-color: #111 !important;
    color: #fff !important;
}
.woocommerce table.variations label {
    color: #ccc !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}
.woocommerce div.product form.cart .quantity .qty {
    background-color: #050505 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    width: 80px !important;
}
.woocommerce div.product form.cart {
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
}

/* FUERZA BRUTA PARA LOS SWATCHES (OVALOS) DEL PLUGIN */
.variations_form .variable-items-wrapper .variable-item,
.variations_form .tawcvs-swatches .swatch,
.variations_form .vi-wpvs-variation-wrap .vi-wpvs-option-wrap,
table.variations .swatch {
    background-color: #050505 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important; /* Para que parezcan etiquetas pro */
    padding: 8px 16px !important;
    width: auto !important; /* Deja crecer para que quepa "Negro" */
    height: auto !important;
    min-width: 45px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
}

/* Forzar color de texto interno por si el plugin inyecta spans */
.variations_form .variable-items-wrapper .variable-item span,
.variations_form .tawcvs-swatches .swatch span,
table.variations .swatch span {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Estado Seleccionado / Hover */
.variations_form .variable-items-wrapper .variable-item.selected,
.variations_form .variable-items-wrapper .variable-item:hover,
.variations_form .tawcvs-swatches .swatch.selected,
.variations_form .tawcvs-swatches .swatch:hover,
.variations_form .vi-wpvs-variation-wrap .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected,
.variations_form .vi-wpvs-variation-wrap .vi-wpvs-option-wrap:hover,
table.variations .swatch.selected, table.variations .swatch:hover {
    background-color: #8b0000 !important;
    border-color: #ff3333 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(139,0,0,0.5) !important;
}

/* -----------------------------------------------------
   CHECKOUT (PÁGINA DE PAGO) - ESTILO OSCURO SEGURO
------------------------------------------------------ */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout select {
    background-color: #0d0d0d !important; /* Fondo casi negro */
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

/* Hover y Focus de los inputs del checkout */
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.wc-block-checkout input:focus,
.wc-block-checkout select:focus {
    background-color: #111111 !important;
    border-color: #8b0000 !important;
    outline: none !important;
    box-shadow: 0 0 12px rgba(139, 0, 0, 0.4) !important;
}

/* Placeholders oscuros */
.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder,
.wc-block-checkout input::placeholder {
    color: #666666 !important;
}

/* Cajas de métodos de envío y pago (fondo) */
#payment .payment_methods li, 
.woocommerce-checkout #payment,
.wc-block-checkout .wc-block-components-checkout-step {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
}

/* -----------------------------------------------------
   MEJORAS ESTÉTICAS: INSTAGRAM, FIBOSEARCH & HUSKY FILTERS
   ------------------------------------------------------ */

/* Animación de Pulso Sutil para Botón de Instagram */
@keyframes float-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 25px rgba(255, 51, 51, 0.4);
    }
}
#instagram-floating-btn {
    animation: float-pulse 3s infinite ease-in-out;
}
#instagram-floating-btn:hover {
    animation: none;
    transform: scale(1.1);
}

/* FIBOSEARCH AJAX SEARCH STYLING OVERRIDES */
.fibosearch-form, .dg-wt-w-search {
    background: transparent !important;
    border-radius: 9999px !important;
}
.dg-wt-w-input, .js-dg-wt-w-input, .fibosearch-form input[type="search"] {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}
.dg-wt-w-input:focus, .fibosearch-form input[type="search"]:focus {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-color: #8b0000 !important;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.4) !important;
    outline: none !important;
}
/* Dropdown de autocompletado */
.dg-wt-w-results, .dg-wt-w-autocomplete, .fibosearch-autocomplete {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    overflow: hidden !important;
    margin-top: 10px !important;
}
/* Sugerencias individuales */
.dg-wt-w-suggestion, .fibosearch-suggestion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}
.dg-wt-w-suggestion:hover, .fibosearch-suggestion:hover, 
.dg-wt-w-suggestion.dg-wt-w-selected, .fibosearch-suggestion-selected {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    border-left: 3px solid #8b0000 !important;
}
.dg-wt-w-suggestion-product-title, .fibosearch-suggestion-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}
.dg-wt-w-suggestion-price, .fibosearch-suggestion-price {
    color: #ff3333 !important;
    font-weight: 800 !important;
}
.dg-wt-w-submit, .fibosearch-submit {
    background-color: #8b0000 !important;
    color: #ffffff !important;
    border-radius: 0 9999px 9999px 0 !important;
    transition: all 0.3s ease !important;
}
.dg-wt-w-submit:hover, .fibosearch-submit:hover {
    background-color: #ff3333 !important;
}

/* HUSKY / WOOF PRODUCTS FILTER OVERRIDES */
.woof, .husky_filter_wrapper {
    background: rgba(20, 20, 20, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 30px !important;
}
.woof_container {
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding-bottom: 15px !important;
}
.woof_container:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.woof_container h4 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 12px !important;
    position: relative !important;
    padding-left: 12px !important;
}
.woof_container h4::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    width: 3px !important;
    height: 12px !important;
    background-color: #8b0000 !important;
}
.woof_checkbox_label {
    color: #cccccc !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}
.woof_checkbox_label:hover {
    color: #ffffff !important;
}
/* Checkboxes */
.woof_list li,
.woof_list_checkbox li,
.husky_filter_wrapper li {
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.woof_list input[type="checkbox"],
.husky_filter_wrapper input[type="checkbox"],
input[type="checkbox"].woof_checkbox_term {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: rgba(10, 10, 10, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    width: 18px !important;
    height: 18px !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.woof_list input[type="checkbox"]:checked,
.husky_filter_wrapper input[type="checkbox"]:checked,
input[type="checkbox"].woof_checkbox_term:checked {
    background-color: #8b0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4) !important;
}

.woof_list input[type="checkbox"]:checked::after,
.husky_filter_wrapper input[type="checkbox"]:checked::after,
input[type="checkbox"].woof_checkbox_term:checked::after {
    content: "\2713" !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.woof_list input[type="checkbox"]:hover,
.husky_filter_wrapper input[type="checkbox"]:hover,
input[type="checkbox"].woof_checkbox_term:hover {
    border-color: #ff0000 !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2) !important;
}

/* Slider de Rango de Precios (jQuery UI & HUSKY defaults) */
.woof .price_slider_wrapper .ui-widget-content {
    background: #111 !important;
    height: 6px !important;
    border: none !important;
    border-radius: 4px !important;
}
.woof .price_slider_wrapper .ui-slider-range {
    background: #8b0000 !important;
}
.woof .price_slider_wrapper .ui-slider-handle {
    background: #0d0d0d !important;
    border: 2px solid #8b0000 !important;
    border-radius: 4px !important; /* Blocky/athletic handle */
    width: 16px !important;
    height: 16px !important;
    top: -5px !important;
    cursor: pointer !important;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.6) !important;
    transition: transform 0.2s ease !important;
}
.woof .price_slider_wrapper .ui-slider-handle:hover {
    transform: scale(1.15) !important;
    background: #ff3333 !important;
    border-color: #ffffff !important;
}
.woof .price_slider_amount span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* HUSKY ionRangeSlider Theme Overrides */
.irs-line, 
.irs--flat .irs-line, 
.irs--modern .irs-line, 
.irs--round .irs-line, 
.irs--square .irs-line {
    background-color: #111111 !important;
    height: 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.irs-bar, 
.irs--flat .irs-bar, 
.irs--modern .irs-bar, 
.irs--round .irs-bar, 
.irs--square .irs-bar {
    background-color: #8b0000 !important;
    height: 6px !important;
    background-image: none !important;
}
.irs-handle, 
.irs-slider,
.irs--flat .irs-handle, 
.irs--modern .irs-slider,
.irs--round .irs-handle,
.irs--square .irs-handle {
    background-color: #0d0d0d !important;
    border: 2px solid #8b0000 !important;
    border-radius: 4px !important; /* Unified blocky style */
    width: 16px !important;
    height: 16px !important;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6) !important;
    cursor: pointer !important;
}
.irs-handle:hover,
.irs-slider:hover,
.irs--flat .irs-handle:hover {
    background-color: #ff3333 !important;
    border-color: #ffffff !important;
    transform: scale(1.1) !important;
}
/* Inner elements for flat skin handle */
.irs--flat .irs-handle > i:first-child {
    background-color: #8b0000 !important;
    border-radius: 2px !important;
    width: 6px !important;
    height: 6px !important;
    margin-left: -3px !important;
    margin-top: -3px !important;
}
.irs-from, 
.irs-to, 
.irs-single,
.irs--flat .irs-from, 
.irs--flat .irs-to, 
.irs--flat .irs-single,
.irs--modern .irs-from, 
.irs--modern .irs-to, 
.irs--modern .irs-single {
    background-color: #8b0000 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    background-image: none !important;
}
.irs-from:before, 
.irs-to:before, 
.irs-single:before,
.irs--flat .irs-from:before, 
.irs--flat .irs-to:before, 
.irs--flat .irs-single:before,
.irs--modern .irs-from:before, 
.irs--modern .irs-to:before, 
.irs--modern .irs-single:before {
    border-top-color: #8b0000 !important;
}
.irs-grid-text {
    color: #888888 !important;
    font-size: 9px !important;
}
.irs-grid-pol {
    background: #333333 !important;
}

/* WOOF Buttons Overrides */
.woof_submit_search_form_container button,
.woof button.woof_submit_search_form_button,
button.woof_submit_search_form_button {
    background-color: #8b0000 !important;
    color: #ffffff !important;
    border-radius: 8px !important; /* Unified boxy style */
    border: none !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4) !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 10px !important;
}
.woof_submit_search_form_container button:hover,
.woof button.woof_submit_search_form_button:hover {
    background-color: #ff3333 !important;
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.6) !important;
    transform: translateY(-1px) !important;
}
.woof_reset_search_form_container button,
.woof button.woof_reset_search_form_button,
button.woof_reset_search_form_button {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 8px !important; /* Unified boxy style */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 10px !important;
}
.woof_reset_search_form_container button:hover,
.woof button.woof_reset_search_form_button:hover {
    background-color: #8b0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4) !important;
}

/* =====================================================
   CORRECCIÓN DE DROPDOWNS Y ELEMENTOS BLANCOS EN HUSKY
   ===================================================== */

/* 1. Input de Búsqueda de Texto en HUSKY */
.woof_text_search_container input[type="search"],
.woof_text_search_container input[type="text"],
.woof input.woof_show_text_search,
.husky_filter_wrapper input[type="text"] {
    background-color: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    width: 100% !important;
}
.woof_text_search_container input::placeholder,
.husky_filter_wrapper input::placeholder {
    color: #666666 !important;
}
.woof_text_search_container input:focus,
.husky_filter_wrapper input:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4) !important;
    outline: none !important;
}

/* 2. Selectores Nativos de HUSKY */
.woof select,
.woof_container select,
.husky_filter_wrapper select {
    background-color: rgba(10, 10, 10, 0.7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    width: 100% !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 3. Estilos Generales para Chosen (Común en WOOF/HUSKY) */
.chosen-container {
    width: 100% !important;
}
.chosen-container-single .chosen-single {
    background: rgba(10, 10, 10, 0.7) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    height: 42px !important;
    line-height: 40px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
}
.chosen-container-single .chosen-single span {
    color: #ffffff !important;
    margin-right: 20px !important;
}
.chosen-container-single .chosen-single div {
    top: 5px !important;
    right: 8px !important;
}
.chosen-container-single .chosen-single div b {
    background-position: 0 10px !important;
}
.chosen-container .chosen-drop {
    background-color: #0d0d0d !important;
    border: 1px solid #333333 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
    margin-top: 5px !important;
    z-index: 99999 !important;
}
.chosen-container .chosen-search {
    background-color: #111111 !important;
    padding: 8px !important;
}
.chosen-container .chosen-search input[type="text"] {
    background: #050505 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    background-image: none !important;
}
.chosen-container .chosen-results {
    color: #cccccc !important;
    max-height: 240px !important;
    background-color: #0d0d0d !important;
    padding: 0 !important;
    margin: 0 !important;
}
.chosen-container .chosen-results li {
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
}
.chosen-container .chosen-results li.highlighted {
    background-color: #8b0000 !important;
    color: #ffffff !important;
    background-image: none !important;
}
.chosen-container-multi .chosen-choices {
    background-color: rgba(10, 10, 10, 0.7) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}
.chosen-container-multi .chosen-choices li.search-choice {
    background-color: #1a1a1a !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 6px !important;
    padding: 6px 20px 6px 10px !important;
}

/* 4. Estilos Generales para Select2 (Alternativa de HUSKY) */
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: rgba(10, 10, 10, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    height: auto !important;
    padding: 6px 12px !important;
    transition: all 0.3s ease !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 1.5 !important;
    padding-left: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #666666 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888888 transparent transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888888 transparent !important;
}
.select2-dropdown {
    background-color: #0d0d0d !important;
    border: 1px solid #333333 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important;
    overflow: hidden !important;
}
.select2-search--dropdown {
    background-color: #111111 !important;
    padding: 8px !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #050505 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #8b0000 !important;
    outline: none !important;
}
.select2-results__options {
    background-color: #0d0d0d !important;
    color: #cccccc !important;
    max-height: 250px !important;
}
.select2-results__option {
    padding: 8px 14px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #8b0000 !important;
    color: #ffffff !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #1a1a1a !important;
    border: 1px solid #333333 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ff3333 !important;
    margin-right: 5px !important;
}

/* =====================================================
   ESTILOS ADICIONALES PARA EL BUSCADOR Y ORDENACIÓN
   ===================================================== */

/* 1. Overrides para FiboSearch (Buscador AJAX) */
.dgwt-wcas-search-wrapp,
.dgwt-wcas-sf-wrapp {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
.dgwt-wcas-search-input {
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important; /* Unificado con el diseño atlético/boxy */
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 48px !important;
    padding: 10px 16px 10px 48px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus,
.dgwt-wcas-search-input:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.35) !important;
    outline: none !important;
    background: rgba(5, 5, 5, 0.9) !important;
}

/* Iconos de FiboSearch */
.dgwt-wcas-ico-magnifier,
.dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier-handler svg {
    fill: #ff0000 !important;
    color: #ff0000 !important;
}

.dgwt-wcas-search-input::placeholder {
    color: #666666 !important;
}

/* Sugerencias de FiboSearch */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-suggestions {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important;
}

.dgwt-wcas-suggestion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: #cccccc !important;
    padding: 12px 16px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestion:hover {
    background: #8b0000 !important;
    color: #ffffff !important;
}

.dgwt-wcas-st, 
.dgwt-wcas-sd, 
.dgwt-wcas-sp {
    color: #ffffff !important;
}

.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected .dgwt-wcas-st,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected .dgwt-wcas-sd,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected .dgwt-wcas-sp {
    color: #ffffff !important;
}

.dgwt-wcas-sp ins {
    color: #ff3333 !important;
    font-weight: bold !important;
}
.dgwt-wcas-sp del {
    color: #888888 !important;
}

/* 2. Filtros Activos (Top Panel de WOOF) */
.woof_products_top_panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    margin-bottom: 25px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.woof_products_top_panel ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
}

.woof_products_top_panel li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woof_products_top_panel li a,
.woof_products_top_panel li span {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(139, 0, 0, 0.1) !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 4px !important; /* Boxy/athletic chips */
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.woof_products_top_panel li a:hover {
    background: #8b0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

.woof_products_top_panel li a img {
    filter: invert(1) !important; /* Invertir icono de borrar a blanco */
    margin-left: 8px !important;
    width: 10px !important;
    height: 10px !important;
    vertical-align: middle !important;
}

/* Botón 'Vaciar todo' (Reset) de los filtros activos */
.woof_products_top_panel li a.woof_reset_button_2 {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cccccc !important;
}

.woof_products_top_panel li a.woof_reset_button_2:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
}

/* 3. Selector de Ordenación (Predeterminado de WooCommerce) */
.woocommerce-ordering select,
select.orderby {
    background-color: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 10px 36px 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.woocommerce-ordering select:focus,
select.orderby:focus {
    border-color: #ff0000 !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3) !important;
    outline: none !important;
}