/**
 * CATEGORY OVERRIDES CSS - Overrides y fixes para el tema Blocksy
 * 
 * CONTENIDO:
 * - Ocultar elementos de Blocksy que interfieren
 * - Resets específicos para páginas de categorías
 * - Fixes de compatibilidad con WooCommerce
 * - Ajustes de layout específicos del tema
 * 
 * PROPÓSITO:
 * - Eliminar elementos de Blocksy que causan conflictos
 * - Crear espacio limpio para el sistema de banners personalizado
 * - Mantener compatibilidad con actualizaciones del tema padre
 * 
 * NAMESPACE: .meloopets-shop
 */

/* ===================================================================
   OCULTAR HEADER/HERO SECTIONS DE BLOCKSY
   ================================================================= */

/* Ocultar header/hero section de Blocksy en páginas de productos */
.meloopets-shop .woocommerce-page .entry-header,
.meloopets-shop .woocommerce .entry-header,
.meloopets-shop .tax-product_cat .entry-header,
.meloopets-shop .post-type-archive-product .entry-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

/* ===================================================================
   OCULTAR BREADCRUMBS DE BLOCKSY
   ================================================================= */

/* Ocultar breadcrumbs de Blocksy para usar los personalizados */
.meloopets-shop .woocommerce-page .ct-breadcrumbs,
.meloopets-shop .woocommerce .ct-breadcrumbs,
.meloopets-shop .tax-product_cat .ct-breadcrumbs {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

/* ===================================================================
   OCULTAR HERO SECTION DE BLOCKSY
   ================================================================= */

/* Ocultar hero section completa de Blocksy */
.meloopets-shop .woocommerce-page .hero-section,
.meloopets-shop .woocommerce .hero-section,
.meloopets-shop .tax-product_cat .hero-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

/* ===================================================================
   OCULTAR PAGE HEADER DE BLOCKSY
   ================================================================= */

/* Ocultar page header de Blocksy */
.meloopets-shop .woocommerce-page .page-header,
.meloopets-shop .woocommerce .page-header,
.meloopets-shop .tax-product_cat .page-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

/* ===================================================================
   FIXES ADICIONALES PARA BLOCKSY
   ================================================================= */

/* Remover márgenes y paddings que pueden interferir */
.meloopets-shop .woocommerce-page .site-main,
.meloopets-shop .woocommerce .site-main,
.meloopets-shop .tax-product_cat .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Asegurar que el contenido principal tenga el espacio correcto */
.meloopets-shop .woocommerce-page .content-area,
.meloopets-shop .woocommerce .content-area,
.meloopets-shop .tax-product_cat .content-area {
    padding-top: 20px !important;
}

/* Fix para títulos de página que puedan aparecer */
.meloopets-shop .page-title,
.meloopets-shop .archive-title,
.meloopets-shop .woocommerce-page .page-title,
.meloopets-shop .tax-product_cat .page-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* ===================================================================
   COMPATIBILITY FIXES
   ================================================================= */

/* Fix para elementos flotantes de Blocksy */
.meloopets-shop .ct-container::before,
.meloopets-shop .ct-container::after {
    content: none !important;
}

/* Limpiar clearfix que puedan interferir */
.meloopets-shop .clearfix::before,
.meloopets-shop .clearfix::after {
    content: none !important;
}

/* Fix para elementos de navegación de Blocksy que aparezcan */
.meloopets-shop .ct-featured-image,
.meloopets-shop .ct-post-title {
    display: none !important;
    visibility: hidden !important;
}
