/* ========================================== */
/* 1. STATIC THEME VARIABLES                  */
/* ========================================== */
:root {
    /* Layout Variables */
    --bg-body: url('panel/card_images/ohm1.jpg');
    --bg-card: transparent;
    --bg-card2: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.98);
    --bg-item-row: transparent;
    --bg-icon: #ffffff;
    --bg-search: #ffffff;
    --bg-bottom-nav: #ffffff;
    --bg-veg-toggle: #fffef9;
    
    /* Text & Colors */
    --text-main: #333333;
    --text-muted: #555555;
    --text-accent: #2196F3;
    --text-sparkle: #f5a623;
    --border-color: #e0e0e0;
    --border-search: #4a148c;
    --border-veg-toggle: #fce4b5;
}

body.dark-theme {
    --bg-body: url('images/dark.jpg');
    --bg-card: transparent;
    --bg-card2: #121212;
    --bg-nav: #121212;
    --bg-item-row: #1e1e1e;
    --bg-icon: #1e1e1e;
    --bg-search: #1e1e1e;
    --bg-bottom-nav: #121212;
    --bg-veg-toggle: #1e1e1e;
    
    --text-main: #f1f1f1;
    --text-muted: #aaaaaa;
    --text-accent: #90caf9;
    --border-color: #333333;
    --border-search: #f5a623;
    --border-veg-toggle: #333333;
}

/* ========================================== */
/* GLOBAL STRUCTURE & RESET                   */
/* ========================================== */
html, body {
    overflow-x: clip; 
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: unset; color: unset; }
div, h1, h2, h3, h4, p, i, a { transition: 0.3s; }
form, input, textarea, select, button { font-family: 'Poppins', sans-serif; }
input::placeholder { font-size: 12px; }

body {   
    background: var(--bg-body) center / cover fixed;
    font-family: var(--font-family);
    color: var(--font-color);
}

.card {
    background: var(--bg-card);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    margin: 0px auto 0px;
}

.card2 {
    background: var(--bg-card2);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    margin: 0px auto 0px;
    padding-top: 10px;
    padding-bottom: 80px; 
}

.head_marquee { 
    position: relative; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.35); 
    backdrop-filter: blur(5px); 
    padding: 7px 9px; 
    font-size: 14px; 
    z-index: 998; 
    font-weight: 600; 
    color: #333; 
}

/* ========================================== */
/* HEADER UI (SCALLOPED AWNING & LOGO)        */
/* ========================================== */
.awning-container {
    width: 100%;
    height: 25px;
    display: flex;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
}
.awning-stripe {
    flex: 1;
    height: 100%;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.15);
}
.awning-red { background-color: #d32f2f; }
.awning-white { background-color: #ffffff; }

.app-header {
    background: transparent;
    padding: 55px 15px 15px 15px; 
    text-align: center;
    position: relative;
    z-index: 10;
}

.app-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    margin-bottom: 12px;
    border: 1px solid #eaeaea;
    animation: moveLeftRight 3s ease-in-out infinite alternate;
}
.app-logo-container img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

@keyframes moveLeftRight {
    0% { transform: translateX(-11px); }
    100% { transform: translateX(11px); }
}

.app-brand-name {
    color: var(--text-accent);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}
.app-brand-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 0 20px 0;
}

.our-menu-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff5e62 0%, #ff9966 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 30px;
    border-radius: 30px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(255, 94, 98, 0.3);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* 4. Search Bar */
.search-bar-wrapper {
    padding: 0 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 20;
}
.modern-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-search);
    border-radius: 30px;
    padding: 12px 20px;
    border: 2px solid var(--border-search);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.modern-search-bar i.fa-search { color: var(--text-muted); font-size: 18px; margin-right: 12px; }
.modern-search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 16px; color: var(--text-main); }
.modern-search-bar input::placeholder { color: var(--text-muted); }
.modern-search-bar:focus-within {
    border-color: var(--text-sparkle);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.15);
}

/* ========================================== */
/* MENU & CATEGORIES                          */
/* ========================================== */
.category-nav { 
    display: flex; 
    overflow-x: auto; 
    gap: 18px; 
    padding: 15px; 
    white-space: nowrap; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    background: var(--bg-nav);
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    scroll-snap-type: x mandatory;
    scroll-padding-left: 15px; 
}
.category-nav::-webkit-scrollbar { display: none; }

.category-link { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer; 
    scroll-snap-align: start; 
}

.category-link .cat-icon { 
    background: var(--bg-icon); 
    border-radius: 50%;
    padding: 3px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    margin-bottom: 8px; 
    width: 70px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 2px solid var(--border-color); 
}
.category-link .cat-icon img { border-radius: 50%; object-fit: cover; width: 100%; height: 100%; }
.category-link p { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-main); }

/* Active State handling */
.category-link.category_active .cat-icon { 
    border-color: var(--text-sparkle); 
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.4); 
}
.category-link.category_active p { 
    color: var(--text-sparkle); 
    font-weight: 800; 
    text-shadow: 0 0 8px rgba(245, 166, 35, 0.3);
}

