
        /* --- HEADER --- */
        .main-header {
            text-align: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--secondary-color);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo img { height: 80px; transition: height 0.3s; }

        .icon-bar {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .icon-link {
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
			position: relative;             
        }
        
		
		.icon-link:hover {
			transform: scale(1.2);
		}
        
		#icon_cassa:hover {
			transform: scale(2);
		}

		#icon_basket_filled,
		#icon_empty_basket,
		#icon_cassa {
			display : none;
		}

        /* --- NAVIGATION --- */
        .nav-container {
            background-color: var(--primary-color);
            color: white;
            margin : 2px 5px;
            padding: 10px 0;
        }
.navig {
    padding: 12px 0;
    margin: 20px auto;
    max-width: 1200px;
    text-align: left;
    font-size: 14px;
    color: #666;
}

.navig a {
    display: inline-block;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-style: normal;  /* togli l'italic */
}

.navig a:hover {
    color: #000;
    text-decoration: underline;
}

.navig .home {
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.navig .home:hover {
    opacity: 1;
}

.navig .home img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.navig span {
    display: inline-block;
    margin: 0 8px;
    color: #ccc;
}

.navig span::before {
    content: "›";  /* carattere separatore semplice */
    font-size: 18px;
}
/* Container Categorie (rimane uguale, solitamente full width o standard) */
.nav-container-categorie {
    width: 100%;
    margin-bottom: 20px;
}

/* Container Fasce d'Età (ridotto al 60% con limite minimo) */
.nav-container-eta {
    width: 60%;
    min-width: 800px;
    max-width: 100%; /* Impedisce di rompere il layout su mobile */
    margin: 0 auto;  /* Lo centra orizzontalmente */
}

        .nav-list {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .nav-list li {
            text-transform: uppercase;
            font-size: 14px;
            cursor: pointer;
            text-align: center;

        }

        .nav-list li span {
            display: block;
            font-size: 12px;
            text-transform: lowercase;
            color: #ccc;
        }

       /* --- CHAT WIDGET --- */
       
    .cw-widget-container {
            max-width: 1200px;
            margin: 0 auto;
    }
       
.cw-input-wrapper {
    position: relative;
    z-index: 10;
}

.cw-input-box {
    background: white;
    border: 1.5px solid #d4c5b9;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.cw-input-box:focus-within {
    border-color: #c17d4a;
    box-shadow: 0 4px 16px rgba(193, 125, 74, 0.12);
}

.cw-input-box.cw-has-results {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cw-textarea {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 200px;
    min-height: 24px;
    line-height: 1.5;
    overflow-y: auto;
    background: transparent;
    color: #2d2d2d;
}

.cw-textarea::placeholder {
    color: #999;
}

.cw-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cw-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #c17d4a;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cw-send-btn:hover:not(:disabled) {
    background: #ab6d3f;
}

.cw-send-btn:disabled {
    background: #e8ddd2;
    cursor: not-allowed;
    opacity: 0.6;
}

.cw-send-btn svg {
    width: 18px;
    height: 18px;
}

.cw-results {
    display: none;
    background: white;
    border: 1.5px solid #c17d4a;
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    animation: cwSlideDown 0.2s ease-out;
}

.cw-results.cw-active {
    display: block;
}

@keyframes cwSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cw-results-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cw-results-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
}

.cw-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.cw-close-btn:hover {
    color: #2d2d2d;
}

.cw-results-body {
    padding: 20px;
}

.cw-result-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #f8f3ed;
    border-radius: 12px;
    border: 1px solid rgba(193, 125, 74, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.cw-result-item:hover {
    background: #f0e9dc;
    border-color: rgba(193, 125, 74, 0.3);
    transform: translateX(4px);
}

.cw-result-item:last-child {
    margin-bottom: 0;
}

.cw-result-title {
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 6px;
    font-size: 15px;
}

.cw-result-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cw-typing {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    display: none;
}

.cw-typing.cw-active {
    display: block;
}

.cw-typing-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.cw-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c17d4a;
    animation: cwTypingBounce 1.4s infinite ease-in-out;
}

.cw-typing-dot:nth-child(1) { animation-delay: 0s; }
.cw-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.cw-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes cwTypingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.cw-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.cw-results::-webkit-scrollbar {
    width: 8px;
}

.cw-results::-webkit-scrollbar-track {
    background: transparent;
}

.cw-results::-webkit-scrollbar-thumb {
    background: rgba(193, 125, 74, 0.2);
    border-radius: 4px;
}

.cw-results::-webkit-scrollbar-thumb:hover {
    background: rgba(193, 125, 74, 0.3);
}

@media (max-width: 768px) {
    .cw-widget-container {
        margin: 20px 16px;
    }
    .cw-results {
        max-height: 300px;
    }
}




/* prodotti risultati della chat */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 200px)); /* Forza 200px */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center; /* Centra le card */
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        }

        .product-header {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
            gap: 12px;
        }

        .brand-logo {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #f8f8f8;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
            transition: transform 0.2s;
            overflow: hidden;
        }

        .brand-logo:hover {
            transform: scale(1.05);
        }

        .brand-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .product-image img {
            width: 200px;
            height: 100%;
            object-fit: contain;
        }
        
        .product-description {
            flex: 1;
            font-size: 13px;
            color: #666;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .product-image-container {
            width: 100%;
            aspect-ratio: 1;
            background: #fafafa;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            cursor: pointer;
        }

        .product-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.3s;
        }

        .product-card:hover .product-image {
            transform: scale(1.05);
        }

        .product-footer {
            padding: 16px;
            text-align: center;
        }

        .product-category {
            font-size: 13px;
            color: #888;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .product-price {
            font-size: 24px;
            font-weight: 700;
            color: #1F8A89;
        }

        .product-price::after {
            content: ' €';
            font-size: 18px;
            font-weight: 600;
        }

        /* Responsive adjustments */
        @media (max-width: 1200px) {
            .products-container {
                grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .products-container {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
                gap: 15px;
            }

            .product-header {
                padding: 10px 12px;
            }

            .brand-logo {
                width: 35px;
                height: 35px;
            }

            .product-description {
                font-size: 12px;
            }

            .product-price {
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .products-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 10px;
            }
        }        
        
        

/* Pulsante Hamburger */
.menu-toggle {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 0;
}

/* Pannello Laterale */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Nascosto a sinistra */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.side-menu.open {
    left: 0; /* Scivola dentro */
}

/* Overlay Sfondo Scuro */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Stile Liste Interne */
.side-menu-content { padding: 20px; }
.side-menu-header { 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #f8f8f8;
}


/***************/
/* Header del Menu Laterale */
.side-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.side-menu-header h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color); /* O il tuo colore principale */
}

