:root {
    --bg: #120f0d;
    --bg-soft: #1a1411;
    --panel: rgba(34, 24, 20, 0.82);
    --panel-solid: #241914;
    --panel-light: rgba(255, 248, 240, 0.08);
    --primary: #c77931;
    --primary-light: #f0ad67;
    --primary-dark: #8b4b1d;
    --secondary: #d7c0aa;
    --accent: #f3d7a4;
    --success: #f0ad67;
    --danger: #ef6d5b;
    --text: #fff5ea;
    --text-muted: #c4ae98;
    --line: rgba(255, 237, 221, 0.1);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.24);
    --header-height: 84px;
    --category-height: 90px;
}

* {
    font-family: 'Manrope', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(199, 121, 49, 0.18), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(243, 215, 164, 0.14), transparent 22%),
        linear-gradient(180deg, #171210 0%, #120f0d 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.page-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.orb-one {
    width: 280px;
    height: 280px;
    top: 60px;
    left: -80px;
    background: rgba(199, 121, 49, 0.22);
}

.orb-two {
    width: 320px;
    height: 320px;
    top: 380px;
    right: -110px;
    background: rgba(243, 215, 164, 0.16);
}

.page-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
    pointer-events: none;
    z-index: 0;
}

.container,
main,
.category-nav,
.header {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(18, 15, 13, 0.9) 0%, rgba(18, 15, 13, 0.68) 100%);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 240, 225, 0.08);
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
    position: sticky;
    top: 0;
    z-index: 1200;
}

.header-brand {
    color: var(--text);
}

.brand-kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 2px;
}

.header-brand span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.header .btn-outline-primary {
    border-color: rgba(255, 244, 232, 0.18);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.header .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #1e130d;
    border-color: transparent;
}

.cart-trigger {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 24px rgba(0,0,0,0.18);
    position: relative;
    z-index: 1;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

/* Visual gap before category nav without affecting sticky top alignment */
.hero-wrap {
    padding-bottom: 1rem;
}

.hero-copy,
.hero-panel-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 237, 221, 0.1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-copy {
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: '';
    position: absolute;
    inset: auto -40px -55px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(243, 215, 164, 0.22), transparent 68%);
}

.hero-panel {
    display: flex;
}

.hero-panel-card {
    width: 100%;
    border-radius: 28px;
    padding: 1.75rem;
}

.hero-chip,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 237, 221, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
}

.hero-chip {
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.3rem, 4.4vw, 4.5rem);
    line-height: 0.98;
    margin: 0 0 0.9rem;
    max-width: 10ch;
}

.hero-text {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 58ch;
    margin-bottom: 1.2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-badge {
    padding: 0.72rem 1rem;
    color: var(--text);
    font-weight: 600;
}

.hero-badge.success {
    background: rgba(199, 121, 49, 0.18);
    color: var(--accent);
    border-color: rgba(240, 173, 103, 0.2);
}

.hero-panel-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.hero-panel-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.hero-panel-item:first-of-type {
    border-top: 0;
}

.hero-panel-item strong {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #22160f;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    box-shadow: 0 12px 24px rgba(199, 121, 49, 0.24);
}

.hero-panel-item span {
    color: var(--text-muted);
    font-weight: 600;
}

/* Category Nav */
.category-nav {
    background: rgba(27, 20, 17, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 237, 221, 0.08);
    position: sticky;
    top: calc(var(--header-height) - 1px);
    z-index: 999;
    padding: 0.85rem 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
}

.category-nav .container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.category-scroll-wrap {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding-bottom: 2px;
}

.category-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.cat-scroll-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin: 0 4px;
}

.cat-scroll-btn:active {
    transform: scale(0.9);
    background: rgba(199, 121, 49, 0.25);
    color: var(--accent);
}

.cat-scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.category-btn {
    padding: 13px 22px;
    margin: 0 6px;
    border: 1px solid rgba(255, 244, 232, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0, 0, 0, 0.14);
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240, 173, 103, 0.95), rgba(243, 215, 164, 0.96));
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.category-btn:hover {
    color: #20140d;
    border-color: rgba(255, 244, 232, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);
}

