/* 🔥 HEADER - Contenitore principale */
#header-container {
    max-width: 1200px;
    display: flex;
    align-items: flex-end; /* Allinea tutto verso il basso */
    justify-content: space-between;
    border-radius: 15px;
    margin: 0 auto 15px auto;
	margin-top:15px;

    background-color: none;
    height: auto;
    flex-wrap: nowrap;
    gap: 10px;
}

/* 🔥 Contenitore per il logo */
.logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end; /* Mantiene il logo verso il basso */
}

/* 🔥 Logo ingrandito */
.logo {
    height: 100px; /* Logo grande */
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
}

.logo:hover {
    transform: scale(1.1);
}

/* 🔥 Contenitore per la barra di ricerca */
.search-bar-container {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Allinea la barra di ricerca verso il basso */
    width: 100%;
    margin-top: 15px; /* Aggiunto per abbassare ulteriormente */
}

.search-bar {
    width: 60%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
}

/* 🔥 Contenitore per il bottone carrello */
.cart-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end; /* Allinea il carrello in basso */
    margin-top: 15px; /* Aggiunto per abbassarlo ulteriormente */
}

/* 🔥 Bottone carrello */
.cart-btn {
    background-color: #ff7e5f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    height: 50px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.cart-btn:hover {
    background-color: #e76a50;
    transform: scale(1.05);
}

/* 🔥 Numero articoli nel carrello */
#cart-count {
    background: white;
    color: #ff7e5f;
    padding: 5px 10px;
    border-radius: 50%;
    font-weight: bold;
    margin-left: 10px;
    font-size: 18px;
}

/* 🔥 Responsive Design per smartphone */
@media (max-width: 768px) {
    #header-container {
        flex-direction: column;
        align-items: center;
    }
    .logo-container {
        justify-content: center;
        margin-bottom: 10px;
    }
    .logo {
        height: 80px; /* Logo più grande su mobile */
    }
    .search-bar-container {
        width: 90%;
        order: 1;
        margin-top: 10px;
    }
    .search-bar {
        width: 100%;
        height: 45px;
    }
    .cart-container {
        order: 2;
        justify-content: center; /* 🔥 Centra il bottone */
        width: 100%;
        display: flex;
    }
    .cart-btn {
        width: 80%; /* 🔥 Ridotto per non occupare troppo spazio */
        height: 45px; /* 🔥 Più piccolo rispetto alla versione desktop */
        font-size: 18px; /* 🔥 Testo leggermente più piccolo */
        justify-content: center; /* 🔥 Centra il testo dentro il bottone */
        text-align: center;
    }
}
