/* ... (Existing Global Variables and Fonts are unchanged) ... */
:root {
    /* Hotel Ordering Demo Colors */
    --primary: #2b6cb0;
    /* Blue */
    --accent: #48bb78;
    --muted: #6b7280;
    /* Gray */
    --bg: #ccffccd2;
    /* Light Background */

    /* Food Card Colors (Standardized from SCSS) */
    --color-black: #212129;
    --color-gray: #9b9b9b;
    --color-heart: #17bebb;
    /* Teal */
    --color-star: #ffe500;
    /* Yellow */
    --color-button: #ef3e36;
    /* Red */
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css?family=Inter:400,600,700');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');
/* Used by food card component */

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
    box-sizing: border-box;

}
.sum{
    display: flex;
   justify-content: space-between;
   align-items: center;
   border-top: rgb(255, 255, 255) 1px solid ;
   padding-top: 10px;
   padding-bottom: 6px;

}

/* ======================== SKELETON LOADING STYLES ======================== */

/* 1. Base style for the placeholder card */
.product.skeleton, 
.product1.skeleton {
    /* Match the size and shape of the original cards */
    height: 300px; 
    width: 370px;
    flex-shrink: 0;
    
    /* Remove background image and border/shadow colors */
    border: 1px solid #e0e0e0;
    box-shadow: none; 
    background-color: #f7f7f78a;
    
    /* Animation container */
    overflow: hidden; 
    position: relative;
}

/* 2. Skeleton text/block elements (lines of gray) */
.skeleton-line {
    /* Match the 'card' area's internal padding/style */
    position: absolute;
    bottom: 16px; 
    left: 16px;
    background-color: #e9e9e9bc;
    border-radius: 4px;
    height: 12px;
}

.skeleton-title {
    width: 60%;
    top: 220px; /* Position it where the product title is */
    left: 16px;
    height: 20px;
    position: absolute;
}

.skeleton-desc-short {
    width: 85%;
    height: 10px;
    top: 250px; /* Position it where the description is */
}

/* 3. The shimmering animation effect */
.product.skeleton::after,
.product1.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.492), 
        transparent
    );
    /* Start the animation off-screen to the left */
    transform: translateX(-100%); 
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        /* Move the shimmer across the entire card */
        transform: translateX(100%); 
    }
}

body {
    /* Use Inter for the main demo, with fallbacks */
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: #111;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 50px;
}

img {
    max-width: 100%;
}

.rando{
    height: 70px;
    width: 70px;
    margin-top: -10px;
}
.navbar {
    background-color: #f4f7fff0;
    overflow: hidden;
    /* --- KEY FLEXBOX STYLES FOR ALIGNMENT --- */
    display: flex;
    align-items: center;
    /* Vertically centers the logo and links */
    justify-content: space-between;
    /* Pushes the logo to the left and links to the right */
    padding: 0 20px;
    /* Add some padding on the left/right edges */
}

.redborder {
    text-align: center;
    background:rgb(0, 83, 143)46%;
    color: white;
    padding: 5px;
    font-size: 1.3rem;
    font-family: "Sour Gummy", sans-serif;

}

/* --- Logo Styling --- */
.logo-link {
    text-decoration: none;
    /* Remove underline from the logo link */
    margin-right: 20px;
}

