/* ============================================================ */
/*  PETFOODCARTAGENA - CSS PERSONALIZADO                        */
/*  Última actualización: 08-jun-2026 (v4 - menú legible)       */
/*  Estructura ordenada por secciones numeradas                 */
/* ============================================================ */


/* ============================================================ */
/*  1. ENCABEZADO Y MENÚ                                        */
/* ============================================================ */

/* Menú legible en cabecera transparente sobre la foto */
.ast-theme-transparent-header .main-header-menu .menu-link,
.ast-theme-transparent-header .main-header-menu > .menu-item > a,
.ast-theme-transparent-header .main-header-menu .menu-item a {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6) !important;
}

/* Hover y página activa */
.ast-theme-transparent-header .main-header-menu .menu-link:hover,
.ast-theme-transparent-header .main-header-menu > .menu-item > a:hover,
.ast-theme-transparent-header .main-header-menu .menu-item a:hover,
.ast-theme-transparent-header .main-header-menu .current-menu-item > a {
    color: #A8D46A !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85) !important;
}

/* Carrito legible en cabecera transparente */
.ast-theme-transparent-header .ast-site-header-cart .ast-cart-menu-wrap,
.ast-theme-transparent-header .ast-cart-menu-wrap .count {
    color: #FFFFFF !important;
}


/* ============================================================ */
/*  2. TIPOGRAFÍA - QUITAR CAPITALIZE FORZADO                   */
/* ============================================================ */

/* Todos los headings de Elementor (cubre también icon-box) */
.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6,
.elementor .elementor-heading-title,
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6,
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-icon-box .elementor-icon-box-title a {
    text-transform: none !important;
}

/* Títulos de productos individuales WooCommerce */
.woocommerce h1.product_title,
.product_title,
.entry-title,
.single-product .entry-title,
.single-product h1,
.single-product .product_title,
body.single-product h1,
body.single-product .entry-title,
body.single-product .product_title {
    text-transform: none !important;
}

/* Precios y descripciones */
.woocommerce-Price-amount,
.woocommerce-product-details__short-description,
.short-description,
.summary p {
    text-transform: none !important;
}

/* Headings dentro de descripción y tabs de producto */
.woocommerce-product-details__short-description h1,
.woocommerce-product-details__short-description h2,
.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h4,
.woocommerce-product-details__short-description h5,
.woocommerce-product-details__short-description h6,
.woocommerce-Tabs-panel h1,
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3,
.woocommerce-Tabs-panel h4,
.woocommerce-Tabs-panel h5,
.woocommerce-Tabs-panel h6 {
    text-transform: none !important;
}


/* ============================================================ */
/*  3. TIENDA WOOCOMMERCE - CONTENEDOR DE PRODUCTO              */
/*  (catálogo /tienda/ y categorías)                            */
/* ============================================================ */

/* Tarjeta del producto: flex column + altura automática */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 15px !important;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px !important;
}

/* Imagen del producto: altura fija + contain */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce-page ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
    margin-bottom: 12px !important;
}

/* Link del producto: ocupa el espacio disponible */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
}


/* ============================================================ */
/*  4. TIENDA WOOCOMMERCE - TÍTULOS, PRECIOS, BOTONES           */
/*  (SOLO afecta a productos, NO a subcategorías)               */
/* ============================================================ */

/* Título del PRODUCTO: 1 línea con puntos suspensivos */
/* Usamos selector ESPECÍFICO para no afectar títulos de categoría */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: unset !important;
    max-height: unset !important;
    height: auto !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 8px 0 !important;
    padding: 0 5px !important;
    cursor: pointer !important;
}

/* Precios: alineación centrada + altura fija */
.woocommerce ul.products li.product .price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    max-height: 40px !important;
    text-align: center !important;
    margin: 5px 0 !important;
    flex-wrap: wrap !important;
}

/* Botón "Añadir al carrito": siempre al fondo */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

/* Etiqueta OFERTA: esquina superior derecha */
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
}

/* Ocultar marca y categoría sobre la tarjeta (look limpio) */
.woocommerce ul.products li.product .product-brand,
.woocommerce ul.products li.product .wc-brand,
.woocommerce ul.products li.product .brand,
.woocommerce ul.products li.product .woocommerce-product-brand,
.woocommerce ul.products li.product .product-category,
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .product_meta,
.woocommerce ul.products li.product .cat-links,
.woocommerce ul.products li.product .product-categories {
    display: none !important;
}


/* ============================================================ */
/*  5. PÁGINA /OFERTAS/ (bloques Gutenberg)                     */
/* ============================================================ */

/* Truncar títulos a 1 línea en bloques wp-block-post-title */
.wp-block-post-title,
.wp-block-post-title a,
.wp-block-query .wp-block-post-title,
.wp-block-query .wp-block-post-title a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
}

/* Contenedor del título respeta el ancho */
.wp-block-query .wp-block-post-template li,
.wp-block-query .wp-block-post-template article {
    overflow: hidden !important;
}


/* ============================================================ */
/*  6. ASTRA - OCULTAR BOTONES DEL THUMBNAIL                    */
/* ============================================================ */

.astra-shop-thumbnail-wrap:hover .ast-on-card-button:not(.ast-onsale-card) {
    display: none !important;
}

span.ast-on-card-button.ast-onsale-card {
    display: none !important;
}


/* ============================================================ */
/*  7. ASTRA + PWB - OCULTAR MARCA Y CATEGORÍA EN TIENDA       */
/* ============================================================ */

