* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "League Spartan", sans-serif;
}


html {
    scroll-padding-top: 150px; 
    overflow: visible;
} 

body {
    background-color: #ebe9e6;
    overflow-y: auto; 
    width: 100%;
}

.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}

.content {
    position: absolute;
    color: white;
    text-align: left;
    left: 5%;
    bottom: 10%;
    max-width: 400px;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.button {
    background: #d3301a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    display: inline-block;
}

.swiper-button-next, .swiper-button-prev {
    color: white !important;
    font-size: 12px;  
    width: 25px;  
    height: 25px;   
    transition: transform 0.2s ease-in-out; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover {
    transform: translateX(5px);  
}

.swiper-button-prev:hover {
    transform: translateX(-5px);
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}


  

  

/* Menu navbar Styling */



.menu-navbar {
    position: sticky; 
    top: 70px;
    background-color: #5c4f41;
    padding: 10px 0;
    text-align: center;
    z-index: 10;
    border-bottom: 1px solid #ddd;
    transition: top 0.3s ease-in-out;
}

.menu-navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu-navbar li {
    display: inline;
}

.menu-navbar a {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #ebe9e6;
    transition: color 0.3s;
}

.menu-navbar a:hover {
    color: #ec3c20;
}





/* Style for the menu container */

#menu {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    padding: 20px;
}

.category {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.category h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    margin-top: 30px;
}

.category h3{
    color: #333;
    margin-bottom: 10px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 items per row */
    gap: 20px; 
}

.menu-card {
    height: auto; 
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px; 
    background-color: #f9f9f9;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-image {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px; 
}

.category h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    display: flex; /* Enable flexbox for alignment */
    align-items: center; /* Vertically align text and lines */
    color: #333; 
}

.category h2::before,
.category h2::after {
    content: '';
    flex-grow: 1;
    border-top: 2px solid #ec3c20; 
    margin: 0 15px; 
}



/* Quantity Selector */


.quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eee;
    border-radius: 50px;
    padding: 5px 15px;
    margin-bottom: 10px;
    gap: 12px; 
}

.quantity-selector button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    width: 25px;  
    height: 25px; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector span {
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}


.price-button {
    background: #eee;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px; 
    margin-left: 1px;
    margin-top: 15px;
}


.add-to-cart {
    background: #d3301a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
    margin-left: 2px;
    margin-bottom: 20px;
}

.add-to-cart:hover {
    background: #5c4f41;
}

.quantity-selector button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    padding: 5px;
    transition: color 0.3s, transform 0.1s;
}

.quantity-selector button:hover {
    color: #ebe9e6;
    transform: scale(1.1);
    background-color: #ec3c20;
}






/* CART POPUP */


#cart-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 100vh;
    overflow-y: auto;
    background: white;
    border: 2px solid #ccc;
    border-radius: 16px;
    padding: 24px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#cart-popup:not(.hidden) {
    display: block;
}

#cart-popup h2 {
    margin-bottom: 1rem;
    text-align: center;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 100%; 
}
  
/* Flex row inside each cart item */
.cart-item-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-name {
    font-weight: bold;
    font-size: 1rem;
    flex: 2;
}

.item-quantity {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.remove-item {
    flex: 1;
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.25rem;
    cursor: pointer;
    top: 0;
    right: 0;
    padding: 0.25rem;
    white-space: nowrap;
    text-align: center;
}

.remove-item:hover{
    color: #5c4f41;
    background: none;
}

.item-price {
    flex: 1;
    text-align: right;
}

#cart-total {
    margin-top: 15px;
    font-weight: bold;
    text-align: right;
    font-size: 1.2rem;
}

#close-cart {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}


.close-cart-btn {
    background: none;
    border: none;
    color: #555; 
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1; /* Adjust for better vertical alignment */
}

.close-cart-btn:hover {
    color: #ec3c20; 
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-quantity button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

.item-quantity button:hover{
    color: #ec3c20;
}

.hidden {
    display: none;
}

.cart-footer {
    margin-top: 20px; 
    padding-top: 10px; 
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

.cart-footer p{
    margin-left: 5px;
}

.checkout-btn {
    margin-top: 20px; 
    padding: 10px 20px;
    background-color: #ec3c20;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.checkout-btn:hover{
    background-color: #5c4f41;

}




/* MEDIA QUERIES */




/* Mobile / Small Screens */
@media (max-width: 767px) {
    /* Menu Section */
    #menu {
        padding: 20px;
    }

    /* Menu Category Heading */
    .menu-category h2 {
        font-size: 22px;
        padding: 0 10px;
    }

    /* Menu Category Heading Line Styling (Prevent obstruction) */
    .menu-category h2::before,
    .menu-category h2::after {
        width: 25%; 
        top: 50%; 
    }

    /* Menu Items Grid */
    .menu-items {
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important;
        justify-content: center !important; 
        margin: 0 auto !important; 
    }

    /* Menu Card */
    .menu-card {
        max-width: 200px !important; 
        height: auto !important; 
    }

    /* Quantity Selector */
    .quantity-selector {
        padding: 5px 10px !important;
    }

    /* Add to Cart Button */
    .add-to-cart {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
}

/* Tablet / Medium Screens */
@media (max-width: 1024px) {
    /* Menu Section */
    #menu {
        padding: 30px;
    }

/* Tablet / Medium Screens */
@media (max-width: 1024px) {
    /* Menu Section */
    #menu {
        padding: 30px;
    }

    /* Menu Category Heading */
    .menu-category h2 {
        font-size: 26px;
        padding: 0 15px;
    }

    /* Menu Items Grid */
    .menu-items {
        grid-template-columns: repeat(3, 1fr); 
        gap: 2px;
        justify-content: center; 
        justify-items: center; 
        margin: 0 auto; 
    }

    /* Menu Card */
    .menu-card {
        max-width: 220px; 
    }

    /* Quantity Selector */
    .quantity-selector {
        padding: 5px 12px;
    }

    /* Add to Cart Button */
    .add-to-cart {
        font-size: 15px;
        padding: 9px 14px;
    }
}


/* Half Screen / 3 Columns */
@media (max-width: 1280px) {
    /* Menu Items Grid */
    .menu-items {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 20px;
        justify-content: center; /* Center the grid */
        margin: 0 auto; /* Ensures grid is centered */
    }
}
}