/* 10% Polish: Prevent UI flickering during Auth check */
#user-greeting:empty {
    display: none;
}

.auth-loading {
    opacity: 0.5;
    pointer-events: none;
    filter: blur(2px);
    transition: all 0.3s ease;
}

/* Standard Square Card Logic */
.restaurant-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Forces the image container to be a perfect square */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the square without stretching */
}

/* Grid Logic for Different Screens */
#restaurant-list {
    display: grid;
    gap: 16px; /* Standard spacing */
}

/* Mobile: 2 Cards (Standard for apps) */
@media (max-width: 600px) {
    #restaurant-list { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: 3 Cards */
@media (min-width: 601px) and (max-width: 900px) {
    #restaurant-list { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: 4 Cards (Standard for web food apps) */
@media (min-width: 901px) {
    #restaurant-list { grid-template-columns: repeat(4, 1fr); }
}




/* cart css */
/* --- Base Layout --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica;
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Responsive Split Logic --- */
@media (min-width: 901px) {
    .brand-side {
        width: 35%;
        background-color: #02B150;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
        color: white;
        position: fixed;
        height: 100vh;
    }
    .content-side {
        width: 65%;
        margin-left: 35%; /* Offset for fixed sidebar */
        display: flex;
        justify-content: center;
    }
    .cart-container {
        width: 100%;
        max-width: 500px;
    }
    .payment-footer {
        width: 65%; /* Match content-side width */
        right: 0;
    }
}

@media (max-width: 900px) {
    .brand-side { display: none; }
    .content-side { width: 100%; }
    .cart-container { width: 100%; }
    .payment-footer {
        width: 100%;
        left: 0;
    }
}

/* --- Components --- */
.header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    color: #666;
}

/* --- The Sticky Payment Bar --- */
.payment-footer {
    position: fixed;
    bottom: 0;
    background: white;
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    z-index: 200;
    /* Professional shadow to separate from items */
    box-shadow: 0 -10px 25px rgba(0,0,0,0.03);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.footer-inner {
    max-width: 500px; /* Aligns with cart content on desktop */
    margin: 0 auto;
}

.footer-label {
    font-size: 10px;
    font-weight: 900;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

/* --- Action Button (10% Accent) --- */
.checkout-btn {
    width: 100%;
    background-color: #FFD700;
    color: #000;
    font-weight: 900;
    padding: 18px;
    border-radius: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.checkout-btn:active {
    transform: scale(0.96);
}

.cart-items-list {
    padding: 0 24px;
}





/*resturant-menu css*/
/* --- Professional Layout Logic --- */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 901px) {
    .brand-side {
        width: 35%;
        background-color: #02B150; /* 30% Secondary */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
        position: fixed;
        height: 100vh;
    }
    .content-side {
        width: 65%;
        margin-left: 35%;
        display: flex;
        justify-content: center;
        background: white;
    }
    .menu-container {
        width: 100%;
        max-width: 600px; /* Slightly wider for menu items */
    }
}

@media (max-width: 900px) {
    .brand-side { display: none; }
    .content-side { width: 100%; }
    .menu-container { width: 100%; }
}

/* --- Menu Specific Components --- */
.header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f8f8f8;
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 14px;
    color: #888;
    transition: all 0.2s ease;
}

.back-btn:hover {
    color: #02B150;
    background: #f0fff4;
}

/* --- Button Styling (10% Accent) --- */
.accent-bg {
    background-color: #FFD700;
}

.active-shrink:active {
    transform: scale(0.92);
}





/*payment page css*/
/* --- Professional Layout Logic --- */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 901px) {
    .brand-side {
        width: 35%;
        background-color: #02B150; /* 30% Secondary */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
        position: fixed;
        height: 100vh;
        z-index: 10;
    }
    .content-side {
        width: 65%;
        margin-left: 35%;
        display: flex;
        justify-content: center;
        background: white;
    }
    .payment-container {
        width: 100%;
        max-width: 500px;
        position: relative;
    }
    .fixed-bottom-bar {
        width: 65%;
        right: 0;
        bottom: 0;
        position: fixed;
    }
}

@media (max-width: 900px) {
    .brand-side { display: none; }
    .content-side { width: 100%; }
    .payment-container { width: 100%; }
    .fixed-bottom-bar {
        width: 100%;
        bottom: 0;
        left: 0;
        position: fixed;
    }
}

/* --- Header & Components --- */
.header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 14px;
    color: #888;
}