.category-btn:hover::before {
    width: 300px;
    height: 300px;
}

.category-btn.active {
    color: #1d120c;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(199, 121, 49, 0.28);
    transform: scale(1.05);
}

.category-btn.active::after {
    content: '\2022';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
}

/* Menu Items */
.menu-section {
    scroll-margin-top: calc(var(--header-height) + var(--category-height) + 20px);
    margin-bottom: 4rem !important;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.menu-main {
    padding-top: 3.4rem !important;
}

.menu-card {
    background: linear-gradient(180deg, rgba(43, 30, 24, 0.88), rgba(28, 20, 17, 0.92));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(255, 240, 225, 0.08);
    height: 100%;
    transform-style: preserve-3d;
    position: relative;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent 35%);
    pointer-events: none;
}

.menu-card:hover {
    box-shadow: 0 26px 50px rgba(0,0,0,0.3);
    transform: translateY(-10px) rotateX(1deg) rotateY(-1deg);
}

.menu-card-img {
    height: 260px;
    object-fit: cover;
    width: 100%;
    filter: saturate(1.05) contrast(1.06);
}

.menu-card-body {
    padding: 1.5rem;
}

.menu-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--text);
}

.menu-card-desc {
    color: var(--secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 8px 18px rgba(199, 121, 49, 0.2);
}

.btn-add {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #22150f;
    border: none;
    padding: 5px 9px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 14px 24px rgba(139, 69, 19, 0.28);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    /* min-width: 40px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto;
    width: auto;
}

.btn-add-popup {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #22150f;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 16px 26px rgba(139, 69, 19, 0.28);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto;
    width: auto;
}

.btn-add::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 30px rgba(139, 69, 19, 0.38);
}

.btn-add:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add.added {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #08140f;
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #1e130d;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    pointer-events: none;
    white-space: nowrap;
}

.cart-toast i {
    font-size: 1.15rem;
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

body.light-theme .cart-toast {
    box-shadow: 0 14px 36px rgba(120, 80, 50, 0.22);
    color: #fff8ef;
}

/* Cart Section */
.cart-section {
    background: linear-gradient(180deg, rgba(36, 25, 20, 0.88), rgba(29, 21, 17, 0.94));
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 240, 225, 0.08);
    margin-top: 3rem;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cart-item {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cart-total {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 240, 225, 0.07);
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #1e130d;
    border: none;
    padding: 16px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 18px 30px rgba(139, 69, 19, 0.28);
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 34px rgba(139, 69, 19, 0.35);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
}

.btn-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Checkout Form */
.checkout-form {
    background: linear-gradient(180deg, rgba(36, 25, 20, 0.88), rgba(29, 21, 17, 0.94));
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 240, 225, 0.08);
    margin-top: 2rem;
}

.form-control, .form-select {
    border-radius: 16px;
    border: 1px solid rgba(255, 240, 225, 0.08);
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(199, 121, 49, 0.16);
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(255, 245, 234, 0.42);
}

.form-label {
    color: var(--accent);
}

.text-muted {
    color: rgba(255, 232, 209, 0.72) !important;
}

.text-success {
    color: var(--accent) !important;
}

.btn-outline-success,
.btn-outline-success:hover,
.btn-check:checked + .btn-outline-success,
.btn-check:active + .btn-outline-success {
    color: #1f120c !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    box-shadow: 0 14px 28px rgba(199, 121, 49, 0.22);
}

.btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: rgba(255, 240, 225, 0.12) !important;
    background: rgba(255,255,255,0.04) !important;
}

.btn-outline-secondary:hover,
.btn-check:checked + .btn-outline-secondary,
.btn-check:active + .btn-outline-secondary {
    color: #1f120c !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    box-shadow: 0 14px 28px rgba(199, 121, 49, 0.22);
}

.table-select-btn {
    border-color: rgba(133, 243, 220, 0.34) !important;
}

.table-select-input:checked + .table-select-btn,
.table-select-input:active + .table-select-btn {
    color: #04231f !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #2fd6b6, #8cebd8) !important;
    box-shadow: 0 14px 28px rgba(47, 214, 182, 0.28);
}

