: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 */
.hero-section {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(241, 196, 15, 0.1));
    padding: 0;
    text-align: center;
    border-bottom: 2px solid rgba(230, 126, 34, 0.2);
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.carousel-item {
    width: 100% !important;
}

/* Video Cover Fix for both local and iframe */
.hero-section video,
.hero-section .video-wrapper,
.hero-section .video-background-container {
    width: 100%;
    height: 100%;
}

.hero-section video {
    object-fit: cover;
}

/* Iframe Cover Effect (YouTube) */
.video-background-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.video-background-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    .video-background-container iframe {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background-container iframe {
        width: 177.77vh;
    }
}

.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: 0; /* Changed to 0 as padding is now handled by p-3 class in HTML */
    margin-bottom: 10px;
    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(-5px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.15);
}

/* Horizontal Row Type Cards */
.horizontal-card {
    height: 180px;
    display: flex;
}

.horizontal-card .price-tag {
    color: var(--primary-dark);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .horizontal-card {
        height: auto;
        min-height: 140px;
    }
    .horizontal-card .curry-title {
        font-size: 1rem !important;
    }
    .add-to-cart-form input[name="instructions"] {
        font-size: 0.7rem !important;
    }
}

.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.25rem;
    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;
    scrollbar-width: none;
    /* Firefox */
    display: flex;
    justify-content: flex-start;
    padding: 10px 5px;
}

@media (min-width: 769px) {
    .category-filter-container {
        justify-content: center;
    }
}

.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 Banner Fix: Shrinking content allows the container to be shorter and the image wider */
    .hero-section {
        padding: 30px 0;
    }

    .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;
        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;
    }

    /* Fix search bar and category pills on small screens */
    #curries-menu .input-group {
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    .category-pill {
        padding: 6px 15px !important;
        font-size: 0.85rem !important;
        margin-right: 8px !important;
    }
}