/* ==========================================================================
   PRO DESIGN SYSTEM - TANDOOR HUT
   ========================================================================== */
body.theme-light {
    --bg-base: #f8f6f0;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --bg-surface-solid: #ffffff;
    --text-primary: #1c1a17;
    --text-secondary: #6e6861;
    --accent-main: #d35400; /* Tandoori Orange */
    --accent-light: rgba(211, 84, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.06);
    --border-focus: rgba(211, 84, 0, 0.4);
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 32px rgba(45, 42, 38, 0.05);
    --shadow-hover: 0 12px 48px rgba(211, 84, 0, 0.15);
    
    --veg-color: #27ae60;
    --nonveg-color: #c0392b;
}

body.theme-dark {
    --bg-base: #0f0d0c;
    --bg-surface: rgba(26, 24, 22, 0.7);
    --bg-surface-solid: #1a1816;
    --text-primary: #f5f4f1;
    --text-secondary: #9a948d;
    --accent-main: #e67e22;
    --accent-light: rgba(230, 126, 34, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(230, 126, 34, 0.4);
    
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(230, 126, 34, 0.2);
    
    --veg-color: #2ecc71;
    --nonveg-color: #e74c3c;
}

:root {
    --brand-font: 'Playfair Display', serif;
    --body-font: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --glass-blur: blur(20px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--body-font);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Orbs */
.bg-blob {
    position: fixed; border-radius: 50%; filter: blur(80px);
    z-index: -1; opacity: 0.4; pointer-events: none;
    transition: background 1s ease;
}
.blob-1 {
    top: -100px; left: -100px; width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
}
.blob-2 {
    bottom: 20%; right: -150px; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.05) 0%, transparent 70%);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.glass-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

/* Animations */
.fade-in { animation: fadeIn 0.8s var(--transition-smooth) both; }
.slide-up-enter { animation: slideUpEnter 0.6s var(--transition-smooth) both; }

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUpEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.brand-title {
    font-family: var(--brand-font);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Gallery Theme Switcher */
.gallery-tabs {
    padding: 12px 20px;
    display: flex; align-items: center; 
    position: sticky; top: 0; z-index: 2000;
    border-bottom: 1px solid var(--border-light);
}
.gallery-title {
    color: var(--text-secondary); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 1.5px; margin-right: 20px; text-transform: uppercase;
}
.gallery-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-btn {
    background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary);
    padding: 6px 16px; border-radius: 20px; cursor: pointer;
    font-size: 0.85rem; font-weight: 500; font-family: var(--body-font);
    transition: var(--transition-smooth);
}
.gallery-btn:hover { border-color: var(--text-primary); color: var(--text-primary); }
.gallery-btn.active { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }

/* Header Hero */
.hero-header {
    text-align: center; padding: 50px 20px 30px; position: relative;
}
.hero-title { font-size: 3.5rem; line-height: 1.1; margin: 10px 0; }
.hero-subtitle {
    font-size: 0.95rem; font-weight: 500; color: var(--accent-main);
    letter-spacing: 3px; text-transform: uppercase;
}
.eyebrow {
    font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
    letter-spacing: 2px; text-transform: uppercase; display: block;
}
.google-review-wrap { position: absolute; top: 20px; right: 20px; z-index: 100; }
.review-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--bg-surface-solid); color: var(--text-primary);
    text-decoration: none; border-radius: 20px; padding: 6px 14px;
    font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light); transition: var(--transition-smooth);
}
.review-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--accent-main); }
.review-btn svg { color: #fbbc05; }

/* Sticky Controls */
.controls {
    max-width: 1000px; margin: 0 auto 30px; padding: 16px 20px 10px;
    border-radius: var(--radius-lg);
}
.sticky-controls { position: sticky; top: 60px; z-index: 90; margin-left: 15px; margin-right: 15px; }

.search-filter-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: stretch; flex-wrap: wrap; }
.search-wrapper {
    flex: 1; min-width: 200px; position: relative; display: flex; align-items: center;
    background: var(--bg-surface-solid); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); transition: var(--transition-smooth);
}
.search-wrapper:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-light); }
.search-icon {
    width: 18px; height: 18px; color: var(--text-secondary);
    position: absolute; left: 14px; pointer-events: none;
}
#search-bar {
    width: 100%; border: none; background: transparent; padding: 12px 14px 12px 40px;
    font-family: var(--body-font); font-size: 0.95rem; color: var(--text-primary); outline: none;
}
#search-bar::placeholder { color: var(--text-secondary); opacity: 0.7; }

