@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    color: #FCE5B0;
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    padding-top: 70px ;
    /* Adjust to navbar height */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url("https://img.freepik.com/free-photo/solid-brown-concrete-textured-wall_53876-124585.jpg?t=st=1739533550~exp=1739537150~hmac=fa15e442d02e51bef8c44c1750c83dcb073a3fc79380beedaa06446718d98135&w=740") no-repeat center center/cover;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 1.5rem 5%;
    background: #222;
    transition: background 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    display: flex;
    align-items: center;
 }

.hlogo {
    height: 50px;
}

.name {
    height: 22px;
    padding-left: 5px;
    margin-top: 15px;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    gap: 1.5rem;
}


.navbar a {
    font-size: 1.3rem;
    color: #fff;
    transition: color 0.3s ease-in-out;
    text-decoration: none;
    padding: 10px;
}

section {
    min-height: 100vh;
    padding: 1.5rem 9% 2rem;
}

.icons-container {
    display: flex;
    align-items: center;
    gap: 20px;
}


.navbar a:hover,
.navbar a.active {
    color: #efb550d2;
    font-weight: bold;
}

.home-icon i{
    color: #fff !important; /* White by default */
    transition: color 0.3s ease;
}

.home-icon i:hover {
    color: #efb550d2 !important; /* Gold on hover */
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.home-icon,
#menu-icon {
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.home-icon:hover,
#menu-icon:hover {
    color: #efb550d2;
}

#menu-icon {
    display: none;
}



.heading {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;

}

span {
    color: var(--main-color);
}

.menu-container {
    width: 97%;
    height: auto;
    margin: 5px;
    padding: 10px;
    border: 3px double #FCE5B0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    overflow-y: auto;
    
}

/* Custom Scrollbar */
.menu-container::-webkit-scrollbar {
    width: 3px;
    /* Thin scrollbar */
}

.menu-container::-webkit-scrollbar-thumb {
    background-color: #FDF2D6;
    /* Scrollbar color */
    border-radius: 10px;
    /* Rounded edges */
}

.menu-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    /* Slightly visible track */
}

/* Menu Item Box */
.menu-item-box {
    border: 1px solid #FDF2D6;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
}

/* Image */
.img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

/* Menu Item Description */
.menu-item-des {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Name */
.menu-item-name {
    font-size: 16px;
    font-weight: 500;
    margin-right: 5px;
    /* Ensuring name and price are closer */
}

/* Price & Cart */
.price-cart {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Reduced gap between price and cart */
}

/* Price */
.menu-item-price {
    font-size: 16px;
    font-weight: 700;
}

/* Cart Icon */
.cart {
    font-size: 22px;
    /* Adjust size */
    margin-left: 5px;
}

.cart:hover{
    color: #069C54;
}


/* Main Bag Container */
/* Cart (Bag) Container */
.bag-container {
    width: 450px; /* Increased width for better visibility */
    max-height: 500px; /* Prevent overflow */
    overflow-y: auto;
    position: fixed;
    top: 70px;
    right: 20px;
    background: white; /* Clean white background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* Soft shadow */
    z-index: 1000;
    color: black; /* Readable black text */
    border: 2px solid black; /* Subtle black border */
    display: none; /* Initially hidden */
}

/* Cart Header */
.bag-container h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: black;
    margin-bottom: 15px;
    text-transform: uppercase;
}

  /* Close Button  */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    font-size: 12px;
    width: 22px;
    height: 23px;
    border-radius: 10%;
    cursor: pointer;
}

/* Table Number Input */
.table-input {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.table-input label {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    margin-right: 10px;
}

.table-input input {
    width: 60%;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid black;
    border-radius: 5px;
}

/* Cart Item Box */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white; /* Matches container */
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border: 1px solid #ccc;
}

/* Hover Effect for Cart Items */
.cart-item:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* Cart Item Text */
.cart-item p {
    font-size: 1.4rem;
    font-weight: bold;
    color: black;
    flex: 1;
}

/* Cart Controls (Quantity Buttons) */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Increase & Decrease Buttons */
.cart-controls button {
    background-color: #069C54;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.5rem;
    color: white;
    transition: all 0.2s ease-in-out;
}

/* Hover Effect for Buttons */
.cart-controls button:hover {
    background-color: #1f242d;
}

/* Remove Button (Trash Icon) - Red Color */
.cart-controls .remove-btn {
    
    color: red;
    font-weight: bold;
    background-color: rgb(247, 219, 219);
    font-family: 'roboto';
    padding: 5px 10px;
    font-size: 1.2rem;
    border-radius: 5px;
}

.cart-controls .remove-btn:hover {
    background-color: rgb(246, 133, 133);
}

/* Cart Footer (Total Price) */
.cart-footer {
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid black;
    color: black;
}

/* Cart Buttons (Save & Send) */
.cart-buttons {
    display: flex;
   justify-content: center;
    margin-top: 20px;
}

