/* --- Global Styling --- */
:root {
    --color-bg-cream: #F9F6E6;
    --color-text-brown: #7E4235;
    --color-text-green: #15803d;
    --color-accent-orange: #D9844A;
}

body {
    background-color: var(--color-bg-cream);
    font-family: 'Lato', sans-serif;
    color: var(--color-text-brown);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* --- Header --- */
.header-glass {
    background: rgba(249, 246, 230, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-accent-orange);
    white-space: nowrap; 
}

/* --- Background Image Optimization --- */
.hero-bg-custom {
    background-image: url('https://i.ibb.co/jkgVG2Pw/istockphoto-1389015478-612x612.jpg');
    background-size: cover;      
    background-position: center top; 
    background-repeat: no-repeat;
    position: relative;
    image-rendering: auto;       
}

.hero-bg-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Hide Scrollbar for Horizontal Tabs */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none; 
}

/* --- Mobile Specific Adjustments --- */
@media (max-width: 640px) {
    .mobile-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    .dish-card {
        padding: 0.25rem !important;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .dish-card img {
        height: 70px !important;
        border-radius: 6px;
    }
    
    .dish-card h4 {
        font-size: 0.7rem !important;
        line-height: 1.1;
        margin-top: 0.15rem;
        height: auto;
        min-height: 1.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dish-card span {
        display: block;
        font-size: 0.7rem;
        margin-left: 0 !important;
        margin-top: 2px;
    }
    
    .dish-card .desc-text, .dish-card .ingredients-text {
        display: none; 
    }

    .dish-card button {
        padding: 2px 4px !important;
        font-size: 0.65rem !important;
        width: 100%;
        margin-top: 4px;
    }

    /* Hide extra tags on mobile to save space */
    .dish-tags {
        display: none !important;
    }
    
    .footer-mobile-horizontal {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        text-align: center;
    }
    
    .footer-mobile-horizontal h4 {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
        border: none !important;
    }
    
    .footer-mobile-horizontal ul li a, 
    .footer-mobile-horizontal p, 
    .footer-mobile-horizontal a {
        font-size: 0.65rem !important;
    }
    
    .footer-mobile-horizontal .whatsapp-btn-footer {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }
}

/* --- Dish Cards --- */
.dish-card {
    background: white;
    border: 1px solid rgba(217, 132, 74, 0.3);
    border-radius: 16px;
    transition: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-bottom-right-radius: 8px;
    z-index: 10;
}

/* Tags */
.dish-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.tag-badge {
    font-size: 0.6rem;
    background: #F3EAD6;
    color: var(--color-text-brown);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Cook Time */
.cook-time {
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

/* Old Price */
.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.8em;
    margin-right: 4px;
}

/* --- Buttons --- */
.cta-btn {
    background-color: var(--color-accent-orange);
    color: #fff; 
    border: none;
    box-shadow: 0 4px 15px rgba(217, 132, 74, 0.4);
}

/* --- Modal Styling --- */
#cart-modal {
    z-index: 99999;
}

.close-modal-btn {
    background: white;
    color: var(--color-text-brown);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    border: 2px solid var(--color-text-brown);
}

/* --- Footer Links --- */
.footer-link:hover {
    color: var(--color-accent-orange) !important;
}

/* --- WhatsApp & Cart Colors --- */
#contact a[href*="wa.me"], #contact a[href*="api.whatsapp.com"] {
    background-color: #25D366 !important; 
    color: #ffffff !important; 
    border: 1px solid #25D366;
}

button[onclick="checkoutWhatsApp()"] {
    background-color: #25D366 !important; 
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    border: none !important;
    justify-content: center;
    align-items: center;
}

/* Floating Cart Button Specifics */
#floating-cart-btn {
    z-index: 9999 !important;
    transition: none !important; 
    transform: none !important;
}