.dietary-filters { display: flex; background: var(--bg-surface-solid); border-radius: var(--radius-sm); border: 1px solid var(--border-light); overflow: hidden; }
.filter-btn {
    background: transparent; border: none; padding: 0 16px;
    color: var(--text-secondary); font-family: var(--body-font); font-weight: 600;
    font-size: 0.85rem; cursor: pointer; transition: var(--transition-smooth);
    display: flex; align-items: center; gap: 6px;
}
.filter-btn:hover { color: var(--text-primary); background: var(--accent-light); }
.filter-btn.active { background: var(--text-primary); color: var(--bg-base); }
.veg-dot, .nonveg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.veg-dot { background: var(--veg-color); }
.nonveg-dot { background: var(--nonveg-color); }

/* Category Rail */
.category-rail {
    display: flex; overflow-x: auto; white-space: nowrap; gap: 24px;
    padding-bottom: 8px; scrollbar-width: none; mask-image: linear-gradient(to right, black 90%, transparent 100%);
}
.category-rail::-webkit-scrollbar { display: none; }
.rail-btn {
    background: transparent; border: none; color: var(--text-secondary);
    font-family: var(--body-font); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; padding: 4px 0; position: relative; transition: var(--transition-smooth);
}
.rail-btn::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
    background: var(--accent-main); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: right;
}
.rail-btn:hover { color: var(--text-primary); }
.rail-btn.active { color: var(--text-primary); }
.rail-btn.active::after { transform: scaleX(1); transform-origin: left; }

/* Menu Grid */
#menu-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.category { margin-bottom: 60px; scroll-margin-top: 180px; }
.category-title {
    font-family: var(--brand-font); font-weight: 600; font-size: 2rem;
    color: var(--text-primary); margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
}
.category-title::after {
    content: ''; height: 1px; flex: 1; background: var(--border-light);
}

.category-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 650px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 950px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }

/* Premium Cards */
.menu-item {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); background: var(--bg-surface-solid);
    transition: var(--transition-smooth); position: relative; overflow: hidden;
}
.menu-item:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}
.item-details { margin-bottom: 20px; flex: 1; }
.item-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.item-name { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; font-family: var(--brand-font); }
.item-desc { font-size: 0.9rem; font-weight: 300; color: var(--text-secondary); line-height: 1.5; }
.item-footer-row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; }
.item-price { font-size: 1.25rem; font-weight: 700; color: var(--accent-main); }

/* Diet Indicators */
.diet-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 4px; border: 1px solid; flex-shrink: 0;
}
.diet-badge.veg { border-color: var(--veg-color); }
.diet-badge.nonveg { border-color: var(--nonveg-color); }
.diet-badge::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
}
.diet-badge.veg::after { background-color: var(--veg-color); }
.diet-badge.nonveg::after { background-color: var(--nonveg-color); }

