/* Best Sellers Section Styles */

/* Sección principal */
.best-sellers-section {
    width: 90%;
    margin: 0 auto;
}

/* Header con background */
.best-sellers-header {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay para el header */
.best-sellers-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Contenido del header */
.best-sellers-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.best-sellers-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    margin: 0;
    text-align: center;
}

.best-sellers-link {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid #B12B21;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.best-sellers-link:hover {
    background-color: #B12B21;
    border-color: #B12B21;
    color: #fff;
}

/* Container del grid (sin background) */
.best-sellers-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Grid de productos */
.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card de producto bestseller */
.bestseller-product-card {
    background-color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.bestseller-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Imagen del producto */
.bestseller-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

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

.bestseller-product-card:hover .bestseller-product-image img {
    transform: scale(1.05);
}

/* Contenido del producto */
.bestseller-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.bestseller-product-title {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #343434;
    margin: 0;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta información */
.bestseller-product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
}

.bestseller-product-restaurant {
    font-weight: 400;
    text-transform: capitalize;
    color: #666;
    min-height: 1.5em;
}

.bestseller-product-price {
    font-weight: 600;
    color: #343434;
}

/* Flecha */
.bestseller-product-arrow {
    margin-top: auto;
    color: #343434;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.bestseller-product-card:hover .bestseller-product-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Estilos para productos en oferta */
.bestseller-product-card.on-sale .bestseller-product-content {
    background-color: #000000;
}

.bestseller-product-card.on-sale .bestseller-product-title,
.bestseller-product-card.on-sale .bestseller-product-restaurant,
.bestseller-product-card.on-sale .bestseller-product-price,
.bestseller-product-card.on-sale .bestseller-product-arrow {
    color: #FCBD00;
}

.bestseller-product-card.on-sale .bestseller-product-arrow svg path {
    stroke: #FCBD00;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .best-sellers-header {
        padding: 60px 15px;
    }
    
    .best-sellers-title {
        font-size: 2.5rem;
    }
    
    .best-sellers-container {
        padding: 50px 15px;
    }
    
    .best-sellers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .best-sellers-header {
        padding: 40px 15px;
    }
    
    .best-sellers-header-content {
        gap: 15px;
    }
    
    .best-sellers-title {
        font-size: 2rem;
    }
    
    .best-sellers-link {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .best-sellers-container {
        padding: 40px 15px;
    }
    
    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .bestseller-product-content {
        padding: 15px;
    }
    
    .bestseller-product-title {
        font-size: 14px;
    }
    
    .bestseller-product-meta {
        font-size: 13px;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .best-sellers-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .best-sellers-link {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .bestseller-product-content {
        padding: 12px;
    }
    
    .bestseller-product-title {
        font-size: 13px;
    }
    
    .bestseller-product-meta {
        font-size: 12px;
    }
}
