.pgw-container {
    width: 100%;
}

/* ===== BARRA DE FILTROS / ORDENAMIENTO ===== */

.pgw-filter-bar {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #E0B1BA;
    border-bottom: 1px solid #E0B1BA;
    margin-bottom: 2rem;
    font-size: 14px;
    font-family: Founders Grotesk Official, sans-serif;
    color: #7A0D13;
}

.pgw-sort-container {
    position: relative;
    padding-right: 20px;
    border-right: 1px solid #E0B1BA;
}

.pgw-filter-sort {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
    color: #BB5D80;
    font-family: Founders Grotesk Official, sans-serif;
}

.pgw-filter-sort svg {
    width: 12px;
    height: 12px;
    margin-top: -5px;
    stroke: #7A0D13;
    transition: transform 0.2s ease;
}

.pgw-sort-container.active .pgw-filter-sort svg {
    transform: rotate(180deg);
}

/* Dropdown de ordenamiento */
.pgw-sort-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FEF3E7;
    border: 1px solid #E0B1BA;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(122, 13, 19, 0.12);
    min-width: 180px;
    z-index: 100;
    display: none;
    margin-top: 8px;
    overflow: hidden;
    padding: 0;
}

.pgw-sort-container.active .pgw-sort-dropdown {
    display: block;
}

.pgw-sort-option {
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
    font-family: Founders Grotesk Official, sans-serif;
    color: #7A0D13;
}

.pgw-sort-option:hover {
    background-color: #F3DBD76E;
}

.pgw-sort-option.active {
    font-weight: 600;
    color: #7A0D13;
    background-color: #F3DBD7;
}

/* Botón filtrar */
.pgw-filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
    color: #BB5D80;
    font-family: Founders Grotesk Official, sans-serif;
}

.pgw-filter-btn:hover {
    opacity: 0.7;
}

.pgw-filter-btn svg {
    width: 20px;
    height: 20px;
    margin-top: -5px;
    stroke: #BB5D80;
}

.pgw-filter-btn svg circle {
    fill: #FEF3E7;
}

/* ===== SIDEBAR DE FILTROS ===== */

.pgw-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(6 6 6 / 34%);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(1px);
}

.pgw-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pgw-filter-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    max-width: 92vw;
    height: 100%;
    background: #FEF3E7;
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 2px solid #E0B1BA;
}

.pgw-filter-sidebar.active {
    right: 0;
}

/* Header del sidebar */
.pgw-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #E0B1BA;
    background: #F3DBD7;
}

.pgw-filter-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    font-family: Celestia, serif;
    color: #BB5D80;
    letter-spacing: 0.02em;
}

.pgw-filter-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: #7A0D13;
}

.pgw-filter-close:hover {
    background-color: rgba(122, 13, 19, 0.1);
}

.pgw-filter-close svg {
    width: 18px;
    height: 18px;
    stroke: #BB5D80;
}

/* Contenido del sidebar */
.pgw-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Scrollbar personalizado */
.pgw-filter-content::-webkit-scrollbar {
    width: 5px;
}

.pgw-filter-content::-webkit-scrollbar-track {
    background: transparent;
}

.pgw-filter-content::-webkit-scrollbar-thumb {
    background: #E0B1BA;
    border-radius: 10px;
}

.pgw-filter-content::-webkit-scrollbar-thumb:hover {
    background: #BB5D80;
}

/* Grupos de filtros */
.pgw-filter-group {
    margin-bottom: 28px;
}

.pgw-filter-group-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: #7A0D13;
    font-family: Founders Grotesk Official, sans-serif;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0B1BA;
}

.pgw-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgw-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.15s ease;
}

.pgw-filter-option:hover {
    opacity: 0.8;
}

.pgw-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    border: 1.5px solid #E0B1BA;
    background-color: #FEF3E7;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    flex-shrink: 0;
    margin-top: -4px;
}

.pgw-filter-option input[type="checkbox"]:hover {
    border-color: #7A0D13;
    box-shadow: 0 0 0 3px rgba(122, 13, 19, 0.08);
}

.pgw-filter-option input[type="checkbox"]:checked {
    border-color: #7A0D13;
    background-color: #FEF3E7;
}

.pgw-filter-option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #BB5D80;
}

.pgw-filter-option input[type="checkbox"]:checked:hover {
    box-shadow: 0 0 0 3px rgba(122, 13, 19, 0.12);
}

.pgw-filter-option label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    color: #7A0D13;
    font-family: Founders Grotesk Official, sans-serif;
}

.pgw-filter-option .count {
    font-size: 12px;
    color: #BB5D80;
    font-family: Founders Grotesk Official, sans-serif;
}

