/*
Theme Name: PM
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,000+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.12.3.1770840874
Updated: 2026-02-11 20:14:34

*/

/**
 * CSS DEFINITIVO para productos WooCommerce en Astra
 * Basado en el HTML real de la instalación
 * 
 * PEGAR EN: Apariencia → Personalizar → CSS Adicional
 */

/* ===== RESETEAR GRID DE ASTRA ===== */
ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ===== CARD DEL PRODUCTO ===== */
li.ast-grid-common-col.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

li.ast-grid-common-col.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}

/* ===== IMAGEN DEL PRODUCTO ===== */
.astra-shop-thumbnail-wrap {
    position: relative !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f9fafb !important;
}

.astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link {
    display: block !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
}

.astra-shop-thumbnail-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

li.ast-grid-common-col.product:hover .astra-shop-thumbnail-wrap img {
    transform: scale(1.1) !important;
}

/* Ocultar botón flotante en la imagen */
.ast-on-card-button.ast-select-options-trigger {
    display: none !important;
}

/* ===== CONTENIDO DEL PRODUCTO ===== */
.astra-shop-summary-wrap {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
    flex: 1 !important;
}

/* Categoría */
.ast-woo-product-category {
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #F97316 !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

/* Título */
.astra-shop-summary-wrap a.ast-loop-product__link {
    text-decoration: none !important;
}

.astra-shop-summary-wrap h2.woocommerce-loop-product__title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1E3A8A !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s !important;
}

li.ast-grid-common-col.product:hover h2.woocommerce-loop-product__title {
    color: #3B82F6 !important;
}

/* Rating */
.astra-shop-summary-wrap .review-rating {
    margin: 0 !important;
}

.astra-shop-summary-wrap .star-rating {
    font-size: 0.875rem !important;
}

/* Precio */
.astra-shop-summary-wrap .price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #F97316 !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    display: block !important;
}

.astra-shop-summary-wrap .price del {
    opacity: 0.5 !important;
    font-size: 0.65em !important;
    margin-right: 0.5rem !important;
}

.astra-shop-summary-wrap .price ins {
    text-decoration: none !important;
    background: none !important;
}

/* ===== BOTÓN AÑADIR AL CARRITO ===== */
.astra-shop-summary-wrap a.button {
    width: 100% !important;
    margin: 1rem 0 0 0 !important;
    padding: 0.875rem 1.5rem !important;
    background-color: #F97316 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
}

.astra-shop-summary-wrap a.button:hover {
    background-color: #e55a2b !important;
    background-image: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
    color: #ffffff !important;
}

/* ===== TITULOS DE SECCIONES ===== */
.woocommerce .products > h2,
.related.products > h2,
.upsells.products > h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    color: #1E3A8A !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* ===== SECCIONES CON FONDO FULL WIDTH ===== */
.woocommerce .related.products,
.woocommerce .upsells.products {
    padding: 5rem 0 !important;
    background-color: #f8f9fa !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 2rem 3rem 2rem !important;
}

.woocommerce .related.products ul.products,
.woocommerce .upsells.products ul.products {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 2rem !important;
}

/* ===== LIMPIAR CLASES DE ASTRA ===== */
.ast-width-md-4,
.ast-archive-post,
.ast-separate-posts,
.remove-featured-img-padding {
    /* Resetear cualquier estilo que interfiera */
}

/* Asegurar que no haya floats */
li.ast-grid-common-col.product::after,
li.ast-grid-common-col.product::before {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    ul.products.columns-4 {
        gap: 1.5rem !important;
    }
    
    li.ast-grid-common-col.product {
        width: 100% !important;
    }
}

/* ===== FIX PARA COLUMNAS ===== */
@media (min-width: 768px) {
    ul.products.columns-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1400px) {
    ul.products.columns-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}