/* ========= Fortune Cookies - Main Stylesheet ========= */
/* Modern Oriental Theme */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Noto+Serif+SC:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Root Variables --- */
:root {
    --fc-red: #C41E3A;
    --fc-red-dark: #8B0000;
    --fc-red-light: #E8394D;
    --fc-gold: #C9A94E;
    --fc-gold-light: #E5D5A0;
    --fc-gold-dark: #A68A2E;
    --fc-dark: #1A1110;
    --fc-dark-warm: #2D1F1F;
    --fc-cream: #FDF8F0;
    --fc-cream-dark: #F5ECDC;
    --fc-ink: #3D2B2B;
    --fc-text: #2D2222;
    --fc-text-muted: #7A6B6B;
    --fc-border: rgba(201, 169, 78, 0.2);
}

/* --- Global Styles --- */
html, body {
    overflow-x: clip;
    max-width: 100vw;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    color: var(--fc-text);
    background: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', 'Open Sans', sans-serif;
    letter-spacing: 0.01em;
}

.section-title {
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    color: var(--fc-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--fc-red), var(--fc-gold));
    margin: 12px auto 0;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--fc-gold-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--fc-text-muted);
    font-size: 1.05rem;
    margin-top: 10px;
}

/* --- Oriental Divider --- */
.oriental-divider {
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.oriental-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fc-gold), transparent);
}

.oriental-divider-diamond {
    display: inline-block;
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 15px;
    color: var(--fc-gold);
    font-size: 0.6rem;
}

/* --- Top Info Bar --- */
.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1090;
    background: var(--fc-dark);
    border-bottom: none;
    padding: 6px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.top-info-item {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.top-info-phone {
    color: var(--fc-gold) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-info-phone:hover {
    color: var(--fc-gold-light) !important;
}

.top-info-item i {
    color: var(--fc-red);
    font-size: 0.75rem;
}

@media (max-width: 575px) {
    .top-info-bar {
        font-size: 0.68rem;
        padding: 3px 0;
    }
    .top-info-left {
        display: none;
    }
    .top-info-right {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #mainNav {
        padding: 4px 0;
    }
    .navbar-brand .brand-logo {
        max-height: 28px;
    }
    .navbar-brand .brand-name {
        font-size: 1.1rem !important;
    }
    #mainNav .nav-link {
        padding: 5px 12px;
        font-size: 0.82rem;
    }
    .cart-count {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    /* Compact search results on mobile */
    .menu-header-bar {
        display: none !important;
    }

    /* Prevent iOS auto-zoom on input focus */
    .sticky-search-bar .input-group .form-control {
        font-size: 16px !important;
    }

    /* Smaller category headers on mobile */
    .category-title {
        font-size: 1rem;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
    .sticky-category-header {
        padding-top: 6px;
        margin-top: -6px;
    }

    /* Remove gap between navbar and sticky search bar */
    .sticky-search-bar {
        padding: 4px 0 6px;
        margin-bottom: 4px;
        box-shadow: 0 -20px 0 0 var(--fc-cream, #FDF8F0);
    }
    .menu-page {
        padding-top: var(--navbar-bottom, 80px) !important;
    }

    body.mobile-searching .menu-category .category-title {
        display: none !important;
    }
    body.mobile-searching .menu-category {
        margin-bottom: 0 !important;
    }
    body.mobile-searching .menu-category .row {
        gap: 0 !important;
    }
    .compact-search-result {
        padding: 0 !important;
        margin-bottom: 1px !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .compact-search-result .menu-item-card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .compact-search-result .menu-item-card .card-body {
        padding: 5px 8px !important;
    }
    .compact-search-result .menu-item-card .card-body > .flex-grow-1 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
    }
    .compact-search-result .menu-item-card .card-body > .flex-grow-1 > .d-flex.justify-content-between {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        align-items: center !important;
        margin-right: 6px !important;
    }
    .compact-search-result .menu-item-card .card-body > .flex-grow-1 > .d-flex.justify-content-between > div {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
    }
    .compact-search-result .menu-item-card .item-name {
        font-size: 0.82rem !important;
    }
    .compact-search-result .menu-item-card .item-number {
        font-size: 0.78rem !important;
    }
    .compact-search-result .menu-item-card .price-tag {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        margin-left: 4px !important;
        flex-shrink: 0 !important;
    }
    .compact-search-result .menu-item-card .menu-icons {
        display: none !important;
    }
    .compact-search-result .menu-item-card .text-muted.small {
        display: none !important;
    }
    .compact-search-result .menu-item-card .menu-item-img {
        display: none !important;
    }
    .compact-search-result .menu-item-card .d-flex.align-items-center.gap-2.mt-auto {
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }
    .compact-search-result .btn-add-to-cart {
        padding: 2px 8px !important;
        font-size: 0.75rem !important;
    }
    .compact-search-result .btn-add-to-cart .fas.fa-plus {
        margin-right: 0 !important;
    }
}

/* --- Navigation --- */
#mainNav {
    background: rgba(26, 17, 16, 1);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-bottom: none;
}

/* Extend navbar background upward to cover any gap between info bar and navbar */
#mainNav::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: inherit;
}

#mainNav.scrolled {
    background: rgba(26, 17, 16, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .brand-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-brand .brand-name {
    /* Defaults - overridden by dynamic <style> from settings */
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fc-gold) !important;
    letter-spacing: 1px;
}

/* Hero logo */
.hero-logo img {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
    animation: fadeInUp 0.8s ease-out 0.05s both;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#mainNav .nav-link:hover {
    color: var(--fc-gold) !important;
}

.cart-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    position: relative;
    top: -2px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--fc-dark) 0%, var(--fc-dark-warm) 40%, #3A1C1C 70%, var(--fc-red-dark) 100%);
    overflow: hidden;
    padding-top: var(--navbar-bottom, 80px);
    padding-bottom: 100px;
}

