/* Featured Products Styles */

/* Sección principal */
.sectionGDGShop {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.sectionGDGShop .titleShop {
    font-family: 'Barlow', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: left;
    color: #343434;
}

/* Grid container para productos destacados */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 275px;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
    max-height: 550px;
}

/* Layout asimétrico - Item 1: 1 columna, 2 filas */
.featured-products-grid .featured-product-card:nth-child(1) {
    grid-column: span 1;
    grid-row: span 2;
}

/* Layout asimétrico - Item 2: 1 columna, 2 filas */
.featured-products-grid .featured-product-card:nth-child(2) {
    grid-column: span 1;
    grid-row: span 2;
}

/* Layout asimétrico - Item 3: 1 columna, 1 fila */
.featured-products-grid .featured-product-card:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

/* Layout asimétrico - Item 4: 1 columna, 1 fila */
.featured-products-grid .featured-product-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

/* Layout asimétrico - Item 5: 2 columnas, 1 fila */
.featured-products-grid .featured-product-card:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Card de producto destacado */
.featured-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    min-height: 100%;
}

.featured-product-card:hover {
    transform: scale(1.02);
}

/* Overlay oscuro para mejorar legibilidad del texto */
.featured-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Contenido del producto */
.featured-product-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: white;
}

/* Título del producto */
.featured-product-title {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-align: left;
    color: white;
}

/* Meta información (restaurante y precio) */
.featured-product-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
}

.featured-product-restaurant {
    font-weight: 400;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.9);
}

.featured-product-price {
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.featured-product-price .woocommerce-Price-amount {
    font-weight: 600;
}

/* Flecha de navegación */
.featured-product-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

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

/* Estilos para productos en oferta */
.featured-product-card.on-sale .featured-product-title,
.featured-product-card.on-sale .featured-product-restaurant,
.featured-product-card.on-sale .featured-product-price {
    color: #FCBD00;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .sectionGDGShop {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .sectionGDGShop .titleShop {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }
    
    .featured-products-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
        gap: 12px;
    }
    
    /* Reset layout para tablet */
    .featured-products-grid .featured-product-card:nth-child(1),
    .featured-products-grid .featured-product-card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .featured-products-grid .featured-product-card:nth-child(3),
    .featured-products-grid .featured-product-card:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .featured-products-grid .featured-product-card:nth-child(5) {
        grid-column: span 3;
        grid-row: span 1;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .sectionGDGShop {
        margin: 30px auto;
        padding: 0 10px;
    }
    
    .sectionGDGShop .titleShop {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        gap: 10px;
        max-height: none;
    }
    
    /* Layout mobile - Items 1 y 2: 1 columna, 1 fila */
    .featured-products-grid .featured-product-card:nth-child(1),
    .featured-products-grid .featured-product-card:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* Item 3: 2 columnas, 1 fila (ocupa todo el ancho) */
    .featured-products-grid .featured-product-card:nth-child(3) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    /* Items 4 y 5: 1 columna, 1 fila */
    .featured-products-grid .featured-product-card:nth-child(4),
    .featured-products-grid .featured-product-card:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .featured-product-content {
        padding: 15px;
    }
    
    .featured-product-title {
        font-size: 14px;
    }
    
    .featured-product-meta {
        font-size: 12px;
    }
    
    .featured-product-arrow {
        display: none;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .sectionGDGShop {
        margin: 20px auto;
    }
    
    .sectionGDGShop .titleShop {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .featured-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .featured-product-card {
        min-height: 250px;
    }
    
    .featured-product-content {
        padding: 12px;
    }
    
    .featured-product-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .featured-product-meta {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
