/* --- REGOLE STRUTTURALI DI BASE --- */
body, #page-wrapper {
    background: #ffffff !important;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.container {
    max-width: 1440px; /* Sensazione di ampiezza premium */
    margin: 0 auto;
    padding: 0 20px; /* Aumentiamo un po' il margine laterale per l'equilibrio */
}

/* --- HEADER: STILI GENERALI --- */
.site-header {
    background-color: #ffffff;
    width: 100%;
}

.site-header ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- RIGA 1: TOP BAR (Info e Social) --- */
.header-top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eeeeee;
    font-size: 12px;
    height: 35px;
    display: flex;
    align-items: center;
}

.header-top-bar ul {
    display: flex;
    gap: 15px;
}

/* --- RIGA 2: MIDDLE (LOGO & AZIONI) --- */
.header-middle {
    padding: 10px 0;
}

.logo-area img {
    max-height: 50px !important;
    width: auto !important;
    display: block;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- ICONA E BADGE CARRELLO (Link Diretto) --- */
.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    padding-right: 5px;
}

.material-symbols-outlined {
    font-size: 28px;
    vertical-align: middle;
    color: #333;
    display: block;
}

/* Badge Oro sopra l'icona (Aggiornato da verde a oro) */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #b89146; /* Oro FarmyPet */
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    line-height: 1;
    z-index: 10;
}

.action-item a {
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.action-item a:hover, 
.action-item a:hover .material-symbols-outlined {
    color: #b89146 !important; /* Hover Oro */
}

/* --- FORMATTAZIONE MENU UTENTE (DROPDOWN) --- */
.dropdown-menu a, 
.dropdown-menu .block-menu a,
.dropdown-menu ul li a {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out;
}

/* Effetto Hover Profilo: Oro FarmyPet */
.dropdown-menu a:hover,
.dropdown-menu .block-menu a:hover {
    background-color: #f8f9fa !important;
    color: #b89146 !important; /* Oro */
    text-decoration: none !important;
	border-radius: 10px;
}

.dropdown-menu ul, 
.dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #f1f1f1;
}

/* --- RIGA 3: NAV CATEGORIE (Striscia Oro) --- */
.header-nav {
    background-color: #b89146; /* Oro FarmyPet */
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.header-nav a {
    color: #ffffff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 0;
    display: inline-block;
}

/* --- RIGA 4: MAXI SEARCH (Full Width & Responsive in Oro) --- */
.header-search-row .block-search,
.header-search-row .search-block-form {
    width: 100% !important;
    max-width: 100% !important;
}

.header-search-row form {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
}

.header-search-row input[type="search"],
.header-search-row .form-search,
.header-search-row .form-control {
    flex: 1 1 auto !important;
    width: 100% !important;    
    min-width: 100px !important; 
    height: 55px !important;
    border: 2px solid #b89146 !important; /* Bordo Oro */
    border-radius: 30px 0 0 30px !important;
    border-right: none !important;
    padding: 0 25px !important;
    box-sizing: border-box !important;
}

.header-search-row button,
.header-search-row input[type="submit"] {
    flex: 0 0 auto !important;
    height: 55px !important;
    padding: 0 40px !important;
    background-color: #b89146 !important; /* Pulsante Oro */
    color: white !important;
    border: 2px solid #b89146 !important;
    border-radius: 0 30px 30px 0 !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-search-row button:hover,
.header-search-row input[type="submit"]:hover {
    background-color: #c1912f !important; /* Oro scuro su hover */
    border-color: #c1912f !important;
}

.header-search-row .form-item,
.header-search-row .form-actions {
    margin: 0 !important;
    display: flex !important;
}

.header-search-row .form-item {
    flex-grow: 1 !important;
}

/* --- ADATTAMENTO PER SCHERMI PICCOLI (Mobile) --- */
@media (max-width: 768px) {
    .header-search-row .container {
        padding: 0 15px !important;
    }
    
    .header-search-row input[type="search"],
    .header-search-row .form-control {
        height: 45px !important;
        padding: 0 15px !important;
        font-size: 14px !important;
    }
    
    .header-search-row button,
    .header-search-row input[type="submit"] {
        height: 45px !important;
        padding: 0 20px !important;
        font-size: 13px !important;
    }
}

/* --- MAIN CONTENT --- */
main.container {
    margin-top: 30px;
    margin-bottom: 50px;
}




