.pgw-container {
    width: 100%;
}

.pgw-filter-bar {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
    font-size: 14px;
}

.pgw-sort-container {
    position: relative;
    padding-right: 20px;
    border-right: 1px solid #e5e5e5;
}

.pgw-filter-sort {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
}

.pgw-filter-sort svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.pgw-sort-container.active .pgw-filter-sort svg {
    transform: rotate(180deg);
}

.pgw-sort-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.pgw-sort-container.active .pgw-sort-dropdown {
    display: block;
}

.pgw-sort-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.pgw-sort-option:hover {
    background-color: #f5f5f5;
}

.pgw-sort-option.active {
    font-weight: 600;
    color: #000;
}

.pgw-filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pgw-filter-btn:hover {
    opacity: 0.7;
}

.pgw-filter-btn svg {
    width: 20px;
    height: 20px;
}

/* Sidebar de Filtros */
.pgw-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pgw-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pgw-filter-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.pgw-filter-sidebar.active {
    right: 0;
}

.pgw-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.pgw-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pgw-filter-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.pgw-filter-close:hover {
    background-color: #f5f5f5;
}

.pgw-filter-close svg {
    width: 20px;
    height: 20px;
}

.pgw-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.pgw-filter-group {
    margin-bottom: 25px;
}

.pgw-filter-group-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pgw-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pgw-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.pgw-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.pgw-filter-option label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.pgw-filter-option .count {
    font-size: 12px;
    color: #888;
}

/* 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: #666;
}

.pgw-price-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.pgw-price-input input:focus {
    border-color: #1a1a1a;
}

.pgw-price-separator {
    color: #ccc;
    font-size: 20px;
    margin-top: 20px;
}

.pgw-filter-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 10px;
}

.pgw-filter-footer button {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pgw-btn-clear {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #1a1a1a;
}

.pgw-btn-clear:hover {
    background: #f5f5f5;
}

.pgw-btn-apply {
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    color: #fff;
}

.pgw-btn-apply:hover {
    background: #333;
}

/* Badge de filtros activos */
.pgw-filter-badge {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    color: #fff;
    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: #666;
}

.pgw-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.pgw-no-results p {
    margin: 0;
    font-size: 16px;
}









/* 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;
    z-index: 2;
}

/* 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;
}

/* Paginación */
.pgw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 14px;
}

.pgw-page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.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;
}

.pgw-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.pgw-page-num:hover:not(.active):not(.dots) {
    background-color: #f5f5f5;
}

.pgw-page-num.active {
    background-color: #1a1a1a;
    color: #fff;
}

.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: 10;
}

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: #960946 !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: 10;
    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: #E0B1BA !important;
    color: #FEF3E7 !important;
    
    
}









/* Botón Comprar Ahora */

.pgw-product-image .pgw-add-to-cart.added::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.pgw-product-image .pgw-add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}












    /* Voy antes de este comentario */


div.pgw-product-info {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    z-index: 20;
}

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: #960946;
    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;
    overflow: hidden;
}

p.pgw-product-price span.pgw-price-regular {
    text-decoration: line-through;
    color: #BB5D808F !important;
    padding-left: 0.3rem;
}



/* ==================================================
   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.1rem !important;
        height: 3rem;
        line-height: 3.1 !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;
        width: 100%;
    }
    
    div.pgw-grid {
        gap: 1.2rem !important;
    }    
    
    div.pgw-product-item {
        margin: 0 1%;
    }
    
    span.eael-onsale.sale-preset-5.left {
        max-height: 5.2rem;
        max-width: 5.2rem;
        font-size: 1.2rem;
        padding-top: 6px;
        left: -0.6rem;
        top: -0.8rem;
        height: 42%;
        width: 42%;  
    }    
    
    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;
    }
}



/* ==================================================
   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;
    }   
}