/* Decorative Chinese clouds */
.hero-clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cloud {
    position: absolute;
    color: rgba(201, 169, 78, 0.06);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.cloud-1 {
    width: 300px;
    top: 8%;
    right: -50px;
    animation: cloudFloat1 30s infinite;
}

.cloud-2 {
    width: 220px;
    bottom: 15%;
    left: -30px;
    animation: cloudFloat2 25s infinite;
}

.cloud-3 {
    width: 180px;
    top: 45%;
    left: 20%;
    animation: cloudFloat3 35s infinite;
}

@keyframes cloudFloat1 {
    0%, 100% { transform: translateX(0); opacity: 0.4; }
    50% { transform: translateX(-30px); opacity: 0.7; }
}

@keyframes cloudFloat2 {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(25px); opacity: 0.6; }
}

@keyframes cloudFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    50% { transform: translate(20px, -10px); opacity: 0.5; }
}

/* Decorative lanterns */
.hero-lanterns {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.lantern {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lantern-1 {
    top: 80px;
    right: 12%;
    animation: lanternSway 4s ease-in-out infinite;
    transform-origin: top center;
}

.lantern-2 {
    top: 80px;
    right: 8%;
    animation: lanternSway 5s ease-in-out infinite 0.5s;
    transform-origin: top center;
}

.lantern-string {
    width: 2px;
    height: 40px;
    background: var(--fc-gold-dark);
    opacity: 0.5;
}

.lantern-body {
    width: 40px;
    height: 55px;
    background: radial-gradient(ellipse, #E8394D, var(--fc-red), var(--fc-red-dark));
    border-radius: 50% / 40%;
    position: relative;
    box-shadow: 0 0 30px rgba(232, 57, 77, 0.4), 0 0 60px rgba(232, 57, 77, 0.15);
    border-top: 3px solid var(--fc-gold);
    border-bottom: 3px solid var(--fc-gold);
}

.lantern-2 .lantern-body {
    width: 32px;
    height: 44px;
}

.lantern-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(232, 57, 77, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.lantern-tassel {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--fc-gold), var(--fc-gold-dark));
    position: relative;
}

.lantern-tassel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--fc-gold);
    border-radius: 50%;
}