.logo-text {
    color: white;
    font-size: 24px;
    /* Larger font size for the brand name */
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-img {
    height: 43px;
    /* Adjust the logo image size */
    width: auto;
    border-radius: 50%;
    display: block;
}

h2.golden,.active  {
 
    font-weight: bold;
    background-image: linear-gradient(to right, red, orange, yellow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h2 .pro{
       display: flex;
       flex-direction: row;
         align-items: center;
         justify-content: center;
    gap: 10px;
}
/* --- Navigation Links Styling --- */
.navbar{
    height: 50px;
}
.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* Makes the list items horizontal */
    align-items: center;
}

/* Style the links */
.navbar a {
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
    /* Smooth transition for hover effect */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add a hover effect */

#displayLocation,.active{
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
}

/* --- Hotel Ordering Demo Layout --- */

.container {
    width: 100%;
    background: linear-gradient(
        to bottom,
        white 0%,
        rgba(255, 252, 235, 1) 90%
    );
    background-attachment: fixed; /* makes background stay still */

}


.mp{
    width: 100%;
    padding: 10px;
    background: #f3ffd900;
    border-radius: 10px;
    margin: 5px;
    margin-left: -2px;
    box-shadow: 0 0 8px rgba(140, 135, 135, 0.453);
}


header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Area containing the circular look images */
.hed {
    display: flex;
    flex-direction: row;
    overflow: scroll;
    justify-content: space-evenly;
    padding: 10px;
}

p{
    font-size: 0.9rem;
    color: rgba(253, 239, 239, 0.873)0.653;
}
.look {
    min-height: 90px;
    min-width: 90px;
    max-width: 90px;
    max-height: 90px;
    border-radius: 50%;
    border: solid 2px #ff6f61;
    margin-right: 36px;
    transition: 0.5s;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
}

.subtitle {
    color: var(--muted);
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.menu {
    flex: 2;
    border: 1px solid #ffb6b672;
    min-width: 100%;
   
    /* This will be overridden by the flex property on large screens */
}

.cart {
    display: none;
    /* Default state for mobile, overridden by JS toggle or desktop media query */
    flex-direction: column;

    position: sticky;

    overflow-y: auto;
    min-height: 100vh;
    flex: 1;
    background: #fafafa;
    height: fit-content;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--color-button);
    min-width: 100%;
    padding-bottom: 30px;

}

.user-details h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.user-details input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.products-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    /* Horizontal scrolling */
    gap: 12px;
    padding: 10px 0;
    /* Add vertical padding */
    scroll-behavior: smooth;
    /* Smooth scrolling effect */



}

.product,
.product1 {
    position: relative;
    border: 1px solid #e25c5c;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push card content to the bottom */
    width: 370px;
    height: 300px;
    gap: 10px;
    flex-shrink: 0;
    transition: 0.3s;
    /* Important for horizontal scrolling */
}

/* Style the entire scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* Style the scrollbar track (the background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Style the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

/* Style the scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.product h3,
.product1 h3 {
    margin: 0;
    font-size: 1.6rem;
}

.product .price,
.product1 .price {
    font-weight: 600;
    font-size: 1.3rem;
}

.product .desc,
.product1 .desc {
    color: rgba(255, 255, 255, 0.863);
    font-size: 0.9rem;
    margin-bottom: 8px;


}

/* --- Product Card Overlay --- */
.card {
    background: linear-gradient(0deg,
            var(--color-black) 0%,
            rgba(0, 0, 0, 0.81) 45%,
            rgba(255, 255, 255, 0) 100%);
    color: white;
    width: 100%;
    padding: 16px;
    /* Increased padding */
    border-radius: 0 0 8px 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0;
    /* FIX: Remove negative margin if possible. If margin is needed, set height properly. */
    padding-top: 50px;
    /* Ensure content starts below the transparent part */
}

/* --- Cart Specific Styles --- */
.carting {
    border: #e25c5c 1px solid;
    padding: 20px;
    /* Reduced padding slightly */
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    margin: 8px 0;
    /* Adjusted margin */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.qty-controls button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

/* --- Cart Summary (Fixed Footer) --- */
.cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    flex-direction: row;
    height: fit-content;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to top, hsl(0, 0%, 100%), rgb(255, 255, 255));
    padding: 15px;
    border-top: rgba(83, 49, 49, 0.182) 0.1px solid;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.Total {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.small {
    font-size: 0.9rem;
    color: var(--muted);
}

/* --- Buttons --- */
.btn {
    padding: 8px 10px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn {
    background: #d20000;
    color: #ffffff;
    padding: 10px;
}

.btn:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(210, 0, 0, 0.3);
}

.btn.primary,
.primary {
    background: rgb(255, 17, 17);
    color: white;
    border: 0;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary:hover,
.primary:hover {
    background: rgb(255, 51, 51);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 17, 17, 0.3);
}

.btn2 {
    border-radius: 6px;
    border: 0;
    padding: 10px 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #f00000 0%, #ff5d5d 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn2:hover {
    opacity: 0.9;
}

#clearCart,
#placeOrder {
    padding: 9px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    width: 120px;
    /* Consistent width */
}

#clearCart {
    background-color: rgb(95, 108, 8);
}

