/**
 * ============================================================================
 * CSS CATEGORÍA 4866 - BALDOSA HIDRÁULICA ORIGINAL COCINA
 * Archivo independiente - Basado en el patrón de 4865 (Baño) y 4564 (Pilar)
 * ============================================================================
 */

/* ========================================================================== */
/* 1. OCULTAR ELEMENTOS INNECESARIOS */
/* ========================================================================== */

.tax-product_cat.term-4866 .woocommerce-breadcrumb,
.tax-product_cat.term-4866 .woocommerce-products-header,
.tax-product_cat.term-4866 .term-description,
.tax-product_cat.term-4866 .product-categories,
.tax-product_cat.term-4866 .doo-category-banner,
.tax-product_cat.term-4866 .wd-shop-tools,
.tax-product_cat.term-4866 .advanced-filter,
.tax-product_cat.term-4866 .filter-wrapper {
    display: none !important;
}

/* ========================================================================== */
/* 2. DESCRIPCIÓN DE CATEGORÍA DINÁMICA (SEO) */
/* ========================================================================== */

.tax-product_cat.term-4866 .bho-guide-section .bho-guide-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tax-product_cat.term-4866 .term-description-dinamica {
    font-family: 'Poppins', sans-serif;
    color: #3f6f7b;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.tax-product_cat.term-4866 .term-description-dinamica h2,
.tax-product_cat.term-4866 .term-description-dinamica h3 {
    color: #102e35;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #4dd2d0;
    display: inline-block;
    padding-bottom: 5px;
}

.tax-product_cat.term-4866 .term-description-dinamica p {
    margin-bottom: 20px;
}

/* ========================================================================== */
/* 3. HERO SECTION - BREAKOUT COMPLETO (Clases estandarizadas) */
/* ========================================================================== */

.tax-product_cat.term-4866 .hero-section-container {
    position: relative;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.tax-product_cat.term-4866 .hero-section-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(63, 111, 123, 0.45);
    z-index: 1;
}

.tax-product_cat.term-4866 .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tax-product_cat.term-4866 .hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tax-product_cat.term-4866 .hero-content p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 30px auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tax-product_cat.term-4866 .hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 100;
}

.tax-product_cat.term-4866 .hero-btn {
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.tax-product_cat.term-4866 .hero-btn.primary {
    background-color: #4dd2d0;
    border-color: #4dd2d0;
    color: #ffffff;
}

.tax-product_cat.term-4866 .hero-btn.primary:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #4dd2d0;
}

.tax-product_cat.term-4866 .hero-btn.secondary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.tax-product_cat.term-4866 .hero-btn.secondary:hover {
    background-color: #ffffff;
    color: #333;
}

/* ========================================================================== */
/* 4. FEATURES SECTION - 4 CARACTERÍSTICAS */
/* ========================================================================== */

.tax-product_cat.term-4866 .bho-features-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.tax-product_cat.term-4866 .bho-features-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tax-product_cat.term-4866 .bho-feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tax-product_cat.term-4866 .bho-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tax-product_cat.term-4866 .bho-feature-item .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tax-product_cat.term-4866 .bho-feature-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #102e35;
    margin: 0 0 10px 0;
}

.tax-product_cat.term-4866 .bho-feature-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #3f6f7b;
    line-height: 1.6;
    margin: 0;
}

/* ========================================================================== */
/* 5. HUB SECTION - 3 CARDS */
/* ========================================================================== */

.tax-product_cat.term-4866 .bho-hub-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.tax-product_cat.term-4866 .bho-hub-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tax-product_cat.term-4866 .bho-hub-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.tax-product_cat.term-4866 .bho-hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.tax-product_cat.term-4866 .bho-hub-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.tax-product_cat.term-4866 .bho-hub-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 20px 20px;
    text-align: center;
}

.tax-product_cat.term-4866 .bho-hub-card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ========================================================================== */
/* 6. AVISO FILTROS - CONSEJO DE ADRIA */
/* ========================================================================== */

.tax-product_cat.term-4866 .aviso-filtros-adrihosan {
    background: #f0fafa;
    border-left: 5px solid #4dd2d0;
    padding: 20px 25px;
    margin: 30px auto;
    max-width: 950px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Poppins', sans-serif;
    color: #102e35;
    font-size: 1.1rem;
}

