/* استایل‌های اصلی منوی کافه */
:root {
    --cafe-bg-color: #2a201c;
    --cafe-card-bg-color: rgba(0, 0, 0, 0.25);
    --cafe-text-primary: #e6d9c4;
    --cafe-text-secondary: #bfae9b;
    --cafe-accent-gold: #c09f6b;
    --cafe-font-body: 'Vazirmatn', sans-serif;
    --cafe-font-title: 'Lalezar', cursive;
}

/* Apply styles only when cafe menu is active */
body.has-cafe-menu {
    font-family: var(--cafe-font-body);
    color: var(--cafe-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(to right, #1a1412, var(--cafe-bg-color)) !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background-color: rgba(26, 20, 18, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(192, 159, 107, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.cafe-title {
    font-family: var(--cafe-font-title);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 400;
    color: var(--cafe-text-primary);
    letter-spacing: 2px;
    animation: slideInFromTop 1s ease-out;
    text-shadow: 0 0 15px rgba(230, 217, 196, 0.4);
}

.cafe-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--cafe-text-secondary);
    margin-top: 10px;
    animation: slideInFromTop 1.2s ease-out;
}

/* استایل دکمه باز کردن ویجت */
.ai-trigger-button {
    background-color: transparent;
    border: 1px solid var(--cafe-accent-gold);
    color: var(--cafe-accent-gold);
    padding: 10px 24px;
    border-radius: 25px;
    margin-top: 25px;
    cursor: pointer;
    font-family: var(--cafe-font-body);
    font-size: 1.15rem;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease-out;
}

.ai-trigger-button:hover {
    background-color: var(--cafe-accent-gold);
    color: var(--cafe-bg-color);
    box-shadow: 0 0 15px rgba(192, 159, 107, 0.5);
}

.menu-category {
    margin-bottom: 40px;
}

.category-title {
    font-family: var(--cafe-font-title);
    font-size: 2.5rem;
    color: var(--cafe-text-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.category-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--cafe-accent-gold);
    margin: 15px auto 0;
    opacity: 0.7;
    border-radius: 2px;
}

.menu-item {
    background-color: var(--cafe-card-bg-color);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
    min-height: 48px;
    border: 1px solid rgba(192, 159, 107, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

@media (hover: hover) {
    .menu-item:hover {
        transform: translateY(-6px);
        background-color: rgba(192, 159, 107, 0.1);
        border-color: rgba(192, 159, 107, 0.4);
    }
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.item-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--cafe-text-primary);
    min-width: 0;
}

.item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted rgba(192, 159, 107, 0.5);
    margin: 0 15px;
    position: relative;
    bottom: 4px;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--cafe-accent-gold);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.menu-item:hover .item-price {
    color: #fff;
    text-shadow: 0 0 8px var(--cafe-accent-gold);
}

.item-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--cafe-text-secondary);
    line-height: 1.6;
}

/* استایل‌های محصولات با تصویر */
.menu-item.with-image {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.item-image {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(192, 159, 107, 0.3);
    transition: all 0.3s ease;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item.with-image:hover .item-image {
    border-color: var(--cafe-accent-gold);
    box-shadow: 0 0 15px rgba(192, 159, 107, 0.4);
}

.menu-item.with-image:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    flex: 1;
    min-width: 0;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* رسپانسیو */
@media (max-width: 600px) {
    .menu-container {
        padding: 30px 15px;
        border: none;
    }

    .cafe-subtitle {
        font-size: 1rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .item-name {
        font-size: 1.2rem;
    }

    .item-price {
        font-size: 1.1rem;
    }

    /* تصاویر محصولات در موبایل */
    .menu-item.with-image {
        flex-direction: row;
        gap: 14px;
        padding: 15px 20px;
    }

    .item-image {
        width: 80px;
        height: 80px;
        margin: 0;
        border-radius: 10px;
    }
}