/* Rango de precio */
.pgw-price-range {
    padding: 10px 0;
}

.pgw-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pgw-price-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pgw-price-input label {
    font-size: 12px;
    color: #BB5D80;
    font-family: Founders Grotesk Official, sans-serif;
}

.pgw-price-input input {
    width: 100%;
    padding: 11px 12px 6px 12px;
    border: 1px solid #E0B1BA;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    color: #BB5D80;
    font-family: Founders Grotesk Official, sans-serif;
}

.pgw-price-input input:focus {
    border-color: #7A0D13;
    box-shadow: 0 0 0 3px rgba(122, 13, 19, 0.1);
}

.pgw-price-input input::placeholder {
    color: #CFAAB5;
}

.pgw-price-separator {
    color: #E0B1BA;
    font-size: 20px;
    margin-top: 28px;
}

/* Footer del sidebar */
.pgw-filter-footer {
    padding: 18px 24px;
    border-top: 1px solid #E0B1BA;
    display: flex;
    gap: 10px;
    background: #F3DBD7;
}

.pgw-filter-footer button {
    flex: 1;
    padding: 15px 20px 9px 20px;
    font-size: 14px;
    text-shadow: none;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Founders Grotesk Official, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pgw-btn-clear {
    background: #fff;
    border: 1px solid #E0B1BA;
    color: #BB5D80;
}

.pgw-btn-clear:hover {
    background: #BB5D80;
    border-color: transparent;
}

.pgw-btn-apply {
    background: #7A0D13;
    border: 1px solid #7A0D13;
    color: #FEF3E7;
}

.pgw-btn-apply:hover {
    background: #BB5D80;
    border-color: transparent !important;
}

/* Badge de filtros activos */
.pgw-filter-badge {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #7A0D13;
    color: #FEF3E7;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
}

.pgw-filter-badge.active {
    display: flex;
}

/* Mensaje sin resultados */
.pgw-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #BB5D80;
}

.pgw-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
    stroke: #BB5D80;
}

.pgw-no-results p {
    margin: 0;
    font-size: 16px;
    font-family: Founders Grotesk Official, sans-serif;
}









/* Cuadrícula de productos */




.pgw-product-item {
    display: none;
    flex-direction: column;
}

.pgw-product-item.visible {
    display: flex;
}

.pgw-product-link {
    text-decoration: none;
    color: inherit;
}

.pgw-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.pgw-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

/* Imagen principal */
.pgw-product-image .pgw-img-primary {
    opacity: 1;
    z-index: 1;
}

/* Imagen hover (segunda de galería) */
.pgw-product-image .pgw-img-hover {
    opacity: 0;
}

/* Efecto hover cuando hay imagen secundaria */
.pgw-product-item.has-hover-image:hover .pgw-img-primary {
    opacity: 0;
}

.pgw-product-item.has-hover-image:hover .pgw-img-hover {
    opacity: 1;
}

.pgw-product-info {
    padding: 0 5px;
}

.pgw-product-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.pgw-product-price {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Paginación */
.pgw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 1rem;
    padding: 20px 0;
    font-size: 14px;
    color: #BB5D80;
}

.pgw-page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 3px;
}

.pgw-page-arrow:hover {
    opacity: 0.7;
}

.pgw-page-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pgw-page-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #BB5D80;
}

/* Números de página con flor */
.pgw-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.pgw-page-num-text {
    position: relative;
    z-index: 2;
    line-height: 1;
    margin-top: 6px;
}

/* Flor base (oculta por defecto) */
.pgw-page-flower {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 1;
    animation: pgw-rotar-flor 24s linear infinite;
    pointer-events: none;
}

/* Flor activa: visible, color fuerte (#7A0D13) */
.pgw-page-flower--active {
    opacity: 1;
}

/* Flor hover: oculta por defecto, color claro */
.pgw-page-flower--hover {
    opacity: 0;
    transition: opacity 0.25s ease;
    transition-duration: 0.25s !important;
    filter: saturate(0.3) brightness(1.5);
}

/* Al hacer hover sobre página inactiva, mostrar flor clara */
.pgw-page-num:not(.active):not(.dots):hover .pgw-page-flower--hover {
    opacity: .15;
}

/* Página activa: texto blanco */
.pgw-page-num.active {
    background-color: transparent;
    color: #fff;
}

.pgw-page-num.active .pgw-page-num-text {
    color: #FEF3E7;
    font-weight: 600;
}

/* Página inactiva hover: texto oscuro */
.pgw-page-num:not(.active):not(.dots):hover .pgw-page-num-text {
    color: #7A0D13;
}