/* Ocultar marca PWB (pwb-brands-in-loop) en la grilla de productos */
.woocommerce ul.products li.product .pwb-brands-in-loop,
.pwb-brands-in-loop {
    display: none !important;
}

/* Ocultar categoría dentro de astra-shop-summary-wrap */
.astra-shop-summary-wrap .ast-woo-product-category,
.astra-shop-summary-wrap .product-category,
.astra-shop-summary-wrap .posted_in {
    display: none !important;
}


/* ============================================================ */
/*  8. SUBCATEGORÍAS - NOMBRE COMPLETO EN /perros/ Y /gatos/    */
/*  Fix específico para títulos de subcategoría                 */
/* ============================================================ */

/* Permitir nombre completo en títulos de subcategoría */
/* Selector específico que sobrescribe el truncado de productos */
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
h2.woocommerce-loop-category__title,
.woocommerce-loop-category__title,
.woocommerce-loop-category__title a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    max-height: none !important;
    min-height: unset !important;
    height: auto !important;
    text-align: center !important;
}


/* ============================================================ */
/*  9. FOOTER PROFESIONAL 4 COLUMNAS                            */
/* ============================================================ */

.pfc-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    color: #FFFFFF;
}

.pfc-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.pfc-footer-col h4 {
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

.pfc-footer-col p {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.6;
    margin: 5px 0;
}

.pfc-footer-col a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: color 0.3s;
}

.pfc-footer-col a:hover {
    color: #A8D46A !important;
    text-decoration: underline;
}

.pfc-tagline {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 10px !important;
}

.pfc-mini {
    font-size: 13px !important;
    opacity: 0.9;
}

.pfc-store-name {
    font-size: 14px;
    margin-top: 10px !important;
}

.pfc-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.pfc-social a {
    display: inline-block;
    padding: 5px 0;
}

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

.pfc-footer-menu li {
    margin: 6px 0;
    font-size: 14px;
}

.pfc-footer-menu li a {
    color: #FFFFFF !important;
}

.pfc-payments {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #FFFFFF;
    font-size: 14px;
}

.pfc-payments p {
    margin: 0;
    color: #FFFFFF;
}


/* ============================================================ */
/*  10. RESPONSIVE - MEDIA QUERIES                              */
/* ============================================================ */

/* Tablet: footer en 2 columnas */
@media (max-width: 1024px) {
    .pfc-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: footer en 1 columna */
@media (max-width: 600px) {
    .pfc-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pfc-footer {
        padding: 30px 15px 15px;
    }
}


/* ============================================================ */
/*  11. FIX - ESPACIO PARA NOMBRES LARGOS EN SUBCATEGORÍAS      */
/* ============================================================ */

/* Reducir altura de imagen de subcategoría para dar espacio al título */
.woocommerce ul.products li.product-category img,
.woocommerce ul.products li.product-category a img {
    height: 150px !important;
    max-height: 150px !important;
    margin-bottom: 20px !important;
}

/* Asegurar espacio entre imagen y título */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    position: relative !important;
    z-index: 5 !important;
    background: transparent !important;
}

/* Contenedor de subcategoría con espacio extra abajo */
.woocommerce ul.products li.product-category {
    padding-bottom: 25px !important;
}

/* === FIN FIX ESPACIO SUBCATEGORÍAS === */

/* ============================================================ */
/*  FIN DEL ARCHIVO                                             */
/* ============================================================ */
/*  12. FIX - ESPACIO SUPERIOR EN PÁGINAS DE CONTENIDO         */
/*  (Preguntas Frecuentes, Blog y entradas con header trans.)  */
/* ============================================================ */

/* Empuja el contenido hacia abajo para que no se meta bajo el menú */
.ast-theme-transparent-header.page .site-content .ast-container,
.ast-theme-transparent-header.single .site-content .ast-container,
.ast-theme-transparent-header.archive .site-content .ast-container,
.ast-theme-transparent-header.blog .site-content .ast-container {
    padding-top: 120px !important;
}

/* En celulares, un poco menos de espacio */
@media (max-width: 768px) {
    .ast-theme-transparent-header.page .site-content .ast-container,
    .ast-theme-transparent-header.single .site-content .ast-container,
    .ast-theme-transparent-header.archive .site-content .ast-container,
    .ast-theme-transparent-header.blog .site-content .ast-container {
        padding-top: 90px !important;
    }
}
/* ============================================================ */
/*  13. FONDO ROJO EN LA BARRA DEL MENÚ                        */
/* ============================================================ */

/* Franja roja sólida en el encabezado (incluso transparente) */
.ast-theme-transparent-header .ast-primary-header-bar,
.ast-theme-transparent-header .main-header-bar,
.site-header .ast-primary-header-bar,
.site-header .main-header-bar {
    background-color: #CC0000 !important;
}

/* Letras del menú en blanco sobre el rojo */
.main-header-menu .menu-link,
.main-header-menu > .menu-item > a,
.ast-theme-transparent-header .main-header-menu .menu-link,
.ast-theme-transparent-header .main-header-menu > .menu-item > a {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Hover y página activa en verde lima */
.main-header-menu .menu-link:hover,
.main-header-menu > .menu-item > a:hover,
.main-header-menu .current-menu-item > a,
.ast-theme-transparent-header .main-header-menu .menu-link:hover,
.ast-theme-transparent-header .main-header-menu .current-menu-item > a {
    color: #A8D46A !important;
}

/* === FIN FONDO ROJO MENÚ === */
/* === FIN FIX ESPACIO SUPERIOR === *//* ============================================================ */