.order-type-dine-input:checked + .order-type-dine-btn,
.order-type-dine-input:active + .order-type-dine-btn {
    color: #041b14 !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #35d39d, #84e7c5) !important;
    box-shadow: 0 14px 28px rgba(53, 211, 157, 0.26);
}

.order-type-takeaway-input:checked + .order-type-takeaway-btn,
.order-type-takeaway-input:active + .order-type-takeaway-btn {
    color: #041b14 !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #35d39d, #84e7c5) !important;
    box-shadow: 0 14px 28px rgba(53, 211, 157, 0.26);
}

.badge-count {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #1e120c;
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(210, 105, 30, 0.26);
}

/* Variation Tags */
.variation-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 240, 225, 0.12);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.25rem;
}

.variation-tag:hover {
    border-color: var(--primary);
    color: var(--accent);
}

.variation-tag.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: #1f120c;
}

/* Add-ons */
.addon-item {
    padding: 0.5rem;
    border-radius: 14px;
    transition: background 0.2s;
}

.addon-item:hover {
    background: rgba(255,255,255,0.05);
}

.addon-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.addon-price {
    color: var(--success);
    font-weight: 600;
}

.modal-content {
    background: linear-gradient(180deg, rgba(36, 25, 20, 0.95), rgba(26, 19, 16, 0.98)) !important;
    color: var(--text);
    border: 1px solid rgba(255, 240, 225, 0.1) !important;
    box-shadow: var(--shadow-lg) !important;
}

.modal-title,
.small,
.cursor-pointer,
.addon-item span {
    color: var(--text);
}

.btn-close {
    filter: invert(1) brightness(1.2);
}

/* Tablet/Medium Screen Styles */
@media (max-width: 992px) {
    :root {
        --header-height: 80px;
        --category-height: 82px;
    }

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .category-nav {
        padding: 0.75rem 0;
        top: calc(var(--header-height) - 1px);
    }
    
    .category-nav .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    :root {
        --header-height: 74px;
        --category-height: 76px;
    }

    .header {
        padding: 0.75rem 0 !important;
    }
    
    .header-brand {
        font-size: 1.2rem;
    }

    .header-brand span {
        font-size: 1.5rem;
    }

    .hero-copy,
    .hero-panel-card,
    .cart-section,
    .checkout-form,
    .menu-card {
        border-radius: 22px;
    }

    .hero-wrap {
        padding-bottom: 0.75rem;
    }

    .hero-copy {
        padding: 1.4rem;
    }

    .hero-title {
        font-size: 2.2rem;
        max-width: none;
    }
    
    .category-nav {
        padding: 0.65rem 0;
        top: calc(var(--header-height) - 1px);
    }
    
    .category-nav .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .cat-scroll-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin: 0 2px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .menu-section {
        scroll-margin-top: calc(var(--header-height) + var(--category-height) + 16px);
    }
    
    .menu-card-img {
        height: 140px;
    }
    
    .menu-card-body {
        padding: 1rem;
    }
    
    .menu-card-title {
        font-size: 1rem;
    }
    
    .menu-card-desc {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .btn-add {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        font-size: 0.85rem;
        min-width: auto;
        gap: 0;
    }
    
    .cart-section, .checkout-form {
        padding: 1.25rem;
    }
    
    .cart-title {
        font-size: 1.4rem;
    }
    
    .variation-tag {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
        margin: 0.2rem;
    }
    
    .addon-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 68px;
        --category-height: 72px;
    }

    .header {
        padding: 0.5rem 0 !important;
    }
    
    .header-brand {
        font-size: 1rem;
    }

    .brand-kicker {
        font-size: 0.62rem;
    }

    .header-brand span {
        font-size: 1.28rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-wrap {
        padding-bottom: 0.6rem;
    }

    .hero-text {
        font-size: 0.92rem;
    }
    
    .category-nav {
        padding: 0.5rem 0;
        top: calc(var(--header-height) - 1px);
    }

    .cat-scroll-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .category-btn {
        padding: 7px 14px;
        font-size: 0.7rem;
        margin: 0 2px;
        letter-spacing: 0;
        font-weight: 500;
    }
    
    .category-btn.active::after {
        bottom: -6px;
        font-size: 1.2rem;
    }
    
    .menu-section {
        scroll-margin-top: calc(var(--header-height) + var(--category-height) + 14px);
    }
    
    .btn-checkout {
        font-size: 1rem;
        padding: 14px;
    }

    .btn-add {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ─── Language Switcher ──────────────────────────────────────────────────── */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255, 244, 232, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 24px rgba(0,0,0,0.18);
    white-space: nowrap;
}

.theme-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 16px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255, 244, 232, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 24px rgba(0,0,0,0.18);
    white-space: nowrap;
}

.theme-switch-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #1e130d;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(0,0,0,0.2);
}

