/* Back to Home Button */
.back-to-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(128, 0, 32, 0.15);
    border-radius: 50px;
    color: var(--primary-burgundy);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(128, 0, 32, 0.08);
}

.back-btn:hover {
    background: var(--primary-burgundy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(128, 0, 32, 0.2),
        0 6px 20px rgba(128, 0, 32, 0.15);
}

.back-btn:active {
    transform: translateY(0);
}

.back-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.back-text {
    white-space: nowrap;
}

/* Page Header */
.menu-header {
    background: transparent;
    padding: 140px 0 80px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(128, 0, 32, 0.1);
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
}

.menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url('menu.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: -1;
}



.menu-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.menu-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.1;
    position: relative;
    z-index: 3;
}

.menu-page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.menu-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.5;
    max-width: 700px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
    position: relative;
    z-index: 3;
}

/* Filter System - Modern Design */
.filter-system {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 100%;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 35px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 6px 20px rgba(128, 0, 32, 0.15);
    justify-content: center;
    align-items: center;
    max-width: 95vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    margin: 0 auto;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--primary-burgundy);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

/* Completely disable ::before pseudo-element for active state */
.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-burgundy);
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.filter-btn:hover::before {
    opacity: 1;
}

/* Completely disable ::before for active state */
.filter-btn.active::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.filter-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--white) !important;
}

.filter-btn.active {
    color: var(--white) !important;
}

.filter-btn:hover i {
    transform: scale(1.05);
}

.filter-btn.active i {
    transform: none;
}

/* Force active state styling */
.filter-btn.active {
    background: var(--primary-burgundy) !important;
    background-color: var(--primary-burgundy) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(128, 0, 32, 0.15) !important;
    transform: none !important;
}

/* Force inactive state styling */
.filter-btn:not(.active) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--primary-burgundy) !important;
}

/* Override any pseudo-element styling for inactive buttons */
.filter-btn:not(.active)::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
}

/* Menu Categories Section */
.menu-categories {
    padding: 40px 0 80px 0;
    background: var(--white);
    position: relative;
}

.menu-section {
    margin-bottom: 80px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 0;
}

/* Menu Item - Modern Card Design */
.menu-item {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(128, 0, 32, 0.08);
    position: relative;
    cursor: default;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.menu-item.featured {
    border: 2px solid var(--primary-gold);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(255, 215, 0, 0.1);
}

.menu-item.featured:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(255, 215, 0, 0.15);
}

/* Campaign Item Styling */
.menu-item.campaign {
    border: 2px solid var(--primary-gold);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(255, 215, 0, 0.1);
}

.menu-item.campaign:hover {
    border-color: var(--primary-gold);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(255, 215, 0, 0.15);
}

/* Menu Item Image */
.menu-item-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9) contrast(1.1) saturate(1.2);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1);
}

.menu-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(128, 0, 32, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 30%,
        transparent 50%,
        rgba(255, 215, 0, 0.05) 70%,
        rgba(128, 0, 32, 0.1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.menu-item:hover .menu-item-image::before {
    opacity: 0.8;
}

/* Campaign Badge - Elegant Design */
.campaign-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-gold);
    color: var(--dark-burgundy);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-gold);
    color: var(--dark-burgundy);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Menu Item Content */
.menu-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.menu-item-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.menu-description {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Price Styling */
.menu-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    margin-top: auto;
}

.old-price {
    text-decoration: line-through;
    color: var(--medium-gray);
    font-size: 1.3rem;
    font-weight: 500;
}

.new-price {
    color: var(--primary-burgundy);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hide/Show Menu Sections */
.menu-section.hidden {
    display: none !important;
}

.menu-item.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-page-title {
        font-size: 3rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
        justify-items: center;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-to-home {
        top: 20px;
        left: 20px;
    }
    
    .back-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }
    
    .back-text {
        display: none;
    }
    
    .back-btn i {
        font-size: 1.2rem;
    }
    
    .menu-header {
        padding: 120px 0 60px 0;
    }
    
    .menu-header-content {
        padding: 0 20px;
        gap: 2rem;
    }
    
    .menu-page-title {
        font-size: 3.2rem;
        line-height: 1.1;
    }
    
    .menu-page-subtitle {
        font-size: 1.2rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .filter-buttons {
        gap: 8px;
        padding: 8px;
        border-radius: 25px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        border: 2px solid rgba(255, 255, 255, 0.8);
        display: flex;
        max-width: 400px;
        margin: 0 auto;
        width: fit-content;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: normal;
        text-align: center;
        min-width: fit-content;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 50px;
        color: var(--primary-burgundy);
    }
    
    .filter-btn span {
        display: block;
        text-align: center;
        line-height: 1.2;
    }
    
    .filter-btn i {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        justify-items: center;
    }
}

@media (max-width: 480px) {
    .back-to-home {
        top: 15px;
        left: 15px;
    }
    
    .back-btn {
        width: 45px;
        height: 45px;
    }
    
    .back-btn i {
        font-size: 1.1rem;
    }
    
    .menu-header {
        padding: 100px 0 50px 0;
    }
    
    .menu-header-content {
        padding: 0 15px;
        gap: 1.5rem;
    }
    
    .menu-page-title {
        font-size: 2.6rem;
        line-height: 1.1;
    }
    
    .menu-page-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .filter-buttons {
        gap: 6px;
        padding: 6px;
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 350px;
        margin: 0 auto;
        width: fit-content;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 16px;
        min-height: 45px;
        gap: 3px;
        color: var(--primary-burgundy);
    }
    
    .filter-btn i {
        font-size: 0.9rem;
        margin-bottom: 1px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        justify-items: center;
    }
} 