/* === MILANO'S EXACT WORKING DISHES CSS - NUCLEAR CLEAN VERSION === */

/* Dishes Section */
.dishes {
    padding: 0.25rem 0 3rem 0;
    position: relative;
    background-color: var(--secondary-color);
}

/* VISIBLE CSS ARROWS - NO CLICK FUNCTIONALITY */
.dishes::before {
    content: "‹";
    position: absolute !important;
    top: 50% !important;
    left: 8px !important;
    z-index: 99999 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #c41e3a !important;
    border: 2px solid #c41e3a !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

.dishes::after {
    content: "›";
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    z-index: 99999 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #c41e3a !important;
    border: 2px solid #c41e3a !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

/* INVISIBLE CLICKABLE AREAS OVER THE CSS ARROWS */
.dishes-arrow-left {
    position: absolute !important;
    top: 50% !important;
    left: 8px !important;
    z-index: 100000 !important;
    width: 44px !important;
    height: 44px !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    pointer-events: auto !important;
    /* Temporary debug - remove after testing */
    /* background: rgba(255, 0, 0, 0.3) !important; */
}

.dishes-arrow-right {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    z-index: 100000 !important;
    width: 44px !important;
    height: 44px !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    pointer-events: auto !important;
    /* Temporary debug - remove after testing */
    /* background: rgba(255, 0, 0, 0.3) !important; */
}

.dishes h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.dishes p.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Horizontal Scrolling Dishes */
.dishes-conveyor {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch; /* Ensures all cards have equal height */
}

.dishes-conveyor::-webkit-scrollbar {
    display: none;
}

.dishes .dish-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    position: relative !important;
    z-index: 1 !important;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dish-image {
    height: 200px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

.dishes .dish-content {
    padding: 1.5rem;
}

.dish-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.dishes .dish-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dish-order-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    width: 100%;
}

.dish-order-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.dishes-nav {
    display: none !important; /* HIDE THE BROKEN HTML ARROWS */
}

.arrow-btn {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    pointer-events: auto !important;
    transform: translateY(-50%) !important;
    backdrop-filter: blur(2px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important; /* CRITICAL: Use relative positioning */
    z-index: 10000 !important; /* ABOVE everything including parent nav */
}

/* EXPLICIT positioning for each arrow */
.arrow-btn.prev {
    left: 0 !important;
    margin-left: 8px !important;
}

.arrow-btn.next {
    right: 0 !important;
    margin-right: 8px !important;
}

.arrow-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
}

.arrow-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

/* CLEAN FLEXBOX SOLUTION - All dish cards equal height with aligned buttons */
.dishes-conveyor .dish-card {
    display: flex !important;
    flex-direction: column !important;
    /* Remove fixed height, let content determine it */
}

.dishes-conveyor .dish-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.dishes-conveyor .dish-content p {
    flex-grow: 1 !important;
    /* This pushes the button to the bottom */
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .dishes-conveyor .dish-card {
        min-width: 280px !important;
        max-width: 280px !important;
    }
    
    /* Mobile arrow positioning - FORCE OVERRIDE */
    .dishes-nav {
        padding: 0 0.5rem !important;
        z-index: 999 !important;
    }
    
    .arrow-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        border-width: 2px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        position: relative !important;
    }
    
    .arrow-btn.prev {
        margin-left: 4px !important;
    }
    
    .arrow-btn.next {
        margin-right: 4px !important;
    }
}