/* Pulsante X migliorato */
.side-menu-header .close-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu-header .close-btn:hover {
    background: #ffebee; /* Un leggero rossastro sullo sfondo */
    color: #d32f2f;      /* Rosso scuro per l'icona */
    transform: rotate(90deg);
}

/* Ottimizzazione liste verticali */
.nav-list-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list-vertical li {
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-list-vertical li:hover {
    background-color: #fcfcfc;
    color: var(--accent-color);
    padding-left: 25px; /* Piccolo scivolamento a destra al passaggio */
}

.side-menu-content h4 {
    padding: 20px 20px 10px 20px;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #999;
}


/* lista verticale del side menu */
.side-menu .nav-list-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ogni voce */
.side-menu .nav-list-vertical li {
    margin-bottom: 8px;
}

/* category-card nel side menu */
.side-menu .category-card {
    display: flex;              /* NON inline */
    width: 100%;                /* occupa tutto lo spazio */
    justify-content: center;    /* testo centrato */
    align-items: center;

    padding: 12px 16px;
    text-align: center;

    border-radius: 8px;
}



.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px; /* Leggermente più largo per comodità */
    width: 400px;
/*    height: 100vh; */
    background: #ffffff;
    z-index: 10001;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    transform: translateX(-450px); /* Usa transform invece di right per fluidità */
    right: -450px;
}

/* Header del Carrello */
.cart-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.cart-header h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
}

