/* Modern Menu Layout */
.menu-section {
    padding: 2rem 1rem;
    background-color: #f8f9fa;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.menu-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.menu-subtitle {
    text-align: center;
    color: #636e72;
    margin-bottom: 2rem;
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: #fff;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-btn.active,
.category-btn:hover {
    background: #2d3436;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 58%; /* Further reduced height ratio */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.product-description {
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
}

.add-to-cart-btn {
    padding: 0.4rem 0.875rem;
    border: none;
    border-radius: 6px;
    background: #2d3436;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #1e272e;
}

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

/* Responsive Breakpoints */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 cards per row on large screens */
    }
}

@media (max-width: 1399px) and (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cards per row on medium-large screens */
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row on tablets */
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on large phones */
    }
}

@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: 1fr; /* 1 card per row on small phones */
    }
    
    .menu-container {
        padding: 0 0.5rem;
    }
    
    .product-card {
        max-width: 300px;
        margin: 0 auto;
    }
}
