/* ME Menuzy Menu Styles */

.me-menuzy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.radix-tabs {
    position: relative;
}

.tabs-menu {
    display: flex;
    background: #f3eee5;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    height: auto; /* Let it fit children */
}

.tab-highlight {
    position: absolute;
    top: 5px;
    left: 2px;
    width: 0;
    height: calc(100% - 10px);
    background: #ffffff;
    border-radius: 6px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    pointer-events: none;
}

.tab-trigger {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    padding-right: 15px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;           /* ← Override red border */
    background: transparent !important; /* ← Keep transparent */
    color: #4a5568 !important;         /* ← Override red text */
    /* font-size removed - controlled by Elementor */
    /* font-weight removed - controlled by Elementor */
    cursor: pointer;
    transition: color 0.3s ease;
    flex: 1;
    text-align: center;
    border-radius: 0 !important;       /* ← Reset border-radius from global */
}

.tab-trigger.active {
    color: #1a202c;
}

.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.menu-item-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 150px;
}

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

.menu-item-card.featured {
    border: 2px solid #fbbf24;
}

.menu-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    height: 100%;
}

.menu-item-image {
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.menu-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

    .menu-item-description {
        font-size: 14px;
        color: #4a5568;
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

.menu-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-left: 15px;
    line-height: 1.2;
}

.menu-item-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dietary-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 4px !important;
    border-radius: 2.5px !important;
    font-size: 8px !important;
    font-weight: 500;
}

/* Color-coded dietary tags - UK allergen list (muted tones) */
/* Allergens (proteins) - muted blue/aqua tones */
.dietary-tag.fish {
    background: #f1f5f9;
    color: #475569;
}

.dietary-tag.egg {
    background: #f8fafc;
    color: #64748b;
}

.dietary-tag.dairy {
    background: #f1f5f9;
    color: #475569;
}

.dietary-tag.crustation {
    background: #e2e8f0;
    color: #475569;
}

/* Allergens (plants) - muted yellow/orange tones */
.dietary-tag.celery {
    background: #fefce8;
    color: #a16207;
}

.dietary-tag.gluten {
    background: #fef3c7;
    color: #92400e;
}

.dietary-tag.lupin {
    background: #fef3c7;
    color: #a16207;
}

.dietary-tag.soya {
    background: #fef3c7;
    color: #92400e;
}

.dietary-tag.sesame {
    background: #fef3c7;
    color: #a16207;
}

/* Allergens (seafood) - muted cyan tone */
.dietary-tag.mollusc {
    background: #f0f9ff;
    color: #0f172a;
}

/* Allergens (spices) - muted yellow tone */
.dietary-tag.mustard {
    background: #fefce8;
    color: #a16207;
}

/* Allergens (tree/legumes) - muted purple tone */
.dietary-tag.nuts {
    background: #faf5ff;
    color: #6b21a8;
}

/* Allergens (preservatives) - muted purple tone */
.dietary-tag.sulphate {
    background: #faf5ff;
    color: #6b21a8;
}

/* Dietary preferences - muted green tones */
.dietary-tag.vegetarian {
    background: #f0fdf4;
    color: #166534;
}

.dietary-tag.vegan {
    background: #f0fdf4;
    color: #14532d;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .radix-tabs {
        display: flex;
        flex-direction: column;
    }
    
    .tabs-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        flex-direction: row !important;
        height: auto !important;
        background: #f3eee5 !important;
        border-radius: 10px !important;
        padding: 2px 5px 5px 5px !important;
        gap: 4px !important;
        margin-bottom: 20px !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .tab-trigger {
        width: auto !important;
        /* height removed - controlled by Elementor */
        /* padding removed - controlled by Elementor */
        border-radius: 6px !important;
        background: transparent !important;
        /* font-size removed - controlled by Elementor */
        /* font-weight removed - controlled by Elementor */
        text-align: center !important;
        transition: all 0.3s ease !important;
        color: #4a5568 !important;
        z-index: 2 !important;
        position: relative !important;
        margin: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .tab-trigger.active {
        color: #1a202c;
    }
    
    .tab-highlight {
        display: block;
        position: absolute;
        /* width and height controlled by JavaScript */
        border-radius: 6px;
        background: #ffffff;
        transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1;
        pointer-events: none;
        /* left and top controlled by JavaScript */
    }
    
    .tabs-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }
    
    .tab-panel {
        display: block;
        margin-top: 0;
        padding-top: 0;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-item-card {
        display: block;
        height: auto !important;
        overflow: hidden !important;
    }
    
    .menu-grid {
        display: grid !important;
        grid-template-columns: 150px 1fr !important;
        gap: 0 !important;
        height: auto !important;
    }
    
    .menu-item-image {
        height: 150px !important;
        border-radius: 12px 0 0 12px !important;
        width: 150px !important;
    }
    
    .menu-item-content {
        padding: 15px !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }
    
    .menu-item-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .menu-item-title {
        flex: 1 !important;
        margin: 0 !important;
    }
    
    .menu-item-price {
        margin-left: 0;
        font-size: 18px;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .me-menuzy-container {
        padding: 15px;
    }
}