@keyframes lanternSway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* --- Theme decorative containers (hidden by default, shown by theme CSS) --- */
.hero-spices { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-british { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-kebab { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle Chinese lattice pattern overlay */
    background-image: 
        repeating-linear-gradient(0deg, transparent 0px, transparent 58px, rgba(201, 169, 78, 0.03) 58px, rgba(201, 169, 78, 0.03) 60px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 58px, rgba(201, 169, 78, 0.03) 58px, rgba(201, 169, 78, 0.03) 60px);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-chinese-char {
    font-family: 'Noto Serif SC', serif;
    font-size: 6rem;
    color: rgba(201, 169, 78, 0.08);
    line-height: 1;
    margin-bottom: -20px;
    animation: fadeInDown 1s ease-out;
    user-select: none;
}

.hero-badge {
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge-inner {
    display: inline-block;
    border: 1px solid rgba(201, 169, 78, 0.4);
    color: var(--fc-gold);
    padding: 8px 24px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 3px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-divider-line {
    display: inline-block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fc-gold), transparent);
}

.hero-divider-icon {
    color: var(--fc-gold);
    font-size: 0.5rem;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--fc-gold-light);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.5rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--fc-red) 0%, var(--fc-red-dark) 100%);
    border: 1px solid rgba(201, 169, 78, 0.3);
    color: #fff;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--fc-red-light) 0%, var(--fc-red) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
    border-color: var(--fc-gold);
}

.btn-hero-outline {
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 0;
    border: 1px solid rgba(201, 169, 78, 0.4);
    color: var(--fc-gold-light);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.btn-hero-outline:hover {
    background: rgba(201, 169, 78, 0.1);
    border-color: var(--fc-gold);
    color: var(--fc-gold);
    transform: translateY(-2px);
}

/* Hero wave bottom */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 4;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Quick Info Section --- */
.quick-info {
    background: #fff;
    position: relative;
}

.info-card {
    padding: 35px 20px 30px;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: 0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fc-red), var(--fc-gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
}

.info-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--fc-dark);
}

.info-card p {
    color: var(--fc-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* --- Oriental Button --- */
.btn-oriental {
    background: linear-gradient(135deg, var(--fc-red) 0%, var(--fc-red-dark) 100%);
    border: 1px solid rgba(201, 169, 78, 0.3);
    color: #fff;
    padding: 12px 36px;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.btn-oriental:hover {
    background: linear-gradient(135deg, var(--fc-red-light) 0%, var(--fc-red) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
    border-color: var(--fc-gold);
}

/* --- Popular Dishes / Dish Cards --- */
.popular-section {
    background: var(--fc-cream);
}

.dish-card {
    background: #fff;
    border: 1px solid var(--fc-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.dish-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.dish-card-img {
    height: 200px;
    overflow: hidden;
}

.dish-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dish-card:hover .dish-card-img img {
    transform: scale(1.05);
}

.dish-card-placeholder {
    background: linear-gradient(135deg, var(--fc-red-dark), var(--fc-red), var(--fc-gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

.dish-card-body {
    padding: 20px;
}

.dish-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fc-dark);
    margin-bottom: 4px;
}

.dish-price {
    background: var(--fc-red);
    color: #fff;
    padding: 3px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.dish-card-desc {
    color: var(--fc-text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
    margin-top: 6px;
}

.dish-card-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--fc-red), var(--fc-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dish-card:hover .dish-card-accent {
    opacity: 1;
}

/* --- About Section --- */
.about-section {
    background: #fff;
}

.about-section .lead-text {
    font-size: 1.2rem;
    color: var(--fc-ink);
    font-weight: 500;
    line-height: 1.6;
}

.about-section p {
    color: var(--fc-text-muted);
    line-height: 1.8;
}

.about-offers {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-offer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), rgba(201, 169, 78, 0.05));
    border-left: 3px solid var(--fc-red);
}

.about-offer-item i {
    color: var(--fc-red);
    font-size: 1rem;
}

.about-offer-item span {
    font-size: 0.92rem;
    color: var(--fc-dark);
}

/* About Visual - Oriental art panel */
.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual-bg {
    position: absolute;
    inset: 20px;
    border: 2px solid var(--fc-border);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.03), rgba(201, 169, 78, 0.06));
}

.about-visual-bg::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 169, 78, 0.15);
}

.about-visual-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.about-chinese-char {
    font-family: 'Noto Serif SC', serif;
    font-size: 8rem;
    color: var(--fc-red);
    opacity: 0.12;
    line-height: 1;
    user-select: none;
}

.about-visual-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--fc-gold-dark);
    letter-spacing: 3px;
    margin-top: -10px;
}

/* --- Find Us Section --- */
.find-us-section {
    background: var(--fc-cream);
}

.find-us-section .map-container {
    border: 2px solid var(--fc-border);
    overflow: hidden;
    height: 100%;
}

.find-us-details {
    background: #fff;
    border: 1px solid var(--fc-border);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.find-us-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.find-us-item:last-of-type {
    margin-bottom: 20px;
}

.find-us-details .find-us-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(196, 30, 58, 0.2);
}

.find-us-details h5 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--fc-dark);
}

