.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--deep-plum), var(--primary-mauve));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-badge.agotado {
    background: linear-gradient(135deg, #C62828, #E53935);
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--soft-cream);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--soft-gray);
}

.product-benefits {
    background: linear-gradient(135deg, rgba(232, 180, 200, 0.1), rgba(212, 165, 200, 0.1));
    padding: 1rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-rose);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.product-benefits h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--deep-plum);
}

.product-benefits ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.product-benefits li {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-benefits i {
    color: var(--primary-rose);
    margin-right: 0.5rem;
}

.product-card.out-of-stock {
    opacity: 0.8;
    filter: grayscale(20%);
    position: relative;
}

.product-card.out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--soft-gray);
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

.quantity-selector button {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quantity-selector button:hover {
    background: var(--primary-rose);
    color: white;
}

.quantity-selector span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.form-control {
    border: 2px solid var(--soft-gray);
    padding: 12px 20px;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 0.2rem rgba(232, 180, 200, 0.25);
    outline: none;
}

#cargarMas {
    padding: 15px 40px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .product-specs {
        gap: 0.3rem;
    }
    
    .spec-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .product-benefits {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .product-badge {
        top: 10px;
        left: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .quantity-selector button {
        padding: 0.3rem 0.8rem;
    }
}

/* ===== ARREGLO PARA BOTONES + Y - ===== */
.quantity-selector button {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.quantity-selector span {
    min-width: 40px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
}

.quantity-selector {
    gap: 0 !important;
    padding: 0 !important;
}

/* ===== MODAL DE PRODUCTO ===== */
.product-modal-content {
    border-radius: 30px;
    border: none;
    overflow: hidden;
}

.product-modal-image {
    background: linear-gradient(135deg, #faf6f3, rgba(232, 180, 200, 0.2));
    border-radius: 20px;
    padding: 20px;
}

.product-modal-image img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.product-modal-info .product-brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: #D4A5C8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-modal-info .product-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #4A3A42;
    margin-top: 5px;
}

.product-modal-info .product-price {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #E8B4C8, #D4A5C8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Selector de cantidad en modal */
.quantity-selector-modal {
    display: inline-flex;
    align-items: center;
    background: #E8E3DF;
    border-radius: 50px;
    overflow: hidden;
}

.quantity-selector-modal .btn-qty-modal {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quantity-selector-modal .btn-qty-modal:hover {
    background: #E8B4C8;
    color: white;
}

.quantity-selector-modal .qty-num-modal {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Badges de stock */
.badge-stock.available {
    background: #C8E6C9;
    color: #2E7D32;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-stock.low {
    background: #FFE0B2;
    color: #E65100;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-stock.out {
    background: #FFCDD2;
    color: #C62828;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Tarjeta de producto clickeable */
.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 165, 200, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .product-modal-image img {
        max-height: 200px;
    }
    
    .product-modal-info .product-price {
        font-size: 1.5rem;
    }
    
    .product-modal-info .product-name {
        font-size: 1.3rem;
    }
    
    .quantity-selector-modal .btn-qty-modal {
        width: 35px;
        height: 35px;
    }
    
    .quantity-selector-modal .qty-num-modal {
        width: 35px;
    }
}