/* Veg Toggle Switch */
.veg-toggle-container { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    background: var(--bg-veg-toggle); 
    padding: 8px 15px; 
    border-radius: 25px; 
    border: 1px solid var(--border-veg-toggle); 
    width: max-content; 
    margin: 15px auto 10px auto; 
}
.veg-label { font-size: 13px; font-weight: bold; color: var(--text-main); }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .slider { background-color: #f5a623; }
input:checked + .slider:before { transform: translateX(20px); }

/* ========================================== */
/* NEW PRO CATEGORY HEADER (DESIGN 1 STYLE)   */
/* ========================================== */
.category-group-wrapper {
    position: relative;
}

.category-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 15px 15px 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #fce4b5; 
}

.menu-category-title {
    display: flex; 
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 8px 30px; 
    background: url(images/heading.png) center / 100% 100% no-repeat;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0; 
}

.cat-crisp-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0px 8px 12px rgba(0,0,0,0.15));
    transform: rotate(5deg); 
}

/* Menu Items List */
.menu-grid { padding: 0 15px; }
.menu-item-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 15px; 
    border-bottom: 1px dashed var(--border-color); 
    background: var(--bg-item-row);
    cursor: pointer; 
    transition: transform 0.1s, background 0.1s;
}
.menu-item-row:active {
    transform: scale(0.98);
    background: rgba(0,0,0,0.02);
}
.item-left { display: flex; align-items: center; flex: 1; padding-right: 15px; }
.item-title { font-weight: 600; font-size: 16px; color: var(--text-main); }
.item-price { font-weight: 800; font-size: 16px; color: var(--text-main); white-space: nowrap; }
.item-sparkle { color: var(--text-sparkle); margin-right: 8px; font-size: 14px; }

.item-indicator { width: 12px; height: 12px; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; border-radius: 2px; flex-shrink: 0;}
.add-to-order-btn { background: #fff; border: 1px solid #f5a623; color: #f5a623; padding: 6px 18px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* ========================================== */
/* BOTTOM INFO                                */
/* ========================================== */
.bottom-info-wrapper { padding: 20px 15px; margin-bottom: 80px; background: transparent; }
.star-divider { display: flex; align-items: center; justify-content: center; margin: 30px 0; }
.star-divider::before, .star-divider::after { content: ""; flex: 1; border-bottom: 2px solid var(--border-color); margin: 0 15px; }
.star-divider i { color: var(--text-muted); margin: 0 3px; }
.star-divider i.middle-star { font-size: 26px; }
.star-divider i.side-star { font-size: 18px; }

.info-block { margin-bottom: 25px; }
.info-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; color: var(--text-main); }
.info-title .title-icon { font-size: 20px; margin-right: 12px; width: 25px; text-align: center; }
.title-icon.red { color: #e74c3c; }
.title-icon.dark { color: var(--text-main); transform: rotate(90deg); } 

.info-row { font-size: 15px; margin-bottom: 10px; display: flex; align-items: flex-start; color: var(--text-main); line-height: 1.5; }
.info-row .emoji { font-size: 18px; margin-right: 12px; margin-left: 8px; width: 25px; text-align: center; flex-shrink: 0; }

/* ========================================== */
/* MODERN THANK YOU GRAPHIC                   */
/* ========================================== */
.thank-you-graphic-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 15px 40px 15px;
    position: relative;
    text-align: center;
}

.thank-you-graphic-modern .thank-you-content {
    position: relative;
    display: inline-block; 
    padding: 10px 25px;
    z-index: 1;
}

.thank-you-graphic-modern h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 55px; 
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); 
}

.thank-you-graphic-modern p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 5px 0 0 0;
    color: var(--text-muted);
    font-weight: 500;
}

.thank-you-graphic-modern .drawn-heart {
    position: absolute;
    bottom: 0px;
    right: -10px; 
    transform: rotate(-15deg);
    animation: heartbeat 2.5s infinite ease-in-out;
    z-index: 2;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1) rotate(-15deg); }
    10% { transform: scale(1.15) rotate(-15deg); }
    20% { transform: scale(1) rotate(-15deg); }
    30% { transform: scale(1.15) rotate(-15deg); }
    40%, 100% { transform: scale(1) rotate(-15deg); }
}

/* ========================================== */
/* BOTTOM NAV (MERGED & CLEANED)              */
/* ========================================== */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: var(--bg-bottom-nav); 
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08); 
    display: flex; 
    justify-content: space-around; 
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* Fixed double padding issue */
    z-index: 1000; 
    border-top-left-radius: 15px; 
    border-top-right-radius: 15px; 
}

.bottom-nav .nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    color: var(--text-muted); 
    font-size: 11px; 
    font-weight: 600; 
    cursor: pointer; 
    padding: 3px 15px; 
    border-radius: 8px; 
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav .nav-item i { font-size: 20px; margin-bottom: 4px; }