.find-us-details p {
    color: var(--fc-text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.find-us-details a:not(.btn) {
    color: var(--fc-red);
    text-decoration: none;
    transition: color 0.2s;
}

.find-us-details a:not(.btn):hover {
    color: var(--fc-red-dark);
}

/* --- Menu Icon Tooltips --- */
.menu-icon {
    cursor: pointer;
    position: relative;
}

.tooltip.show {
    opacity: 1 !important;
}

.tooltip .tooltip-inner {
    background: var(--fc-dark, #1a1a2e);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.tooltip .tooltip-arrow::before {
    border-top-color: var(--fc-dark, #1a1a2e) !important;
}

/* --- Menu Page --- */

.sticky-search-bar {
    position: sticky;
    top: var(--navbar-bottom, 115px);
    z-index: 30;
    background: var(--fc-cream, #FDF8F0);
    padding: 10px 0 12px;
    margin-bottom: 8px;
    /* Extend background upward to cover any gap below navbar */
    box-shadow: 0 -10px 0 0 var(--fc-cream, #FDF8F0);
}

.sticky-search-bar .input-group {
    align-items: stretch;
}

.sticky-search-bar .input-group .form-control,
.sticky-search-bar .input-group .input-group-text,
.sticky-search-bar .input-group .btn {
    height: auto;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.85rem;
}

.category-dropdown-btn {
    border-radius: 6px 0 0 6px !important;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    border-color: #dee2e6;
    background: #fff;
    color: var(--fc-dark);
}

.category-dropdown-btn:hover,
.category-dropdown-btn:focus {
    background: var(--fc-red);
    border-color: var(--fc-red);
    color: #fff;
}

.category-dropdown-btn.show {
    background: var(--fc-red);
    border-color: var(--fc-red);
    color: #fff;
}

.category-dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 6px 0;
}

.category-dropdown-menu .dropdown-item {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
}

.category-dropdown-menu .dropdown-item:hover {
    background: var(--fc-red);
    color: #fff;
}

.category-dropdown-menu .dropdown-item.active-cat {
    background: rgba(233, 69, 96, 0.1);
    color: var(--fc-red);
    font-weight: 700;
}

.category-title {
    font-weight: 700;
    color: var(--fc-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fc-red);
    margin-bottom: 20px;
}

.sticky-category-header {
    position: sticky;
    top: var(--sticky-category-top, 185px);
    background: var(--fc-cream, #FDF8F0);
    z-index: 20;
    padding-top: 12px;
    margin-top: -12px;
}

.menu-item-card {
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.2s;
}

.menu-item-card:hover {
    border-color: var(--fc-red);
    box-shadow: 0 3px 15px rgba(233, 69, 96, 0.1);
}

.menu-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-number {
    color: var(--fc-red);
    font-weight: 700;
    margin-right: 4px;
}

/* Menu dietary / allergen / spice icons */
.menu-icons { white-space: nowrap; }
.menu-icon {
    font-size: 0.85rem;
    cursor: default;
    vertical-align: middle;
}
.menu-icon-legend {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fafafa;
}

/* Allergen badge */
.allergen-badge {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff3cd;
    border: 1px solid #ffc107;
    vertical-align: middle;
}

/* Search bar */
#menuSearch:focus {
    box-shadow: none;
    border-color: var(--fc-red);
}
#menuSearch::placeholder {
    color: #aaa;
}
#clearSearch {
    border-color: #dee2e6;
}

.price-tag {
    color: var(--fc-red);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.btn-add-to-cart {
    background: var(--fc-red);
    border-color: var(--fc-red);
    font-size: 0.85rem;
    padding: 4px 14px;
}

.btn-add-to-cart:hover {
    background: var(--fc-red-dark);
    border-color: var(--fc-red-dark);
}

/* --- Cart Summary Sidebar --- */
.cart-summary {
    border: 2px solid #eee;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-shrink: 1;
    overflow: hidden;
}

.cart-summary-header:hover {
    opacity: 0.8;
}

#cartExpandedSection {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

#cartExpandedSection.collapsed {
    display: none;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary-item:last-child {
    border-bottom: none;
}

.cart-item-remove {
    color: var(--fc-red);
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-item-remove:hover {
    color: var(--fc-red-dark);
}

/* Mobile floating basket button */
.mobile-basket-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--fc-red);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1050;
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-basket-btn:hover {
    transform: scale(1.1);
}

.mobile-basket-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fc-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile cart items in offcanvas */
.mobile-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-cart-item:last-child {
    border-bottom: none;
}

/* --- Checkout Page --- */
.order-type-card {
    cursor: pointer;
    transition: all 0.2s;
}

.order-type-card:hover {
    border-color: var(--fc-red) !important;
}

.order-type-card .form-check-input:checked ~ .form-check-label {
    color: var(--fc-red);
}

.order-type-card:has(.form-check-input:checked) {
    border-color: var(--fc-red) !important;
    background: rgba(233, 69, 96, 0.05);
}

/* --- Checkout Cart Items --- */
.checkout-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-cart-item:last-child {
    border-bottom: none;
}

.checkout-item-addons {
    font-size: 0.8rem;
    color: var(--fc-text-muted);
}

.checkout-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--fc-red);
    border-color: var(--fc-red);
    color: #fff;
}

/* --- Confirmation Page --- */
.confirmation-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Footer --- */
.site-footer {
    background: var(--fc-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
    margin-top: 0;
    border-top: 3px solid var(--fc-red);
}

.site-footer h5 {
    color: var(--fc-gold);
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.site-footer hr {
    border-color: rgba(201, 169, 78, 0.15);
}

/* --- Primary Button Override --- */
.btn-primary {
    background-color: var(--fc-red);
    border-color: var(--fc-red);
    border-radius: 0;
}

.btn-primary:hover {
    background-color: var(--fc-red-dark);
    border-color: var(--fc-red-dark);
}

.btn-outline-primary {
    border-color: var(--fc-red);
    color: var(--fc-red);
    border-radius: 0;
}

.btn-outline-primary:hover {
    background-color: var(--fc-red);
    border-color: var(--fc-red);
    color: #fff;
}

/* --- Floating Basket --- */
.floating-basket {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
}

.floating-basket-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid rgba(201, 169, 78, 0.3);
}

.floating-basket-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(196, 30, 58, 0.5);
    border-color: var(--fc-gold);
}

.floating-basket-btn.active {
    background: linear-gradient(135deg, var(--fc-red-dark), #5a0010);
    border-color: var(--fc-gold);
}

.floating-basket-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fc-gold);
    color: var(--fc-dark);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Basket panel (slides up from the button) */
.floating-basket-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    background: #fff;
    border: 1px solid var(--fc-border);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s ease;
    transform-origin: bottom right;
}

.floating-basket-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-basket-header {
    padding: 14px 16px;
    background: var(--fc-dark);
    color: var(--fc-gold);
    border-bottom: 2px solid var(--fc-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-basket-header h6 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.floating-basket-close {
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.85rem;
}

.floating-basket-close:hover {
    color: #fff;
}

.floating-basket-body {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fc-red) transparent;
}

.floating-basket-body::-webkit-scrollbar {
    width: 4px;
}

.floating-basket-body::-webkit-scrollbar-thumb {
    background: var(--fc-red);
    border-radius: 2px;
}

.floating-basket-footer {
    padding: 14px 16px;
    border-top: 2px solid var(--fc-red);
    background: var(--fc-cream);
}

.floating-basket-footer strong {
    font-size: 0.95rem;
}

/* Basket panel items */
.fb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.fb-item:hover {
    background: var(--fc-cream);
}

.fb-item:last-child {
    border-bottom: none;
}

.fb-item-free {
    background: #f8fff8;
    border-left: 3px solid #28a745;
}

.fb-item-info {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.fb-item-qty {
    font-weight: 700;
    color: var(--fc-red);
    flex-shrink: 0;
    min-width: 24px;
}

.fb-item-name {
    font-weight: 600;
    color: var(--fc-dark);
    line-height: 1.3;
    word-break: break-word;
}

.fb-item-detail {
    font-size: 0.78rem;
    color: var(--fc-text-muted);
    line-height: 1.3;
}

.fb-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 10px;
}

.fb-item-price {
    font-weight: 700;
    color: var(--fc-dark);
    font-size: 0.85rem;
    white-space: nowrap;
}

.fb-item-remove {
    color: #bbb;
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.2s;
    padding: 2px;
}

.fb-item-remove:hover {
    color: var(--fc-red);
}

@media (max-width: 575px) {
    .floating-basket {
        bottom: 16px;
        right: 16px;
    }

    .floating-basket-panel {
        width: calc(100vw - 32px);
        right: 0;
    }

    .floating-basket-btn {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.cart-toast {
    background: var(--fc-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-chinese-char {
        font-size: 4rem;
    }

    .hero-lanterns {
        display: none;
    }

    .sticky-search-bar {
        top: var(--navbar-bottom, 80px);
    }

    .sticky-category-header {
        top: var(--sticky-category-top, 150px);
    }

    .cart-summary {
        display: none;
    }

    .mobile-basket-btn.has-items {
        display: flex !important;
    }

    .about-visual {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-chinese-char {
        font-size: 3rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 12px 24px;
        font-size: 0.82rem;
    }

    .menu-item-img {
        width: 60px;
        height: 60px;
    }

    .about-visual {
        height: 220px;
    }

    .about-chinese-char {
        font-size: 5rem;
    }
}

/* --- Add-On Modal --- */
#addOnModal .form-check-label {
    cursor: pointer;
    padding-right: 10px;
}

#addOnModal .form-check {
    padding: 8px 8px 8px 35px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
}

#addOnModal .form-check:hover {
    border-color: var(--fc-red);
    background: rgba(233, 69, 96, 0.03);
}

#addOnModal .form-check-input:checked ~ .form-check-label {
    font-weight: 600;
}

/* ===== Set Meal Dish Picker Modal ===== */
#setMealModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.set-meal-selections-bar {
    flex-shrink: 0;
    z-index: 2;
}

.set-meal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fc-red);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    animation: chipIn 0.2s ease;
}