.lang-switch-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #1e130d;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(0,0,0,0.2);
}

/* ─── RTL / Urdu ─────────────────────────────────────────────────────────── */
.rtl {
    font-family: 'Noto Nastaliq Urdu', 'Manrope', sans-serif;
}

/* Override Latin font for key UI elements in RTL */
.rtl .hero-title,
.rtl .hero-text,
.rtl .hero-chip,
.rtl .hero-badge,
.rtl .hero-panel-label,
.rtl .hero-panel-item span,
.rtl .section-title,
.rtl .cart-title,
.rtl .form-label,
.rtl .form-control,
.rtl textarea.form-control,
.rtl .btn-checkout,
.rtl .btn-add span,
.rtl .btn-add-popup span,
.rtl .variation-tag,
.rtl .addon-item span,
.rtl [data-i18n],
.rtl .small.fw-bold,
.rtl .brand-kicker,
.rtl .lang-switch-btn {
    font-family: 'Noto Nastaliq Urdu', sans-serif;
}

.rtl .theme-switch-btn {
    font-family: 'Noto Nastaliq Urdu', sans-serif;
}

/* Urdu headings need more line height + smaller size */
.rtl .hero-title {
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1.5;
    max-width: none;
}

.rtl .hero-text {
    line-height: 2;
}

.rtl .section-title,
.rtl .cart-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 1.6;
}

/* RTL hero layout */
.rtl .hero-copy {
    text-align: right;
}

.rtl .hero-panel-card {
    text-align: right;
}

/* hero-panel-item: dir=rtl on <html> already reverses flex order natively */

.rtl .hero-chip {
    flex-direction: row-reverse;
}

.rtl .hero-meta {
    justify-content: flex-end;
}

.rtl .hero-badge {
    flex-direction: row-reverse;
}

/* RTL cart & form */
.rtl .cart-item {
    flex-direction: row-reverse;
}

.rtl .cart-section {
    direction: rtl;
}

.rtl #cart-items,
.rtl .cart-total {
    direction: rtl;
}

.rtl .cart-item {
    flex-direction: row !important;
}

.rtl .cart-item > div:first-child {
    text-align: right;
}

.rtl .cart-item > div:last-child {
    direction: ltr;
}

.rtl .cart-total-row {
    direction: ltr !important;
    flex-direction: row !important;
    justify-content: space-between;
}

.rtl .cart-total-row > span:first-child {
    order: 2;
    text-align: right;
    direction: rtl;
}

.rtl .cart-total-row > span:last-child {
    order: 1;
    direction: ltr;
    text-align: left;
}

.rtl .d-flex.justify-content-between {
    flex-direction: row-reverse;
}

.rtl .cart-title {
    text-align: right;
}

.rtl .form-label {
    display: block;
    text-align: right;
}

.rtl .form-control,
.rtl textarea.form-control {
    text-align: right;
    direction: rtl;
}

/* RTL checkout button row */
.rtl .d-flex.gap-2 {
    flex-direction: row-reverse;
}

/* Keep cart badge position in RTL */
.rtl .cart-trigger .badge-count {
    right: auto;
    left: 0;
    transform: translate(-50%, -50%);
}

/* RTL menu card */
.rtl .menu-card-body {
    text-align: right;
}

.rtl .menu-card-body .d-flex.justify-content-between {
    flex-direction: row;
}

/* RTL category nav */
.rtl .category-nav {
    direction: rtl;
}

.rtl .category-scroll-wrap {
    direction: rtl;
}

.rtl .cat-scroll-left {
    order: 2;
}

.rtl .cat-scroll-right {
    order: 0;
}

