
/* Nutrition*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif; 
}


body, html {
    width: 100%;
    overflow-x: hidden;
    background-image: url(../Gallery/nut_wallpaper.png);
   background-position: top right; 
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-size: 500px;
}

.nutrition-wrapper {
    min-height: 100vh;
    display: block;
}


.nutrition-header {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
}

.nutrition-header h1 {
    font-size: 3.5rem;
    color: #10b981;
    margin-top: 50px;
    margin-bottom: 10px;
    font-weight: 900;
}

.nutrition-header p {
    color: #6b7280;
    font-size: 1.2rem;
}


.filter-section-nutrition {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f4f7f6; 
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filters-container-nutrition {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1200px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #10b981;
    background: white;
    color: #047857;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn.active {
    background: #10b981;
    color: white;
}

.content-area {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 40px 20px;
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}


.meal-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.meal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.meal-content {
    padding: 20px;
}

.meal-price {
    color: #10b981;
    font-weight: 800;
    font-size: 1.3rem;
}


.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.stat-box {
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.calories { background: #fff7ed; color: #ea580c; }
.protein { background: #eff6ff; color: #2563eb; }
.carbs { background: #fefce8; color: #ca8a04; }
.fats { background: #fef2f2; color: #dc2626; }


.meal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 25px;
    padding: 2px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

.qty-number {
    width: 30px;
    text-align: center;
    font-weight: bold;
}

.add-btn {
    flex: 1;
    background: #10b981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}


.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #f3f4f6 !important;
    color: rgb(5, 5, 5)!important ;
    padding: 15px 30px;
    border-radius: 50px;
    transition: 0.4s;
    opacity: 0;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}