@keyframes pgw-rotar-flor {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pgw-page-num.dots {
    cursor: default;
}


















/* ==================================================
   ESTILOS GLOBALES: Widget Products Grid
   ================================================== */

div.pgw-grid {
    display: grid;
}

div.pgw-container {
    background-color: transparent !important;
}

div.pgw-product-image {
    background-color: transparent !important;
    overflow: visible;
}

span.eael-onsale.sale-preset-5.left {
    font-family: Founders Grotesk Official;
    transform: rotate(0) !important;
    justify-content: center;
    align-items: center;
    position: absolute;
    background: none;
    color: #FEF3E7;
    display: flex;
    z-index: 2;
}

span.eael-onsale.sale-preset-5.left::before {
    background: url("https://floristeriahechizosdeamor.com/wp-content/uploads/2025/02/icono-oferta-flor-background.svg") no-repeat center center;
    animation: rotar-fondo 24s linear infinite;
    background-size: contain;
    position: absolute;
    height: 100%;
    content: "";
    width: 100%;
    z-index: -1;
    left: 0;
    top: 0;
}

@keyframes rotar-fondo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

div.pgw-product-image img {
    border-radius: 12px;
}

div.pgw-product-image a.pgw-add-to-cart {
    transition: color 0.1s ease, background 0.1s ease, all 0.4s ease !important;
    text-transform: capitalize !important;
    background: #F3DBD7 !important;
    transform: translateX(-50%);
    color: #7A0D13 !important;
    font-family: Celestia;
    border-radius: 12px;
    position: absolute;
    visibility: hidden;
    text-align: center;
    font-weight: 400;
    bottom: -1rem;
    border: none;
    width: 100%;
    z-index: 2;
    opacity: 0;
    left: 50%;
}

div.pgw-product-image:hover a.pgw-add-to-cart {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

div.pgw-product-image a.pgw-add-to-cart:hover {
    background: #BB5D80 !important;
    color: #FEF3E7 !important;


}

/* ==================================================
   BOTÓN "PEDIR POR WHATSAPP" (grid fúnebre)

   Hereda de .pgw-add-to-cart toda la posición/tamaño/aparición al hover
   (bloque de arriba); acá solo se pisa el color con el acento de WhatsApp.

   El selector suma [data-hz-keep] (atributo que este botón SIEMPRE trae)
   para pesar más que ".pgw-style-funebre ... a.pgw-add-to-cart" del preset
   fúnebre (product-grid-funebre.css, que también usa !important) sin tocar
   ese archivo ni depender del orden de carga entre los dos CSS.
   ================================================== */
div.pgw-product-image a.pgw-add-to-cart.lumik-grid-wa[data-hz-keep] {
    background: #25D366 !important;
    color: #ffffff !important;
}

div.pgw-product-image a.pgw-add-to-cart.lumik-grid-wa[data-hz-keep]:hover {
    background: #1EBE57 !important;
    color: #ffffff !important;
}








/* Botón Comprar Ahora → Ver Carrito */

.pgw-product-image .pgw-add-to-cart.added::after {
    display: none;
}

.pgw-product-image .pgw-add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Ocultar el link "Ver carrito" que WooCommerce inyecta automáticamente */
div.pgw-product-image a.added_to_cart,
div.pgw-product-image .added_to_cart.wc-forward {
    display: none !important;
}

/* Forzar que .added y .pgw-view-cart sigan ocultos por defecto (solo hover) */
div.pgw-product-image a.pgw-add-to-cart.added,
div.pgw-product-image a.pgw-view-cart {
    visibility: hidden !important;
    opacity: 0 !important;
    bottom: -1rem;
}

div.pgw-product-image:hover a.pgw-add-to-cart.added,
div.pgw-product-image:hover a.pgw-view-cart {
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 0;
}

/* Estado visual "Ver Carrito" */
div.pgw-product-image a.pgw-view-cart,
div.pgw-product-image a.pgw-add-to-cart.added {
    background: #F3DBD7 !important;
    color: #7A0D13 !important;
}

div.pgw-product-image a.pgw-view-cart:hover,
div.pgw-product-image a.pgw-add-to-cart.added:hover {
    background-color: #BB5D80 !important;
    color: #FEF3E7 !important;
}












    /* Voy antes de este comentario */


div.pgw-product-info {
    position: relative !important;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    z-index: 2;
}

div.pgw-product-info h3 {
    text-transform: capitalize !important;
    font-weight: 400 !important;
    color: #FEF3E7 !important;
    font-family: Qalogre fit;
    text-overflow: ellipsis;
    margin: auto !important;
    white-space: nowrap;
    background: #7A0D13;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
}

p.pgw-product-price span.pgw-price-current {
    font-family: Founders Grotesk Official;
    font-weight: 400 !important;
    color: #BB5D80 !important;
    margin: 0rem !important;
    white-space: nowrap;
}

p.pgw-product-price span.pgw-price-regular {
    text-decoration: line-through;
    color: #BB5D808F !important;
    padding-left: 0.3rem;
    white-space: nowrap;
}



/* ==================================================
   ESTILOS DESKTOP: Widget Products Grid
   ================================================== */

@media screen and (min-width: 1025px) {
    
    div.elementor-widget-lumik_product_grid {
        width: 100%;
    }  
    
    div.pgw-grid {
        gap: 2.4rem !important;
    }
    
    span.eael-onsale.sale-preset-5.left {
        top: -1.4rem;
        left: -1.6rem;
        width: 44%;
        max-width: 5.8rem;
        height: 44%;
        max-height: 5.8rem;
        font-size: 1.3rem;
        padding-top: 6px;
    }  
    
    div.pgw-product-image a.pgw-add-to-cart {
        margin-top: -1.4rem !important;
        font-size: 1.1rem !important;
        height: 4.2rem;
    }    
    
    div.pgw-product-info {
        margin-top: -2.4rem;
    }    
    
    div.pgw-product-info h3 {
        padding: 0 1.5rem !important;
        font-size: 1.216rem !important;
        height: 3.2rem;
        line-height: 2.8 !important;
        width: 80%;
        max-width: 12rem;
        margin-bottom: 0.8rem !important;
    }    
    
    p.pgw-product-price span.pgw-price-current {
        font-size: 1.3rem !important;
    }
    
    p.pgw-product-price span.pgw-price-regular {
        font-size: 1.2rem !important;
        vertical-align: 0.4px;
    }	    
}




/* ==================================================
   ESTILOS MOBILE: Widget Products Grid
   ================================================== */

@media screen and (max-width: 767px) {
    
    div.elementor-widget-lumik_product_grid {
        max-width: 28rem !important;
        padding: 0 0.6rem;
        margin: 0 auto;
        width: 100%;
    }
    
    div.pgw-grid {
        gap: 1.2rem !important;
    }    
    
    div.pgw-product-item {
        min-width: 0;
    }
    
    span.eael-onsale.sale-preset-5.left {
        max-height: 4.95rem;
        max-width: 4.95rem;
        font-size: 1.2rem;
        padding-top: 6px;
        left: -0.6rem;
        top: -0.8rem;
        height: 45%;
        width: 45%;  
    }    
    
    div.pgw-product-image a.pgw-add-to-cart {
        margin-top: -1rem !important;
        font-size: 1.1rem !important;
        height: 4rem;
    }      
    
    div.pgw-product-info {
        margin-top: -2.4rem;
    }   
    
    div.pgw-product-info h3 {
        margin-bottom: 0.6rem !important;
        font-size: 1.05rem !important;
        padding: 0 0.8rem !important;
        line-height: 3.2 !important;
        height: 3rem;
        width: 80%;
    }    
    
    p.pgw-product-price span.pgw-price-current {
        font-size: 1.2rem !important;
    }
    
    p.pgw-product-price span.pgw-price-regular {
        font-size: 1.1rem !important;
        vertical-align: 0.4px;
    }

    p.pgw-product-price {
        overflow: hidden;
        white-space: nowrap;
        max-width: 100%;
        display: block;
    }
}



/* ==================================================
   ESTILOS TABLER: Widget Products Grid
   ================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    
    div.elementor-widget-lumik_product_grid {
        max-width: 48rem !important;
        width: 100%;
    }    
    
    div.pgw-grid {
        gap: 2.4rem !important;
    } 
    
    
    
    span.eael-onsale.sale-preset-5.left {
        font-size: 1.3rem;
        padding-top: 6px;
        height: 5.6rem;
        left: -1.4rem;
        width: 5.6rem;
        top: -1.4rem;
    }    
    
    div.pgw-product-image a.pgw-add-to-cart {
        margin-top: -1.4rem !important;
        font-size: 1.1rem !important;
        height: 4.2rem;
    }  
    
    div.pgw-product-info {
        margin-top: -2.2rem;
    }    
    
    div.pgw-product-info h3 {
        margin-bottom: 0.8rem !important;
        padding: 0 1.5rem !important;
        font-size: 1.1rem !important;
        line-height: 3.1 !important;
        max-width: 12rem;
        height: 3rem;
        width: 80%;
    }    
    
    p.pgw-product-price span.pgw-price-current {
        font-size: 1.3rem !important;
    }
    
    p.pgw-product-price span.pgw-price-regular {
        font-size: 1.2rem !important;
        vertical-align: 0.4px;
    }   
}