﻿/* ================= GLOBAL STYLES ================= */
body {
    background-color: #fff5d6;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

section {
    padding: 3rem 1rem;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}


.hero {
    height: clamp(450px, 50vh, 850px); /* responsive height */
    width: 100%;
    background: url('/images/Salads-banner.png') center/contain no-repeat;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
}

/* ===== Salad Modal Overlay ===== */
.salad-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* dark overlay */
    z-index: 99999; /* make sure it's on very top */
}

    .salad-modal.show {
        display: flex;
        justify-content: center;
        align-items: center;
    }

/* ===== Salad Modal Content ===== */
.salad-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh; /* 🔹 prevent overflowing screen */
    overflow-y: auto; /* 🔹 scroll if too tall */
    display: flex;
    gap: 20px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 100000; /* 🔹 above overlay */
}

/* ===== Close Button ===== */
.salad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
}

/* ===== Left (Image) ===== */
.salad-modal-left {
    flex: 1;
    padding: 10px;
}

    .salad-modal-left img {
        width: 100%;
        border-radius: 10px;
        object-fit: cover;
    }

/* ===== Right (Details) ===== */
.salad-modal-right {
    flex: 2;
    padding: 10px 20px;
}

    .salad-modal-right h2 {
        margin: 0 0 10px;
        font-size: 22px;
        font-weight: bold;
    }

.salad-price {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
  
}

/* ===== See More ===== */
#seeMoreBtn {
    color: #e74c3c;
    text-decoration: underline;
    font-weight:400;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

    .see-more-btn:hover {
        background: #c0392b;
    }

/* Expand see more section */
.salad-more-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* center on screen */
    width: 80vw; /* take 80% of screen width */
    max-width: 900px; /* optional: limit max width */
    max-height: 80vh; /* avoid overflow */
    overflow-y: auto; /* scroll if too tall */
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none; /* default hidden */
}
/* Detail rows (like Aroma + description) */
    .salad-more-details .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%; /* row fills container */
        margin: 6px 0;
    }

        .salad-more-details .detail-row h3 {
            margin: 0;
            font-size: 15px;
            color: #444;
            flex: 1; /* left side takes space */
        }

        .salad-more-details .detail-row p {
            margin: 0;
            flex: 2; /* right side takes space */
            text-align: left;
        }
/* Badges (Halal, Handmade, Organic) */
.badges {
    display: flex;
    justify-content: space-between; /* evenly spread across */
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

    .badge img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        margin-bottom: 5px;
    }
    .badge span {
        font-size: 13px;
        font-weight: bold;
    }

/* ===== Quantity Controls ===== */
.salad-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

    .salad-quantity button {
        width: 35px;
        height: 35px;
        border: 1px solid #ddd;
        background: #f3f3f3;
        font-size: 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .salad-quantity button:hover {
            background: #27ae60;
            color: #fff;
        }

    .salad-quantity span {
        font-size: 18px;
        font-weight: 600;
    }

/* ===== Add to Cart Button ===== */
.add-cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

    .add-cart-btn:hover {
        background: #1e8449;
    }

/* ===== Scrollbar Styling ===== */
.salad-modal-content::-webkit-scrollbar {
    width: 8px;
}

.salad-modal-content::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 4px;
}

.salad-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .salad-modal-content {
        flex-direction: column; /* stack image & details */
        max-height: 95vh;
    }

    .salad-modal-left,
    .salad-modal-right {
        padding: 10px;
        flex: unset;
        width: 100%;
    }

        .salad-modal-right h2 {
            font-size: 20px;
        }
 
}

@media (max-width: 480px) {
    .salad-modal-content {
        width: 95%;
        padding: 15px;
    }

    .salad-modal-right h2 {
        font-size: 18px;
    }

    .salad-price {
        font-size: 16px;
    }

    .see-more-btn,
    .salad-add-cart-btn {
        font-size: 14px;
        padding: 10px;
    }
 
}
/* Tablets */
@media (max-width: 992px) {
    .hero {
        height: 300px; /* smaller height */
        background-size: contain; /* always fill */
        background-position: center;
    }
}

/* Large phones */
@media (max-width: 768px) {
    .hero {
        height: 220px;
        background-size: contain;
        background-position: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero {
        height: 170px;
        background-size: contain;
        background-position: bottom;
    }
}