/* Buttons */
.btn-primary {
    background: var(--accent-main); color: #fff; border: none;
    padding: 12px 24px; border-radius: var(--radius-sm); font-family: var(--body-font);
    font-weight: 600; font-size: 1rem; cursor: pointer; transition: var(--transition-smooth);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 15px var(--accent-light);
}
.btn-primary:hover { background: #b94a00; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-primary:active { transform: translateY(0); }

.add-btn {
    background: var(--bg-base); color: var(--accent-main); border: 1px solid var(--border-light);
    padding: 8px 20px; border-radius: 20px; font-family: var(--body-font);
    font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition-smooth);
}
.add-btn:hover { background: var(--accent-main); color: #fff; border-color: var(--accent-main); }

.qty-control {
    display: flex; align-items: center; background: var(--accent-main); 
    border-radius: 20px; color: #fff; padding: 2px 4px;
    box-shadow: 0 4px 10px var(--accent-light);
}
.qty-btn {
    background: transparent; border: none; color: inherit; padding: 6px 12px;
    font-weight: 700; cursor: pointer; font-family: inherit; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.item-qty { font-weight: 600; font-size: 0.95rem; min-width: 20px; text-align: center; }

/* Session Bar */
.session-bar {
    margin: 15px 20px; padding: 12px 20px; border-radius: var(--radius-sm);
    display: flex; justify-content: space-between; align-items: center;
}
.pulse-dot {
    width: 8px; height: 8px; background: var(--veg-color); border-radius: 50%;
    margin-right: 8px; box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}
.btn-text {
    background: transparent; border: none; color: var(--text-secondary);
    text-decoration: underline; font-family: inherit; font-weight: 500;
    font-size: 0.85rem; cursor: pointer; transition: color 0.2s;
}
.btn-text:hover { color: var(--accent-main); }

/* Mascot */
.mascot-container {
    position: fixed; bottom: 100px; left: 20px; z-index: 2000;
    display: flex; flex-direction: column; align-items: flex-start;
}
.speech-bubble {
    background: var(--bg-surface-solid); color: var(--text-primary);
    border: 1px solid var(--border-light); padding: 12px 16px;
    border-radius: 16px 16px 16px 4px; font-size: 0.9rem; font-weight: 500;
    box-shadow: var(--shadow-md); margin-bottom: 12px; line-height: 1.4;
    opacity: 0; transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none; max-width: 220px;
}
.speech-bubble.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mascot-icon {
    width: 64px; height: 64px; background: var(--bg-surface-solid);
    border-radius: 50%; padding: 4px; box-shadow: var(--shadow-md); cursor: pointer;
    border: 2px solid var(--border-light); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mascot-icon:hover { transform: scale(1.08) rotate(5deg); }

/* Bottom Cart Bar */
.bottom-spacer { height: 130px; }
.cart-bar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 40px); max-width: 800px; padding: 16px 24px;
    border-radius: var(--radius-lg); display: flex; justify-content: space-between; align-items: center; z-index: 2000;
}
.cart-bar.hidden { display: none; }
.cart-summary { display: flex; flex-direction: column; }
.cart-count-badge { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.cart-total-text { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); font-family: var(--brand-font); line-height: 1.2; }
.checkout-action { margin: 0; padding: 12px 24px; border-radius: 24px; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000; padding: 20px; transition: opacity 0.3s;
}
.modal-overlay.hidden { display: none; opacity: 0; }
.modal-content {
    width: 100%; max-width: 420px; padding: 40px 32px; text-align: center;
}
.modal-header-icon { font-size: 2.5rem; margin-bottom: 16px; }
.input-group { position: relative; margin-bottom: 16px; text-align: left; }
.input-group input, .input-group textarea {
    width: 100%; padding: 16px; border: 1px solid var(--border-light);
    background: var(--bg-base); color: var(--text-primary); font-family: var(--body-font);
    border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition-smooth);
    outline: none;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent-main); box-shadow: 0 0 0 4px var(--accent-light);
    background: var(--bg-surface-solid);
}
.input-group textarea { resize: vertical; min-height: 80px; }

/* Checkout Modal Specifics */
.checkout-card { padding: 0; max-height: 90vh; display: flex; flex-direction: column; text-align: left; overflow: hidden; }
.modal-header {
    padding: 24px 32px; border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-surface-solid);
}
.icon-btn-close {
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; padding: 8px; border-radius: 50%; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.icon-btn-close:hover { background: var(--border-light); color: var(--text-primary); }

.checkout-scroll-area {
    padding: 24px 32px; overflow-y: auto; flex: 1;
}
.summary-item {
    display: flex; justify-content: space-between; padding: 12px 0;
    border-bottom: 1px dashed var(--border-light); font-size: 0.95rem; font-weight: 500;
}
.bill-details { margin-top: 24px; background: var(--bg-base); padding: 20px; border-radius: var(--radius-sm); }
.bill-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.bill-val { font-weight: 600; color: var(--text-primary); }
.divider { height: 1px; background: var(--border-light); margin: 16px 0; }
.bill-row.total { margin-bottom: 0; font-size: 1.1rem; color: var(--text-primary); font-weight: 600; align-items: center; }
.bill-val.highlight { font-size: 1.4rem; color: var(--accent-main); font-family: var(--brand-font); }

.modal-actions {
    padding: 24px 32px; border-top: 1px solid var(--border-light);
    background: var(--bg-surface-solid);
}
.whatsapp-btn { width: 100%; margin: 0; background: #25D366; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.whatsapp-btn:hover { background: #20b858; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