/* --- Accent (10%) --- */
.accent-bg { background-color: #FFD700; }
.active-shrink:active { transform: scale(0.92); }









/* Custom Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}
.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* 60-30-10 Color System */
body { 
    background-color: #FFFFFF; /* Primary - 60% */
    font-family: 'Inter', sans-serif; 
}

.secondary-bg { 
    background-color: #02B150; /* Secondary - 30% */
} 

.accent-bg { 
    background-color: #FFD700; /* Accent - 10% */
}

.brand-text { 
    color: #02B150; 
}

/* Utility for active states */
.active-shrink:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Category Badge Positioning */
.category-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 9999px;
    z-index: 20;
} 

/*css for login page */
/* Add these to your existing style.css */

/* Input field focus state - 30% Green */
.login-input:focus {
    border-color: #02B150;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(2, 177, 80, 0.05);
}

/* Divider lines for "Or Join NF" */
.divider {
    flex-grow: 1;
    height: 1px;
    background-color: #F3F4F6;
}

/* Outline button for Create Account */
.btn-outline {
    border: 2px solid #02B150;
    color: #02B150;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #F0FDF4; /* Light green tint */
}

/* css for create-account page */
/* Add these to your style.css */

/* OTP Input Boxes */
.otp-box {
    transition: all 0.2s ease;
}

.otp-box:focus {
    border-color: #02B150; /* 30% Green secondary */
    outline: none;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(2, 177, 80, 0.1);
}

/* Dashed divider for OTP section */
.section-divider-dashed {
    border-top: 1px dashed #E5E7EB;
    margin-top: 1.5rem;
    padding-top: 1rem;
}
 /* foodcard for list food iteam */
 /* Premium Menu Card Styling */
#food-container {
        padding: 16px;
    }

    /* The Food Card */
    .food-card {
        background: #ffffff;
        border-radius: 24px; /* Highly rounded corners */
        padding: 16px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Premium Shadow: subtle and soft */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03), 0 4px 10px rgba(0, 0, 0, 0.02);
        transition: transform 0.2s ease;
        border: 1px solid #f0f0f0;
    }

    .food-card:active {
        transform: scale(0.98);
    }

    .food-img-wrapper {
        position: relative;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .food-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
    }

    /* 30% Rule: Secondary color for the ADD button */
    .add-btn {
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        color: #02B150;
        border: 1px solid #e0e0e0;
        padding: 6px 20px;
        border-radius: 8px;
        font-weight: 800;
        font-size: 11px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 10;
    }

    /* 10% Rule: Accent color for ratings */
    .rating-badge {
        background: #FFD700;
        color: #000;
        font-size: 10px;
        font-weight: 900;
        padding: 2px 6px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }

/* filter style */
@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* sticky bottom bar */
    /* Ensure the main content doesn't get hidden behind the bar */
    body {
        padding-bottom: 90px;
    }

    /* Hide scrollbar for the quick-filter bars you have */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    /* Animation for clicking icons */
    nav a:active {
        transform: scale(0.9);
        transition: 0.1s;
    }

    /* Active state color */
    .nav-active {
        color: #02B150 !important;
    }


/* Makes the whole card look disabled and gray */
.grayscale {
    filter: grayscale(1);
    cursor: not-allowed;
}

/* 60-30-10 logic for the status indicator */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

/* --- SKELETON SCREEN PULSE --- */

@keyframes skeleton-pulse {
    0% {
        background-color: #f3f4f6; /* Light gray */
    }
    50% {
        background-color: #e5e7eb; /* Slightly darker gray */
    }
    100% {
        background-color: #f3f4f6;
    }
}

.animate-pulse {
    animation: skeleton-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Optional: Add a subtle green glow to the pulse to match your 30% brand color */
.skeleton-brand {
    animation: skeleton-pulse-brand 1.8s infinite;
}

@keyframes skeleton-pulse-brand {
    0% { background-color: #f0fdf4; } /* Very light green hint */
    50% { background-color: #dcfce7; }
    100% { background-color: #f0fdf4; }
}