/**
 * Stili per il menu laterale con sliding effect
 */

/* Pannello del menu */
.menu-panel {
    position: fixed;
    top: 0;
    left: -360px;
    width: 350px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease-in-out;
    overflow: hidden;
}

/* Versione fullscreen del menu */
.menu-panel.fullscreen {
    width: 100%;
    left: -100%;
}

.menu-panel.open {
    left: 0;
}

/* Blocca lo scrolling della pagina quando il menu Ã¨ aperto */
body.menu-open {
    overflow: hidden;
}

/* Nascondi il vecchio pannello filtri su mobile quando il menu Ã¨ aperto */
@media (max-width: 768px) {
    body.menu-open .filter-panel {
        /* display: none; */
        padding-right: 10px;
    }
}

/* Header del menu */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #ca674e; /* Stesso colore dell'header */
    color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.menu-header h2, .cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Area di ricerca */
.menu-search {
    padding: 15px 15px 5px 15px;
    border-bottom: 0;
}

.menu-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Area selettore categorie */
.menu-categories-container {
    padding: 5px 15px 15px 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Stili specifici per il selettore di categorie nel menu */
.menu-panel .select2-container {
    width: 100% !important;
}

.menu-panel .select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 38px;
}

.menu-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 10px;
    color: #333;
}

.menu-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Contenuto del menu */
.menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Stili per le categorie */
.menu-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: #f8f8f8;
}

.category-item.active {
    background-color: #f0f0f0;
}

.category-item.promo {
    color: #e74c3c;
    font-weight: bold;
}

.subcategory-item {
    padding: 10px 15px 10px 30px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1.05rem;
}

.subcategory-item:hover {
    background-color: #f8f8f8;
}

.subcategory-item.active {
    background-color: #f0f0f0;
}

/* Overlay di sfondo quando il menu Ã¨ aperto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsiveness */
@media (max-width: 768px) {
    .menu-panel {
        width: 100%;
        left: -100%;
    }
}

/* Pulsante del menu nell'header */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-btn i {
    font-size: 1.2rem;
} 