/* RTL modal */
.rtl .modal-header {
    flex-direction: row-reverse;
}

.rtl .modal-title {
    text-align: right;
    font-family: inherit;
}

.rtl #modalOptionsContent {
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', sans-serif;
}

.rtl #modalOptionsContent .small.fw-bold {
    text-align: right;
}

.rtl #modalOptionsContent .addon-item {
    flex-direction: row-reverse;
}

.rtl #modalOptionsContent .addon-item label {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl #modalAddToCartBtn {
    flex-direction: row-reverse;
}

.rtl .addon-price {
    margin-right: 0;
    margin-left: 0;
}

/* RTL header brand */
.rtl .header-brand div {
    text-align: right;
}

/* RTL empty state */
.rtl .empty-state {
    font-family: 'Noto Nastaliq Urdu', sans-serif;
    line-height: 2;
}

@media (max-width: 576px) {
    .lang-switch-btn {
        height: 44px;
        padding: 0 12px;
        font-size: 0.8rem;
        border-radius: 14px;
    }

    .theme-switch-btn {
        height: 44px;
        padding: 0 12px;
        font-size: 0.8rem;
        border-radius: 14px;
    }
}


/* ── Thank-You Modal ─────────────────────────────────────── */
#thankYouModal .modal-content {
    background: var(--surface, #fff);
}
#ty-redirect-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: #fff8ef;
}
#ty-redirect-btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-color: transparent;
    color: #fff;
}
.ty-icon-wrap {
    display: flex;
    justify-content: center;
}
.ty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    font-size: 2.4rem;
    animation: ty-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ty-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.ty-sub {
    font-size: .85rem;
    color: #888;
}
.ty-message {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}
.ty-timer {
    font-size: .78rem;
    color: #aaa;
    letter-spacing: .05em;
}
.ty-timer span {
    font-weight: 700;
    color: #7366ff;
}

/* ─── Light Theme Layer (Dark remains default) ───────────────────────────── */
body.light-theme {
    --bg: #f8f4ef;
    --bg-soft: #fffdf9;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-solid: #ffffff;
    --panel-light: rgba(103, 63, 38, 0.05);
    --primary: #b86a2b;
    --primary-light: #d48d4d;
    --primary-dark: #8d4e1e;
    --secondary: #7b6556;
    --accent: #8a4d1f;
    --success: #2f8a55;
    --danger: #c44939;
    --text: #2a2019;
    --text-muted: #6e5a4e;
    --line: rgba(98, 70, 52, 0.14);
    --shadow-lg: 0 20px 46px rgba(120, 80, 50, 0.14);
    --shadow-md: 0 12px 28px rgba(120, 80, 50, 0.12);
    background:
        radial-gradient(circle at top left, rgba(212, 141, 77, 0.24), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(255, 214, 165, 0.3), transparent 25%),
        linear-gradient(180deg, #fffaf3 0%, #f8f4ef 100%);
    color: var(--text);
}

body.light-theme .page-grid {
    background-image: linear-gradient(rgba(91, 62, 43, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 62, 43, 0.05) 1px, transparent 1px);
}

body.light-theme .orb-one {
    background: rgba(212, 141, 77, 0.22);
}

body.light-theme .orb-two {
    background: rgba(244, 201, 149, 0.24);
}

body.light-theme .header {
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.95) 0%, rgba(255, 249, 241, 0.88) 100%);
    border-bottom: 1px solid rgba(103, 72, 52, 0.1);
    box-shadow: 0 10px 30px rgba(140, 98, 62, 0.12);
}

body.light-theme .header .btn-outline-primary,
body.light-theme .lang-switch-btn,
body.light-theme .theme-switch-btn {
    border-color: rgba(103, 72, 52, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: 0 12px 22px rgba(128, 90, 58, 0.12);
}

body.light-theme .header .btn-outline-primary:hover,
body.light-theme .lang-switch-btn:hover,
body.light-theme .theme-switch-btn:hover {
    color: #fff8ef;
}

body.light-theme .hero-copy,
body.light-theme .hero-panel-card,
body.light-theme .menu-card,
body.light-theme .cart-section,
body.light-theme .checkout-form,
body.light-theme .modal-content,
body.light-theme #thankYouModal .modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 244, 0.98)) !important;
    border-color: rgba(103, 72, 52, 0.12) !important;
}

