/* producto.css - Estilos para la sección del catálogo de productos, botones de filtro por categoría, tarjetas de producto, precios y botones de acción rápida */

.catalog.section,
.catalog {
    background-color: #ffffff;
    padding-top: 15px;
    padding-bottom: 70px; 
}

.section-header {
    margin-bottom: 15px;
}

.catalog-controls .row {
    margin-bottom: 0.5rem !important;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Efecto de luz para los productos destacados */
.product-card.product-featured {
    position: relative;
    border: 2px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25), var(--shadow);
}

.product-card.product-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: luzBrillo 3s infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes luzBrillo {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.product-img {
    position: relative;
    height: 220px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 10px;
}

.badge-card {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 3;
}

.product-info {
    padding: 20px;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    margin: 5px 0 10px;
    color: var(--text-dark);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price del {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 5px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
}

.bg-discount {
    background-color: #d96b43 !important;
    color: #fff !important;
}

.bg-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

.bg-primary {
    background-color: #007bff !important;
    color: #fff !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.product-price-action .btn-whatsapp-cotizar.btn-cotizar-full {
    width: 100%;
    justify-content: center;
}

.product-price-action:has(.btn-cotizar-full) {
    justify-content: center;
}

.catalog-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding: 0 5px;
}

.btn-catalog-toggle {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.btn-catalog-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Colores de los badges identificativos de los productos */

/* OFERTA -TERRACOTA */
.bg-oferta {
    background-color: #d96b43 !important;
    color: #fff !important;
}

/* TIEMPO LIMITADO - AMARILLO DORADO */
.bg-tiempolimitado {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* NUEVO - VERDE */
.bg-nuevo {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* NARANJA - POPULAR */
.bg-popular {
    background-color: #fd7e14 !important;
    color: #fff !important;
}