.featured-products {
    padding: 80px 0;
    background: #F8FAFC;
}

.featured-products h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1E293B;
}

.featured-subtitle {
    text-align: center;
    font-size: 18px;
    color: #64748B;
    margin-bottom: 50px;
}


/* Grid de los productos */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Card del producto */

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Badge destacado */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10B981;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Imagen del producto */
.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* Efecto zoom */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Información del producto */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-header {
    flex: 1;
    margin-bottom: 16px;
}

.product-id {
    display: block;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 44px;
}

.product-name a {
    text-decoration: none;
    background: transparent;
    color: #1E293B;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #3997E2; /* Gris más claro */
}

.product-description {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* Acciones del producto (cantidad y agregar carrito)*/

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* Controles de cantidad */
.quantity-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quantity-controls label {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #E2E8F0;
    background: white;
    color: #475569;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.qty-btn:active {
    background: #E2E8F0;
}

.qty-input {
    flex: 1;
    height: 32px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    width: 100%;
}

.qty-input:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Eliminar flechas del input number 
* Se aplica tanto para WebKit como para Firefox (moz-appearance)
*/
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

/* Botón agregar al carrito */
.btn-add-cart {
    width: 100%;
    padding: 12px 16px;
    background: #0EA5E9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: #0284C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Evitar que el svg se reduzca con el flex */
.btn-add-cart svg {
    flex-shrink: 0;
}

/* Botón final para ver todos los productos */

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-block;
    padding: 16px 48px;
    background: #0EA5E9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);    
}

.btn-view-all:hover {
    background: #0284C7;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}



/* Responsive */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 60px 0;
    }
    
    .featured-products h2 {
        font-size: 28px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 15px;
        min-height: auto;
    }
    
    .product-description {
        font-size: 12px;
    }
    
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    
    .btn-view-all {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .btn-add-cart {
        font-size: 13px;
        padding: 10px 14px;
    }
}