/* La X di chiusura migliorata */
.cart-header .close-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.cart-header .close-btn:hover {
    background: #eee;
    color: #000;
    transform: rotate(90deg); /* Effetto rotazione al passaggio */
}

/* Contenuto e Tabella */
.cart-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin; /* Per browser moderni */
}

.show_basket {
    width: 100%;
}

.show_basket td {
    padding: 15px 5px;
    border-bottom: 1px dotted #eee;
}

/* Selettore quantità più pulito */
.show_basket select {
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: 'Quicksand', sans-serif;
}

/* Footer e Bottone Checkout */
.cart-footer {
    padding: 25px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.02);
}

.btn-checkout {
    width: 100%;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 18px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 15px;
}

.btn-checkout:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* basket */
.show_basket {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.show_basket th { text-align: left; border-bottom: 2px solid #eee; padding: 10px 5px; }
.show_basket td { padding: 10px 5px; border-bottom: 1px solid #eee; vertical-align: middle; }
.show_basket img { border-radius: 4px; object-fit: cover; }
.basket_trash img { width: 20px; height: 20px; opacity: 0.6; transition: 0.2s; }
.basket_trash:hover img { opacity: 1; transform: scale(1.1); }

.total {
    font-weight: 700;       /* Grassetto marcato */
    font-size: 1.2rem;     /* Un po' più grande del testo normale */
    color: #2ecc71;        /* Un verde che richiama l'acquisto sicuro */
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 2px solid #eee;
    margin-top: 10px;
}
/* Badge numerico sul carrello */
.cart-badge {
    position: absolute;
    /* Valori negativi per portarlo "fuori" dall'ingombro dell'icona */
    top: -8px;    
    right: -10px; 
    
    background: #ff0000;
    color: white;
    border-radius: 50%;
    min-width: 18px;  /* Assicura che sia tondo anche con 1 solo numero */
    height: 18px;
    padding: 2px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* Un bordino bianco lo fa risaltare meglio sopra l'icona */
    border: 2px solid white; 
    pointer-events: none;
}

.btn-checkout {
    width: 100%;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}


.close-panel-btn {
    position: absolute;
    top: 15px;      /* Distanza dal bordo superiore */
    right: 15px;    /* Distanza dal bordo destro */
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;    /* Assicura che sia sopra l'immagine o il testo */
    padding: 5px;
}

.close-panel-btn:hover {
    color: #ff0000; /* Diventa rossa al passaggio */
    transform: scale(1.1);
}

.age-detail-panel {
    position: relative; /* Fondamentale per ancorare la X */

    display: none; /* Nascosto di default */
    width: 60%;
    min-width: 800px;
    max-width: 100%;
    margin: 10px auto;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.age-detail-content {
    display: flex;
    padding: 30px 50px 30px 30px; /* Aumentato il padding a destra (50px) */
    gap: 30px;
}
.age-left { flex: 1; text-align: left; }
.age-left img { max-width: 60%; border-radius: 5px; margin-bottom: 15px; float : left; padding:2px}

.age-right { flex: 1; border-left: 1px solid #eee; padding-left: 20px; }

.age-category-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.age-category-list li {
    padding: 8px;
    background: #f0f8ff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.age-category-list li a {
/* Rimuove qualsiasi sottolineatura di default */
    text-decoration: none !important; 
    color : black;
}

.age-description {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #444;
}


@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
        /* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .nav-container { display: none; }
            .logo img { height: 30px; }
            .products-container { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
            .product-image { height: 130px; }
        }

.mb-catalog-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.mb-catalog-btn {
  display: block;
  padding: 8px 12px;
  background: #f0f8f8;
  border: 1px solid #1F8A89;
  border-radius: 8px;
  color: #1F8A89;
  text-decoration: none;
  font-size: 0.83rem;
  transition: background 0.2s;
}
.mb-catalog-btn:hover {
  background: #CBE2E2;
}

.mbSendBtn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #1F8A89;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.mbSendBtn:hover {
  background: #166f6e;
}
.mbSendBtn svg {
  width: 18px;
  height: 18px;
}
