/* ===== CSS Variables ===== */
:root {
    --primary: #e65100;
    --primary-dark: #bf360c;
    --primary-light: #ff9800;
    --secondary: #2e7d32;
    --accent: #ffc107;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #212529;
    --text-light: #6c757d;
    --border: #dee2e6;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
    --phonepe: #5f259f;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 100px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Loading Overlay ===== */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--secondary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i { font-size: 1.2rem; }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(230, 81, 0, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    max-width: 1400px;
    margin: 0 auto;
    height: var(--header-height);
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    overflow: hidden;
    background: white;
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.hotel-info h1 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 1px;
}

.hotel-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 1px;
}

.hotel-tagline {
    font-size: 0.72rem !important;
    font-weight: 600;
    color: #ffeb3b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hotel-tagline i.fa-leaf        { color: #69f0ae; font-size: 0.65rem; }
.hotel-tagline i.fa-drumstick-bite { color: #ffab91; font-size: 0.65rem; }

.hotel-info p {
    font-size: 0.82rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle, .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-toggle:hover, .menu-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* ===== Search Bar ===== */
.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0,0,0,0.1);
}

.search-bar.active {
    max-height: 70px;
    padding: 10px 16px;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 16px;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-container i          { color: var(--text-light); font-size: 1rem; }
.search-container input      { flex: 1; border: none; outline: none; font-size: 1rem; background: transparent; }

.search-container button {
    color: var(--text-light);
    font-size: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.search-container button:hover { background: #f0f0f0; color: var(--text); }

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    z-index: 10001;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open { right: 0; }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.mobile-menu-header h3 { font-size: 1.2rem; }

.mobile-menu-header button {
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

.mobile-menu-content { flex: 1; overflow-y: auto; padding: 10px 0; }

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-menu-item i {
    width: 24px;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: #fff3e0;
    border-left-color: var(--primary);
    color: var(--primary-dark);
}

.mobile-menu-divider { height: 1px; background: var(--border); margin: 10px 20px; }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

/* ===== Hero Banner ===== */
.hero-banner {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    color: white;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* ===== Category Section ===== */
.category-section {
    position: sticky;
    top: var(--header-height);
    background: var(--bg);
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.category-container {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 1400px;
    margin: 0 auto;
}

.category-container::-webkit-scrollbar { display: none; }

.category-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 50px;
    background: white;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.15);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}

/* ===== Menu Section ===== */
.menu-section {
    padding: 20px 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    /* content-visibility removed — causes mobile paint delay */
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* ===== Product Image — aspect ratio box ===== */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

/* Shimmer skeleton while image loads */
.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        #f0f0f0 25%,
        #e4e4e4 50%,
        #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    z-index: 0;
}

/* Hide shimmer once image appears */
.product-image:has(img.is-loaded)::before {
    display: none;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: block;
    z-index: 1;
}

.product-image img.is-loaded { opacity: 1; }

.product-card:hover .product-image img {
    transform: scale(1.06);
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}

.product-price::before { content: "₹"; font-size: 1rem; }

.product-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    font-weight: 700;
}

.qty-btn:hover        { background: var(--primary); color: white; }
.qty-btn.minus:hover  { background: #dc3545; }

.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
}

.btn-add-cart {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.25);
}

.btn-add-cart:hover  { transform: scale(1.03); box-shadow: 0 6px 20px rgba(230, 81, 0, 0.35); }
.btn-add-cart:active { transform: scale(0.97); }

.btn-add-cart.added {
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

/* ===== Sticky Cart ===== */
.sticky-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 25px rgba(230, 81, 0, 0.4);
    transition: var(--transition);
    animation: cartBounce 0.5s ease;
}

.cart-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(230, 81, 0, 0.5);
}

.cart-btn i { font-size: 1.2rem; }

.cart-count {
    background: white;
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cart-total { font-size: 1.1rem; }

@keyframes cartBounce {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%       { transform: translateX(-50%) scale(1.1); }
}

/* ===== Cart Drawer ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.cart-drawer-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.cart-close {
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: var(--transition);
}

.cart-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
}

.empty-cart i    { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-cart p    { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-cart span { font-size: 0.9rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cart-item:hover { border-color: var(--primary-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

.cart-item-qty { display: flex; align-items: center; gap: 8px; }

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.cart-item-qty button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-item-qty span          { font-weight: 700; min-width: 20px; text-align: center; }

.cart-item-remove {
    color: #dc3545;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-item-remove:hover { background: #ffebee; transform: scale(1.1); }

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.cart-summary { margin-bottom: 16px; }

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cart-summary-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    border-top: 2px solid var(--border);
    padding-top: 10px;
    margin-top: 6px;
}

.btn-place-order {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-place-order:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4); }

.btn-continue {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.btn-continue:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.modal-header h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }

.modal-close {
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.text-center { text-align: center; }

/* ===== Form ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group label i { color: var(--primary); width: 18px; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #adb5bd; }

/* ===== Payment Options ===== */
.payment-options { display: flex; gap: 12px; }

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
}

.payment-option:hover { border-color: var(--primary-light); }
.payment-option input { display: none; }

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.payment-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.payment-option input:checked + .payment-radio              { border-color: var(--primary); }
.payment-option input:checked + .payment-radio::after       { transform: scale(1); }
.payment-option input:checked ~ span                        { color: var(--primary); font-weight: 700; }
.payment-option:has(input:checked)                          { border-color: var(--primary); background: #fff3e0; }
.payment-option i                                           { font-size: 1.3rem; color: var(--primary); }

/* ===== UPI Buttons ===== */
.upi-buttons { display: flex; gap: 10px; margin-bottom: 14px; }

.btn-upi {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-upi:first-child {
    background: linear-gradient(135deg, var(--phonepe) 0%, #3a1465 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(95, 37, 159, 0.3);
}

.btn-upi:first-child:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(95, 37, 159, 0.4); }

.btn-payment-done {
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-payment-done:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(46, 125, 50, 0.4); }

.payment-status {
    text-align: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 600;
}

.status-pending { color: #f57c00; }
.status-paid    { color: var(--secondary); }
.status-cash    { color: #5d4037; }

/* ===== QR Code Payment Section ===== */
#qr-payment-section {
    margin-bottom: 14px;
    animation: fadeInUp 0.4s ease;
}

.qr-container {
    border: 2px solid #e0d0f0;
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(145deg, #faf5ff 0%, #f0e8ff 100%);
    text-align: center;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.qr-brand-logo { height: 28px; width: auto; object-fit: contain; }

.qr-title-block { display: flex; flex-direction: column; align-items: flex-start; }
.qr-title       { font-size: 1.05rem; font-weight: 800; color: var(--phonepe); line-height: 1.2; }
.qr-subtitle    { font-size: 0.72rem; color: var(--text-light); font-weight: 500; }

.qr-image-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto 12px;
}

.qr-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(95, 37, 159, 0.2);
    display: block;
    margin: 0 auto;
}

.qr-amount-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 4px 16px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(230, 81, 0, 0.3);
}

.qr-upi-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0d0f0;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--text);
}

.qr-upi-id i      { color: var(--phonepe); font-size: 0.85rem; }
.qr-upi-id strong { color: var(--phonepe); }

.btn-copy-upi {
    background: #f3ebff;
    border: 1px solid #d0b0f0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--phonepe);
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-copy-upi:hover { background: var(--phonepe); color: white; transform: scale(1.1); }

.qr-note {
    font-size: 0.8rem;
    color: var(--text-light);
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px dashed #c9b0e0;
    line-height: 1.4;
}

/* ===== Submit / Download Buttons ===== */
.btn-submit-order,
.btn-download-bill {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.3);
    margin-top: 10px;
}

.btn-download-bill {
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
}

.btn-download-bill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 94, 32, 0.35);
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.4);
}

