/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Varaibles */
:root {
    --BG_primary_color: #103d36;
    /* Green Shade */
    --BG_secondary_color: #e9c690;
    /* Beige Shade */
    --BG_third_color: #FFFADC;
    /* yellow-Beige Shade */
    --White_text_color: white;
}

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 70px; 
}

body {
    background-color: var(--BG_third_color) !important;
}
p {
    margin-bottom: 0 !important;
}

/* Header */
.banner {
    background-color: var(--BG_primary_color);
    color: var(--White_text_color);
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem; 
    padding: 10px 5px;     /*top,bottom 10px left,right 5px */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 1.5%;    /*top,bottom 0px left,right 2% of screen*/
    position: relative;
    background-color: var(--White_text_color);
    font-size: 0.8rem;
}

.phone {
    background-color: var(--BG_primary_color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: bold;
    cursor: pointer;
}

.phone i {
    margin-right: 5px;
}

.logo {
    width: 110px;
    position: absolute;
    left: 50%;
    /* moves logo to the center */
    top: 0%;
    transform: translateX(-50%)
        /*moves it left by 50% of its own width, now it left from center of logo*/
}

.cart {
    color: var(--BG_primary_color);
    font-size: 1.5rem;
    /*24px = 1.5rem, 1 rem= 16px*/
    cursor: pointer;
}

/* heromaster */
#Home img {
    width: 100%;
    max-width: 100vw;
    height: auto;
    display: block;
}

/* narbar */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensures it stays above the food cards */
    background-color: var(--BG_primary_color);
    white-space: nowrap;
    overflow-x: auto; /* Required for the horizontal scroll in Image-1 */ 
    padding: 8px;
}

nav::-webkit-scrollbar {
    height: 0;
    /* hide the Scroll-bar, use drag, arrow keys, to move navbar */
}

nav ul {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    padding: 10px;
    list-style-type: none;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: 0.5s;
    /* when you hover back from li element, transition show*/
}

nav ul li a:hover {
    transition: 0.5s;
    background: var(--BG_secondary_color);
    color: var(--BG_primary_color);
    position: sticky;
    font-weight: 500;
}

nav ul li a.active{
    background: var(--BG_secondary_color);
    color: var(--BG_primary_color);
    font-weight: 500;
}

.search_menu_box {
    max-width: 1200px;
    /* Limits width so it doesn't stretch too far */
    margin: 0 auto;
    /* Centers everything horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 25px;
    /* Space between search and discount */
}

.searchbar {
    border: 1px solid var(--BG_primary_color);
    height: 50px;
    border-radius: 25px;
    background-color: var(--White_text_color);
    width: 100%;
    padding: 10px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}

#search-input {
    flex: 1;
    /* FIX: Take up all available space without squishing the icon */
    width: 85%;
    margin-right: 3px;
    height: 100%;
    border-style: none;
    outline: none;
    /* Removes blue border on click */
    font-size: 1.1rem;
    color: var(--BG_primary_color);
    background: transparent;
    overflow: hidden;
}

.searchbar i {
    color: var(--White_text_color);
    background-color: var(--BG_primary_color);
    border-radius: 50%;
    padding: 7px;
    cursor: pointer;
}

.discount_div {
    background-color: #f1f1f1;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.flat {
    font-weight: 500;
    /* Normal  No Bold*/
    margin-bottom: 5px;
}

.yellow-circle {
    background: #fffb00;
    padding: 2px;
    margin: 0px 10px;
    border-radius: 100%;
    font-weight: 600;
    font-size: 2.5rem;
}

.upto {
    color: gray;
    letter-spacing: 1px;
}

.section_header {
    width: 100%;
    height: auto;
}

.section_header img {
    width: 100%;
    border-radius: 10px;
}

.menu_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    width: 100%;
    padding: 15px 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .menu_grid {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns for low width */
    }
}

@media screen and (max-width: 480px) {
    .menu_grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.menu_card {
    background-color: var(--White_text_color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 485px; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth animation over 0.5 seconds */
    flex-wrap: wrap;

}

.menu_card:hover {
    border: 2px solid var(--BG_primary_color);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu_card img {
    width: 100%;
    aspect-ratio: 1/1;     /* Keeps images perfectly square */
    object-fit: cover;
}

.card_content {
    padding: 15px;
    flex-grow: 1; /* Fills the vertical space */       /* This makes the card fill the height of the grid row */
    display: flex;
    flex-direction: column;     /* justify-content: space-evenly; */
    align-items: center;     /* Horizontally Centers the title, desc, price, and button */
    text-align: center;
    width: 100%;
}

.card_content h4 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;     /* Keeps space reserved even for 1 line */
    line-height: 1.4rem;
}

.item_desc {
    color: gray;
    font-size: 0.85rem;
    margin-bottom: auto;     /* IMPORTANT: This pushes everything below it to the bottom */

    display: -webkit-box;
    -webkit-line-clamp: 3;     /* CHANGED: Allow 3 lines now */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2rem;     /* The height of one single line */
    height: 3.6rem;     /* Keeps space reserved even if text is short */
}

.price {
    margin: 15px 0;     /* Centers the bar and gives it breathing room */
    background-color: var(--BG_secondary_color);
    border-radius: 20px;
    color: var(--BG_primary_color);
    font-weight: bold;
    display: inline-block;
    width: fit-content;
    padding: 0px 5px;
    font-size: 0.9rem;
}

.old_price {
    text-decoration: line-through;
    opacity: 0.6;
}

.add_btn {
    background-color: var(--BG_primary_color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px;
    font-weight: bold;
    min-width: 100px;
    max-width: 100px;     /* Ensures it never gets too tiny */
    flex-shrink: 0;     /* Prevents the button from squishing */
    cursor: pointer;
    transition: transform 0.2s;
}

.add_btn:hover {
    transform: scale(1.05);
}

/* Same As search_menu_box */
#About {
    width: 100%;
    background-color: white;
    color: #4e4949 !important;

    padding: 50px 0;
    margin: 0 auto;
    /* Centers everything horizontally */
    gap: 25px;
    /* Space between h1 and p */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

/* Same As searchbar */
.aboutcontent {
    background-color: var(--White_text_color);
    max-width: 1200px;     /* Limits width so it doesn't stretch too far */
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.aboutcontent h1 {
    font-size: 3rem;
    font-weight: lighter;
}

.aboutcontent p {
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 2%;
    right: 1.5%;
     /* Hidden by default */
    background-color: var(--BG_primary_color);
    color: var(--White_text_color);
    border: none;
    border-radius: 50%;
    padding: 7px;
    cursor: pointer;
    z-index: 2000;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* display: none; */
footer{
    background: #13171a;
    color: var(--White_text_color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;    
    padding: 4rem 0;
    /* min-height: 228px; */
}

.social_media_icon{
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.social_media_icon a {
    cursor: pointer;   
    transition: all 0.3s ease; /* Smooth hover transition */
    text-decoration: none;
}

/* Hover Effect: Change color and slight upward move */
.social_media_icon a:hover {
    color: #44b8ee;
    transform: translateY(-3px);
}

footer a {
    color: white;
}

.Powered_by{
    font-weight: bold;
    font-size: 1.2rem;
    color: #707881;
}

.Company{
    font-weight: bold;
}

/* Ensures the quantity input doesn't show a blue border when clicked */
.input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}