:root {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --secondary-color: #27ae60;
    --bg-color: #faf8f5;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --accent-gold: #f1c40f;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Premium Navbar */
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary-dark);
    color: white;
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Hero Section — height is dynamically set per-banner via JavaScript (setProperty with !important).
   The 500px here is only a fallback if no banners are active. JS always overrides this. */
.hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px; /* JS overrides this per banner */
    transition: height 0.4s ease; /* smooth height change between slides */
    border-bottom: 2px solid rgba(230, 126, 34, 0.2);
}

.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.badge-premium {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3);
}

/* Glassmorphism Cards */
.menu-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.15);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-custom:hover {
    transform: scale(1.05);
    color: white;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Tummy Friendly Section Specific */
.tummy-section {
    background-color: white;
    padding: 80px 0;
    border-top: 1px solid #eaeaea;
}

.curry-checkbox {
    display: none;
}

.curry-label {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-light);
}

.curry-checkbox:checked+.curry-label {
    border-color: var(--secondary-color);
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

/* Mobile App-like Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    /* Stronger shadow */
    display: flex;
    justify-content: space-evenly;
    /* Better spacing */
    align-items: stretch;
    /* Let items fill height */
    padding: 0;
    /* Remove padding, let items handle it */
    height: 70px;
    z-index: 1050;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    height: 100%;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* Highlight the cart button in the center */
.mobile-nav-cart {
    position: relative;
    top: -25px;
    /* Push up more */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    /* Ensure it's explicitly flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
    border: 5px solid #f8f9fa;
    /* Match mobile body bg */
    margin: 0 10px;
    /* Give it space */
    flex: 0 0 auto;
    /* Don't grow/shrink */
}

.mobile-nav-cart i.cart-icon {
    font-size: 1.6rem;
    margin-bottom: 0;
    margin-right: 0;
    /* Override any desktop margins */
    display: flex;
    /* Center badge */
    align-items: center;
    justify-content: center;
}

.mobile-nav-cart span:not(.cart-badge) {
    display: none;
    /* Hide 'Cart' text */
}

.mobile-nav-cart .cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: white;
    color: var(--primary-dark);
}

/* Category Filter Pills */
.category-filter-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.category-filter-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-pill {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-pill:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.category-pill.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
        background-color: #f8f9fa;
    }

    .hide-on-mobile {
        display: none !important;
    }

    /* Mobile: Cap hero at sensible height */
    .hero-section {
        height: 55vw !important;
        min-height: 200px !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-section .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }

    /* Make the carousel item enforce a cap so it doesn't try to grow too square */
    .carousel-item {
        max-height: 55vh;
    }

    /* Fit 2 items per row nicely on mobile without shrinking the image too much */
    .curry-card-wrapper {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .menu-card {
        padding: 0 !important;
        /* Remove outer padding to save space */
        border-radius: 12px !important;
    }

    .menu-card img,
    .menu-card .bg-light {
        height: 125px !important;
        /* Keep image reasonably large */
        border-radius: 12px 12px 0 0 !important;
    }

    .menu-card .p-4 {
        padding: 10px !important;
        /* Decrease the 1.5rem padding to 10px */
    }

    .menu-card .curry-title {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2;
    }

    .menu-card .curry-type {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        display: inline-block;
        margin-top: 3px;
    }

    .menu-card .curry-desc {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
        /* Line truncation to save vertical space on long descriptions */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .menu-card .price-tag {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }

    .add-to-cart-form {
        margin-bottom: 0 !important;
    }

    .add-to-cart-form .mb-3 {
        margin-bottom: 5px !important;
    }

    .add-to-cart-form input[name="instructions"] {
        font-size: 0.75rem;
        padding: 4px 6px;
        width: 100%;
        height: 28px !important;
        /* Fix excessive height issue from user screenshot */
        min-height: 28px !important;
        margin-bottom: 5px !important;
    }

    .add-to-cart-form .d-flex {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 5px !important;
    }

    .add-to-cart-form .form-label {
        font-size: 0.75rem;
        margin-right: 5px !important;
    }

    .add-to-cart-form input[type="number"] {
        height: 28px !important;
        padding: 0 5px;
        font-size: 0.8rem;
        flex: 1;
        max-width: 60px;
    }

    .add-to-cart-form button {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }

    /* Fix bad flex wrapping on the title/badge row */
    .menu-card .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 4px !important;
    }
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
    border-top: 3px solid var(--primary-color);
}

.footer-brand {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-heading {
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

/* Clickable contact rows */
.footer-contact-link {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color 0.25s ease, transform 0.2s ease;
    border-radius: 6px;
    padding: 3px 6px 3px 0;
}

.footer-contact-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Animated icon circle */
.footer-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(230,126,34,0.18);
    color: var(--primary-color);
    font-size: 0.85rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer-contact-link:hover .footer-icon-wrap {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.15) rotate(-8deg);
}

/* Phone number chips — side by side */
.footer-phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    padding: 5px 12px 5px 6px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.2s ease, border-color 0.22s ease;
    white-space: nowrap;
}

.footer-phone-chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(230,126,34,0.22);
    color: var(--primary-color);
    font-size: 0.75rem;
    transition: background 0.22s ease, color 0.22s ease;
}

.footer-phone-chip:hover .footer-chip-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* "Primary" badge next to main number */
.footer-primary-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(230,126,34,0.2);
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Thin separator line */
.footer-divider {
    border-color: rgba(255,255,255,0.1);
}