.tax-product_cat.term-4866 .aviso-filtros-adrihosan strong {
    color: #4dd2d0;
}

/* ========================================================================== */
/* 7. GRID DE PRODUCTOS - ESCRITORIO */
/* ========================================================================== */

.tax-product_cat.term-4866 ul.products {
    clear: both;
    position: relative;
    z-index: 1;
    margin-top: 40px !important;
    padding-top: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tax-product_cat.term-4866 ul.products li.product {
    text-align: center;
}

/* ========================================================================== */
/* 8. SIMULADOR SECTION */
/* ========================================================================== */

.tax-product_cat.term-4866 .bh-simulator-section {
    padding: 80px 20px;
}

.tax-product_cat.term-4866 .bh-simulator-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.tax-product_cat.term-4866 .bh-simulator-device-img {
    margin-top: 0;
}

.tax-product_cat.term-4866 .bh-simulator-text h2,
.tax-product_cat.term-4866 .bh-simulator-text p {
    text-align: left;
}

/* ========================================================================== */
/* 9. GUÍA TÉCNICA HERO (Reutiliza clases del hero) */
/* ========================================================================== */

.tax-product_cat.term-4866 .hero-section-container.guia-tecnica {
    min-height: 40vh;
}

.tax-product_cat.term-4866 .hero-section-container.guia-tecnica .eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4dd2d0;
    margin-bottom: 1rem;
}

/* ========================================================================== */
/* 10. RESPONSIVE - MÓVIL (max-width: 768px) */
/* ========================================================================== */

@media (max-width: 768px) {

    /* --- HERO RESPONSIVE --- */
    .tax-product_cat.term-4866 .hero-section-container {
        min-height: 50vh;
        padding: 40px 15px;
    }

    .tax-product_cat.term-4866 .hero-content h1 {
        font-size: 26px !important;
        padding: 0 10px;
    }

    .tax-product_cat.term-4866 .hero-content p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    /* --- FEATURES RESPONSIVE --- */
    .tax-product_cat.term-4866 .bho-features-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tax-product_cat.term-4866 .bho-feature-item {
        padding: 20px 15px;
    }

    .tax-product_cat.term-4866 .bho-feature-item .icon {
        font-size: 36px;
    }

    .tax-product_cat.term-4866 .bho-feature-item h3 {
        font-size: 15px;
    }

    .tax-product_cat.term-4866 .bho-feature-item p {
        font-size: 13px;
    }

    /* --- HUB RESPONSIVE --- */
    .tax-product_cat.term-4866 .bho-hub-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tax-product_cat.term-4866 .bho-hub-card-img {
        height: 200px;
    }

    /* --- BOTÓN FILTRAR MÓVIL --- */
    #destino-filtro-adria-cocina {
        display: block !important;
        margin: 20px 0 30px 0 !important;
        text-align: center !important;
    }

    #destino-filtro-adria-cocina .wpc-filters-open-button-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        position: relative !important;
        overflow: visible !important;
    }

    #destino-filtro-adria-cocina a {
        display: inline-block !important;
        background: #4dd2d0 !important;
        color: #fff !important;
        padding: 14px 30px !important;
        border-radius: 5px !important;
        text-decoration: none !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 16px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    }

    /* --- GRID PRODUCTOS MÓVIL CENTRADO --- */
    .tax-product_cat.term-4866 ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-top: 30px !important;
        padding: 0 10px !important;
        gap: 20px !important;
    }

    .tax-product_cat.term-4866 ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* --- SIMULADOR RESPONSIVE --- */
    .tax-product_cat.term-4866 .bh-simulator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tax-product_cat.term-4866 .bh-simulator-text h2,
    .tax-product_cat.term-4866 .bh-simulator-text p {
        text-align: center;
    }
}

/* ========================================================================== */
/* 11. RESPONSIVE - TABLET (max-width: 1024px) */
/* ========================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .tax-product_cat.term-4866 .bho-features-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .tax-product_cat.term-4866 .bho-hub-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