body.light-theme .hero-chip,
body.light-theme .hero-badge,
body.light-theme .category-btn,
body.light-theme .variation-tag,
body.light-theme .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.84) !important;
    border-color: rgba(103, 72, 52, 0.14) !important;
    color: var(--text-muted) !important;
}

body.light-theme .hero-panel-item strong,
body.light-theme .category-btn.active,
body.light-theme .btn-add,
body.light-theme .btn-add-popup,
body.light-theme .btn-checkout,
body.light-theme .btn-outline-success,
body.light-theme .btn-outline-success:hover,
body.light-theme .btn-check:checked + .btn-outline-success,
body.light-theme .btn-check:active + .btn-outline-success,
body.light-theme .btn-outline-secondary:hover,
body.light-theme .btn-check:checked + .btn-outline-secondary,
body.light-theme .btn-check:active + .btn-outline-secondary {
    color: #fff8ef !important;
}

body.light-theme .category-nav {
    background: rgba(255, 251, 246, 0.9);
    border-bottom: 1px solid rgba(103, 72, 52, 0.1);
    box-shadow: 0 10px 26px rgba(140, 98, 62, 0.12);
}

body.light-theme .cat-scroll-btn {
    background: rgba(103, 72, 52, 0.1);
    color: var(--text-muted);
}

body.light-theme .cat-scroll-btn:active {
    background: rgba(184, 106, 43, 0.2);
    color: var(--text);
}

body.light-theme .category-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    color: #fff8ef !important;
    border-color: transparent !important;
}

body.light-theme .table-select-btn {
    border-color: rgba(40, 148, 125, 0.35) !important;
}

body.light-theme .table-select-input:checked + .table-select-btn,
body.light-theme .table-select-input:active + .table-select-btn {
    color: #f3fffc !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #1f9e84, #2fb79a) !important;
    box-shadow: 0 12px 24px rgba(31, 158, 132, 0.24);
}

body.light-theme .order-type-dine-input:checked + .order-type-dine-btn,
body.light-theme .order-type-dine-input:active + .order-type-dine-btn {
    color: #f5fffb !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #188f71, #24ad8b) !important;
    box-shadow: 0 12px 24px rgba(24, 143, 113, 0.24);
}

body.light-theme .order-type-takeaway-input:checked + .order-type-takeaway-btn,
body.light-theme .order-type-takeaway-input:active + .order-type-takeaway-btn {
    color: #f5fffb !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #188f71, #24ad8b) !important;
    box-shadow: 0 12px 24px rgba(24, 143, 113, 0.24);
}

body.light-theme .category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff8ef !important;
    border-color: transparent !important;
    text-shadow: none;
}

body.light-theme .category-btn.active::after {
    color: #fff8ef;
}

body.light-theme .form-control,
body.light-theme .form-select {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-color: rgba(103, 72, 52, 0.12);
}

body.light-theme .form-control::placeholder,
body.light-theme textarea.form-control::placeholder {
    color: rgba(72, 52, 39, 0.45);
}

body.light-theme .text-muted,
body.light-theme .hero-panel-item span,
body.light-theme .hero-text,
body.light-theme .menu-card-desc,
body.light-theme .empty-state,
body.light-theme .ty-sub,
body.light-theme .ty-message,
body.light-theme .ty-timer {
    color: var(--text-muted) !important;
}

body.light-theme .price,
body.light-theme .text-success,
body.light-theme .addon-price,
body.light-theme .form-label,
body.light-theme .brand-kicker,
body.light-theme .hero-panel-label {
    color: var(--accent) !important;
    text-shadow: none;
}

body.light-theme .modal-title,
body.light-theme .small,
body.light-theme .cursor-pointer,
body.light-theme .addon-item span,
body.light-theme .header-brand,
body.light-theme .section-title,
body.light-theme .cart-title,
body.light-theme .menu-card-title,
body.light-theme .hero-title {
    color: var(--text) !important;
}

body.light-theme .btn-close {
    filter: none;
}
