:root {
    --gold: #FFD700;
    --pink: #FF69B4;
    --dark: #2c3e50;
    --light: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.menu-header {
    text-align: center;
    margin-bottom: 4rem;
}

.logo {
    max-width: 200px;
    height: auto;
}

.menu-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--pink);
    letter-spacing: 2px;
    font-weight: 500;
}

.category {
    margin-bottom: 4rem;
}

.category-header {
    border-left: 4px solid var(--gold);
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.category-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.category-description {
    color: #666;
    font-style: italic;
}

.subcategory {
    margin-bottom: 3rem;
}

.subcategory h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.menu-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-left: 4px solid var(--gold);
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    height: 100%;
    min-height: 200px;
}

.menu-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.menu-item.flipped .menu-item-inner {
    transform: rotateY(180deg);
}

.item-front, .item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.item-front {
    z-index: 2;
}

.item-back {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.item-back img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.default-image {
    width: 80%;
    height: 80%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.default-image::after {
    content: '🍽️';
    font-size: 2rem;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.menu-item.featured {
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0;
    color: var(--dark);
    flex-grow: 1;
    padding-right: 1rem;
}

.price {
    font-weight: 600;
    color: var(--dark);
    background: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1.1rem;
}

.item-description {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.badge {
    display: inline-block;
    background-color: var(--pink);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.featured-star {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--gold);
    font-size: 1.2rem;
    text-shadow: 0 0 3px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .menu-container {
        padding: 1rem;
    }

    .menu-header h1 {
        font-size: 2.5rem;
    }

    .category-header {
        padding-left: 1rem;
    }

    .category-header h2 {
        font-size: 2rem;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .price {
        margin-top: 0.5rem;
    }
}