.save-btn, .send-btn {
    width: 48%;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.save-btn {
    background-color: #007bff;
}

.send-btn {
    background-color: #28a745;
}

.save-btn:hover {
    background-color: #0056b3;
}

.send-btn:hover {
    background-color: #1c7430;
}

/* Scrollbar for Bag Container */
.bag-container::-webkit-scrollbar {
    width: 3px;
}

.bag-container::-webkit-scrollbar-thumb {
    background-color: rgb(254, 253, 253);
    border-radius: 5px;
}

.bag-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

/* Cart Items Section (Item list) */
#cart-items {
    margin-bottom: 20px;
}

/* Cart Total Section */
#cart-total {
    color: black !important; /* Ensures total price text remains black */
    font-size: 1.4rem;
}

/* Cart Icon (Bag Icon) */
.bag-icon {
    font-size: 2.0rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: 10px; /* Adjust spacing as needed */
}

.bag-icon:hover {
    color: #efb550d2; /* Gold on hover */
}

/* Cart Item Quantity */
.quantity {
    font-size: 1.2rem;
    color: black;
    font-weight: bold;
}

/* Total Price Text */
#total-para {
    color: #222;
}

strong {
    color: #222;
}
#table-number{
    color: black;
    font-size: 12px;
    font-weight: bold;
    width: 150px;
}

.popup {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b2314; /* Dark brown */
    color: #f9c660; /* Golden Yellow */
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-family: "roboto";
    font-weight: 500;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border: 1px solid #f9c660; /* Golden border for visibility */
    box-shadow: 0px 0px 10px rgba(249, 198, 96, 0.8);
}



/* Responsive Design */

@media (max-width: 1024px) {

    /* Medium devices (tablets, small laptops) */
    .navbar {
        gap: 1.5rem;
    }

    .navbar a {
        font-size: 1.5rem;
    }

    .bag-container {
        width: 90%;
        right: 5%;
        max-height: 450px;
    }

    .cart-item {
        flex-direction: row;
        align-items: center;
    }

    .cart-controls {
        justify-content: space-between;
    }

    .cart-controls button {
        padding: 5px 10px;
        font-size: 1.2rem;
    }
    
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    .menu {
        padding-left: 0px;
        padding-right: 0px;
    }

   #menu-icon, .home-icon {
        font-size: 3rem;
        margin-right: 10px;
    }
    .bag-icon{
        font-size: 2.4rem;
    }

    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        height: auto;
        width: 35%;
        border-radius: 10px;
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        padding: 1rem;
    }

    .navbar.active {
        display: flex;
        flex-direction: column;
    }

    .navbar a {
        display: block;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 0;
        color: #222;
    }
    
    .icons-container {
        gap: 5px;
    }

    .menu-item-name {
        font-size: 14px;
    }

    .meni-item-price {
        font-size: 16px;
    }
}


@media screen and (min-width: 768px) {


    .menu-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .head-menu {
        margin: 0;
        padding: 0;
    }

    .menu-item-box {
        flex: 1 1 250px;
        max-width: 200px;
        padding: 12px;
        border-radius: 12px;
        border: 2px solid #FCE5B0;
        transition: 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .menu-item-box:hover {
        border-color: white;
        transform: scale(1.05);
        box-shadow: 0 0 1rem #FDF2D6;
    }

    .img {
        height: 120px;
        width: 120px;
        margin-bottom: 10px;
    }


    .menu-item-des {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 2px;

        /* Tighter spacing */
    }

}

@media (max-width: 480px) {

    /* Extra small devices (portrait phones) */
    .navbar a {
        font-size: 1.1rem;
        padding: 8px;
    }
    
    body {
        overflow-x: hidden;
    }

    .home-icon,
    #menu-icon {
        font-size: 2rem;
    }
    .bag-icon{
        font-size: 1.6rem;
    }

    .navbar {
        display: none;
        flex-direction: column;
        background: #fff;
        width: 55%;
        padding: 1rem;
        position: absolute;
        top: 60px;
        right: 0;
    }

    .navbar.active {
        display: flex;
        margin: 0;
    }


    .cart {
        font-size: 16px;
    }

    .menu-item-name {
        font-size: 14px;
    }

    .meni-item-price {
        font-size: 14px;
    }

    .bag-container {
        position: fixed;
        width: 100%;
        right: 0;
        max-height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        bottom: 0;
        top: 65px;
        padding: 10px;
        border-radius: 0;
    }

    .cart-item {
        display: flex;
        justify-content: space-between; /* Keep name & controls on the same line */
        align-items: flex-start; /* Align text to the top */
        gap: 10px;
        flex-wrap: wrap; /* Allow text to wrap if necessary */
    }

    .cart-item-name {
        flex: 1; /* Take up available space */
        min-width: 60%; /* Ensure it has enough space */
        white-space: normal; /* Allow wrapping */
        word-wrap: break-word;
        font-size: 8px;
        font-weight: 100;
    }

    .cart-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: nowrap; /* Prevent buttons from wrapping */
    }

    .cart-controls button,
    .cart-controls .quantity {
        padding: 4px 8px;
        font-size: 1rem;
    }

    .cart-footer {
        font-size: 1.4rem;
    }

    .popup{
        font-size: 12px;
    }

}



