/* Sección de productos del menú público */
.products-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título de categoría */
.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 30px 0 25px 0;
    text-align: left;
    position: relative;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.category-title::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e74c3c;
    border-radius: 1px;
    margin-top: 8px;
}

/* Grid de productos - Diseño más compacto */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Tarjeta de producto - Diseño minimalista */
.product-card {
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: row;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

/* Contenedor de imagen - Más pequeño y cuadrado */
.product-image-container {
    position: relative;
    width: 148px;
    height: 100%;
    overflow: hidden;
    background: #f8f8f8;
    flex-shrink: 0;
}

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

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

/* Placeholder para productos sin imagen */
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 2rem;
}

/* Botón de agregar al carrito - Más pequeño y sutil */
.add-to-cart-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #eb5a1a ;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
    border-color: #e74c3c;
}

.add-to-cart-btn i {
    font-size: 0.9rem;
}

/* Información del producto - Layout horizontal */
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Precios - Más compactos */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.price-discounted {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.price-original {
    font-size: 0.9rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

/* Badge de descuento - Más sutil */
.discount-badge {
    background: #ffd700;
    color: #333;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    top: 8px;
    left: 8px;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

/* Mensaje de no hay productos - Estilo minimalista */
.no-products-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin: 20px 0;
    min-height: 200px;
}

.no-products-icon {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-products-icon i {
    font-size: 1.8rem;
    color: #b0b0b0;
}

.no-products-message h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.no-products-message p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
    max-width: 300px;
}

/* Responsive para el menú público */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
        padding: 0 15px;
    }
    
    .category-title {
        font-size: 1.6rem;
        margin: 25px 0 20px 0;
    }
    
    .product-card {
        border-radius: 14px;
    }
    
    .product-image-container {
        width: 100px;
        height: 100px;
    }
    
    .product-info {
        padding: 14px;
        min-height: 100px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .price, .price-discounted {
        font-size: 1.1rem;
    }
    
    .add-to-cart-btn {
        width: 28px;
        height: 28px;
        bottom: 6px;
        right: 6px;
    }
    
    .add-to-cart-btn i {
        font-size: 0.8rem;
    }
    
    /* Responsive para mensaje de no hay productos */
    .no-products-message {
        padding: 30px 15px;
        min-height: 180px;
    }
    
    .no-products-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .no-products-icon i {
        font-size: 1.5rem;
    }
    
    .no-products-message h3 {
        font-size: 1.1rem;
    }
    
    .no-products-message p {
        font-size: 0.85rem;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin: 20px 0 15px 0;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-container {
        width: 132px;
        height: 100%;
    }
    
    .product-info {
        padding: 12px;
        min-height: 90px;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .price, .price-discounted {
        font-size: 1rem;
    }
    
    .add-to-cart-btn {
        width: 26px;
        height: 26px;
        bottom: 5px;
        right: 5px;
    }
    
    .add-to-cart-btn i {
        font-size: 0.75rem;
    }
    
    /* Responsive para mensaje de no hay productos en móviles pequeños */
    .no-products-message {
        padding: 25px 12px;
        min-height: 160px;
        margin: 10px 0;
    }
    
    .no-products-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .no-products-icon i {
        font-size: 1.3rem;
    }
    
    .no-products-message h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .no-products-message p {
        font-size: 0.8rem;
        max-width: 250px;
    }
}

/* Estilos especiales para combos y productos destacados */
.product-card.featured {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.product-card.combo {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #ffd1d1;
}

/* Animaciones suaves */
.product-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