.btn-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Admin Notification Panel ===== */
.admin-notification-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    max-width: 320px;
    background: linear-gradient(135deg, rgba(95,37,159,0.98), rgba(63,13,110,0.98));
    color: white;
    padding: 18px 20px;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    z-index: 11000;
}

.admin-notification-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-notification-panel h4   { margin-bottom: 8px; font-size: 1rem; }
.admin-notification-panel p    { margin-bottom: 6px; line-height: 1.4; }
.admin-notification-panel small{ display: block; margin-top: 8px; opacity: 0.8; font-size: 0.82rem; }

/* ===== Success Modal ===== */
.success-modal .modal-body { padding: 40px 30px; }

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon i { font-size: 2.5rem; color: white; }

@keyframes scaleIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.success-modal h3    { font-size: 1.5rem; margin-bottom: 10px; color: var(--text); }
.success-modal p     { color: var(--text-light); margin-bottom: 6px; }
.success-note        { font-size: 0.9rem; color: var(--secondary); font-weight: 600; }

.btn-new-order {
    margin-top: 24px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}

.btn-new-order:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4); }

/* ===== Order History ===== */
.empty-history { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-history i { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }

.history-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-item-header h4 { font-size: 0.95rem; color: var(--text); }
.history-item-date      { font-size: 0.8rem; color: var(--text-light); }
.history-item-details   { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.history-item-total     { font-weight: 700; color: var(--primary); margin-top: 6px; font-size: 1rem; }

/* ===== Contact Modal ===== */
.contact-info { display: flex; flex-direction: column; gap: 12px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:hover { border-color: var(--primary-light); background: #fff3e0; }

.contact-item i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 { font-size: 1rem; margin-bottom: 2px; color: var(--text); }
.contact-item p  { font-size: 0.9rem; color: var(--text-light); }

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand   { margin-bottom: 24px; }
.footer-brand i { font-size: 2.5rem; color: var(--primary-light); margin-bottom: 10px; }
.footer-brand h3{ font-size: 1.5rem; margin-bottom: 4px; }
.footer-brand p { opacity: 0.7; font-size: 0.9rem; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover { opacity: 1; color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom p { margin-bottom: 4px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* ===== Print ===== */
@media print {
    body * { visibility: hidden; }
    #bill-print-area, #bill-print-area * { visibility: visible; }
    #bill-print-area { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ===================================================
   RESPONSIVE
=================================================== */

/* Mobile */
@media (max-width: 480px) {
    :root { --header-height: 65px; }

    .logo {
        width: 44px; height: 44px;
        min-width: 44px; min-height: 44px;
        border-radius: 10px;
    }

    .hotel-info h1,
    .hotel-title { font-size: 1rem; }

    .hero-banner    { height: 220px; }
    .hero-content h2{ font-size: 1.4rem; }

    .menu-container {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 4px;
    }

    /* Wider, shorter image — food looks great on mobile */
    .product-image { aspect-ratio: 16 / 7; }

    .product-info  { padding: 12px 14px 14px; }
    .product-name  { font-size: 1rem; }
    .product-price { font-size: 1.15rem; margin-bottom: 10px; }

    .cart-btn { padding: 12px 20px; font-size: 0.9rem; }

    .modal    { width: 95%; max-height: 85vh; }

    .payment-options { flex-direction: column; }
    .upi-buttons     { flex-direction: column; }

    .qr-image    { max-width: 180px; }
    .qr-upi-id   { font-size: 0.78rem; flex-wrap: wrap; justify-content: center; }
    .qr-container{ padding: 12px; }

    .admin-notification-panel {
        left: 12px; right: 12px;
        bottom: 16px; max-width: none;
        border-radius: 18px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .logo { width: 50px; height: 50px; min-width: 50px; min-height: 50px; }
    .menu-container { grid-template-columns: repeat(2, 1fr); }
    .hero-banner    { height: 250px; }
    .product-image  { aspect-ratio: 4 / 3; }
    .qr-image       { max-width: 200px; }
}

/* Small desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-container { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
    .menu-container { grid-template-columns: repeat(4, 1fr); }
}

/* Large desktop */
@media (min-width: 1441px) {
    .logo {
        width: 64px; height: 64px;
        min-width: 64px; min-height: 64px;
        border-radius: 16px;
    }

    .menu-container  { grid-template-columns: repeat(5, 1fr); }
    .hero-banner     { height: 350px; }
    .hero-content h2 { font-size: 2.2rem; }
}