#placeOrder {
    background-color: rgb(8, 95, 34);
}

/* =================================================================
   --- Responsive Layout (Adjusted/Enhanced) --- 
   ================================================================= */

/* Desktop/Tablet: Cart and Menu side-by-side */
@media(min-width: 961px) {

    .container {
        margin: 0 auto;
        display: flex;
        /* Make container flexible to host main content */
        flex-direction: column;
    }


    .menu {
        min-width: 0;
        /* Allow menu to shrink appropriately */
    }

    .cart {
        /* Force cart display on desktop */
        min-width: 300px;
        /* Set a fixed minimum width for the sticky cart */
        min-height: 400px;
        /* Ensure cart has a min-height */
    }

    /* FIX: Hide cart summary footer on desktop since cart is visible */

    /* Add padding to body for when cart summary is hidden on desktop */
    body {
        padding-bottom: 20px;
    }
}



/* Tablet (960px and down) - Existing Rules */
@media(max-width:960px) {
    .menu {
        min-width: 100%;

    }

    .cart {
        min-width: 100%;
        /* Make cart scroll normally below the menu on mobile */
        margin-bottom: 80px;
        /* Add space for the fixed cart-summary */
        /* The initial display:none is handled by the inline JS check/toggle */
    }

    main {
        flex-direction: column;
    }

    .products-grid {
        padding: 5px 0;
    }
}

/* Mobile (600px and down) - New/Adjusted Rules for smaller screens */
@media(max-width:600px) {

    /* Navbar: Hide links to save space */
    .navbar ul {
        display: flex;
        /* Hide navigation links on small mobile */
    }

    /* Navbar: Make the logo full width if possible, or center align */
    .navbar {
        justify-content: space-between;
        /* Center the logo when links are hidden */
    }

    .logo-link {
        margin-right: 0;
    }



::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}








    /* Header: Make 'look' images smaller and closer together */
    .look {
        min-height: 80px;
        min-width: 80px;
        max-width: 80px;
        max-height: 80px;
        margin-right: 15px;
        /* Reduce margin */
        border-width: 1px;
    }

    /* Main Titles: Reduce font size slightly for better fit */
    header h1 {
        font-size: 1.4rem;
    }

    /* Product Cards: Ensure size is manageable on small screens */


    /* Product Card Content: Reduce inner padding for dense information */
    .card {
        padding: 8px;
    }

    .product h3,
    .product1 h3 {
        font-size: 1.4rem;
    }

    /* Carting: Stack cart item details vertically if needed */
    .carting {
        flex-direction: row;
        align-items: center;
        padding: 15px;
    }

    /* Cart Summary Footer: Adjust button size/spacing */
    .cart-summary {
        padding: 10px;
    }

    .Total {
        font-size: 1rem;
    }

    #clearCart,
    #placeOrder {
        width: 100px;
        /* Make buttons slightly smaller in the footer */
        padding: 7px;
        font-size: 0.9rem;
    }

    /* Popup Size Adjustment */
    .popup {
        max-width: 90%;
        padding: 15px 20px;
    }
}


/* Ensure product size is reasonable on smaller screens (Original 500px kept for continuity) */
@media(max-width:500px) {

    .product,
    .product1 {
        width: 92%;
        height: 280px;
    }
}

/* --- Popup/Modal Styles (Base) --- */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    /* Enhancement for message clarity */
    color: var(--color-black);
}


