.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-link {
    font-size: 20px;
    text-decoration: none;
}

.account-wrapper {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    padding: 10px;
    min-width: 160px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    border-radius: 8px;
    z-index: 9999;
}

.account-dropdown a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #333;
}

.account-dropdown a:hover {
    background: #f5f5f5;
}


/* Hover desktop */
.account-wrapper:hover .account-dropdown {
    display: block;
}

/* Mobile */
.account-dropdown.open {
    display: block;
}

.cart-wrapper {
    position: relative;
}



.cart-icon {
    position: relative;
    font-size: 20px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}


/* Mobile */
.mini-cart.open {
    display: block;
}

/* apertura */

.cart-wrapper {
    position: relative;
    display: inline-block; /* 👈 fondamentale */
}

.cart-icon:hover + .mini-cart {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}






.header-actions .mini-cart {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 15px;
    z-index: 9999;

    display: none;
}
.cart-wrapper:hover .mini-cart {
    display: block;
}

.cart-wrapper:hover .mini-cart {
    display: block;
}

.account-dropdown {
    top: calc(100% - 1px);
    margin-top: 0;
}

.account-wrapper:hover .account-dropdown {
    display: block;
}

.header-actions .mini-cart {
    transform: translateY(5px);
    transition: 0.2s;
}

.cart-wrapper:hover .mini-cart {
    transform: translateY(0);
}