@keyframes chipIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.set-meal-chip-remove {
    cursor: pointer;
    opacity: 0.8;
    font-size: 0.75rem;
}

.set-meal-chip-remove:hover {
    opacity: 1;
}

.set-meal-dish-list {
    padding: 0;
}

.set-meal-cat-header {
    background: #f0f0f0;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--fc-dark);
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #ddd;
}

.set-meal-dish-row {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    user-select: none;
}

.set-meal-dish-row:hover {
    background: #fef5f5;
}

.set-meal-dish-row.selected {
    background: #fdeaea;
}

.set-meal-dish-number {
    font-weight: 700;
    color: var(--fc-red);
    min-width: 36px;
    display: inline-block;
}

.set-meal-dish-name {
    font-size: 0.92rem;
}

.set-meal-dish-check {
    font-size: 1.1rem;
    color: #bbb;
}

.set-meal-dish-row.selected .set-meal-dish-check {
    color: var(--fc-red);
}

#setMealCounter {
    transition: transform 0.2s;
}

#setMealCounter.pulse-warn {
    animation: pulseWarn 0.4s ease;
}

@keyframes pulseWarn {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); background: #dc3545; }
    100% { transform: scale(1); }
}

/* Checkout set meal choices display */
.checkout-item-choices {
    font-size: 0.82rem;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}

/* Checkout item comment display */
.checkout-item-comment {
    font-size: 0.82rem;
    color: #666;
    font-style: italic;
    margin-top: 2px;
    line-height: 1.4;
    cursor: default;
}