.close-btn {
    margin-top: 15px;
    padding: 5px 15px;
    background: #ff5555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* --- Popup Contextual Styles (The FIX) --- */
.popup-success {
    background: #e6ffed;
    border: 2px solid #38a169;
    color: #276749;
}

.popup-error {
    background: #fff5f5;
    border: 2px solid #e53e3e;
    color: #9b2c2c;
}

.popup-warning {
    background: #ffffff;
    border: 2px solid #dd6b20;
    color: #9c4221;
}

/* ======================== LOCATION CONSENT MODAL STYLES ======================== */
.consent-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.consent-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.consent-box h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.consent-buttons button {
    margin: 10px 5px;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.product,
.product1 {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.look:hover{
    transition: 0.5s;
    box-shadow: 0 0 20px rgba(0, 255, 119, 0.884);
}


/* Search results container - full width and responsive */

input{
  width: 70%;
    max-width: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.796);
    border-radius: 8px;
    box-sizing: border-box;
}
#searchResultsGrid {
    display: flex;
    justify-content:center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(255, 255, 255, 0);
}
#searchResultsHeading
{
    color: #2d05059e;
    
}
*.visible{
    
      opacity: 1;
      transform: translateY(0);
     }

/* Center and style the search bar */
.search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.menu-container{
    padding: 10px;
    margin:0;
}

#productSearch {
    width:50%;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.314);
    transition: box-shadow 0.5s ease, transform 0.2s ease;
    outline: none;
    margin: -10px;

}
#productSearch:focus {
    box-shadow: 0 6px 18px rgba(43, 107, 176, 0.351);
    transform: translateY(-1px);
    border-color: var(--primary);
     transition: box-shadow 0.5s ease, transform 0.2s ease;
}

/* Reduce large vertical spacing introduced by <br> tags when search is active */
.menu-container.search-active br,
.menu-container.search-active hr {
    display: none !important;
}

.menu-container.search-active > *:not(#searchResults) {
    /* hide everything except the central search results block when active */
    display: none !important;
}



#placeOrder{
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
}

#add{
    background: linear-gradient(to right,rgb(171, 74, 0),rgb(255, 0, 0));
 
}

#recommended-products{
    padding-bottom: 10px;
    padding-top: -10px;
    text-decoration: underline;
    margin-top: -20px;
    
        
}

.img{
    display: none;
}

@media(max-width:650px)
{
    .extra .img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 10px;
  margin: -2px;
  transition: 0.3s ease;
  display:inline-block;
}
 .img1{
    display: none;
 }
}

.h2{
    display: flex;
    align-items: center;
    gap: 5px;
}

.pizza{
    background: linear-gradient(to top,rgba(245, 222, 179, 0),rgba(255, 217, 0, 0.582),rgba(245, 222, 179, 0));
    border: 0px solid black;
    padding: 5px;
    margin: 0;
    padding-bottom: -20px;
    
}

.pizza h2{
    font-weight: bold;
    background-image: linear-gradient(to right, rgb(255, 95, 31), orange, yellow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 
#products14 .product,
#products14 .product1 {

    width: 300px; 
    height: 400px; 
    
   
    background-color: rgba(255, 255, 255, 0.588); 
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    position: relative; 
    
   
    background-image: url('placeholder-noodles.jpg'); 
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 200px; 
    
   
    padding: 0;
    flex-shrink: 0;
}


#products14 .card {
   
    background: white; 
    color: var(--color-black); 
    
   
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    

    height: 200px; 
    padding: 15px 20px; 
    border-radius: 0;
    box-shadow: none;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


#products14 .product h3,
#products14 .product1 h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 0;
}

#products14 .desc {
    color: var(--color-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#products14 .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
}


#products14 .sum {
    border-top: none; 
    padding-top: 10px;
}

#products14 .btn.primary {
   
    background-color: var(--color-button); 
    background-image: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
} */ */
/* ======================== SCROLL FADE/REVEAL STYLES ======================== */

/* 1. Initial State: Hidden and shifted slightly down */
.product, 
.product1 {
    /* Ensure transitions apply to the existing card styles */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    
    /* Initially hide the element */
    opacity: 0; 
    
    /* Move it slightly off-screen (e.g., 20px down) */
    transform: translateY(20px);
}

/* 2. Active State: When the element is intersecting the viewport */
.product.reveal, 
.product1.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Container for the dropdown results */
.search-results-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position right below input */
    left: 12.5%; /* Align with input (since input is width:75% and centered approx) */
    width: 75%; /* Match input width */
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px; /* Scroll if too many results */
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000; /* Ensure it sits on top of everything */
}

/* Individual Result Item */
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    color: black;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-item-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.search-item-info p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #666;
}

.search-item-price {
    font-weight: bold;
    color: #2e7d32;
    margin-right: 10px;
}

/* Small Add Button inside search */
.search-add-btn {
    padding: 5px 10px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}