/* Nút Đăng nhập / Giỏ hàng trên header Fashion Amaze.
   Desktop: canh phải. Mobile (<= 767px): canh giữa và luôn hiển thị chữ. */
.sx-fa-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 12px 0 0;
}

.sx-fa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.sx-fa-btn:hover,
.sx-fa-btn:focus {
    border-color: var(--color-title, #df2e1b);
    color: var(--color-title, #df2e1b);
    text-decoration: none;
}

.sx-fa-btn .fa {
    font-size: 16px;
    line-height: 1;
    color: var(--color-title, #df2e1b);
}

.sx-fa-btn--cart {
    background: var(--color-title, #df2e1b);
    border-color: var(--color-title, #df2e1b);
    color: #ffffff;
}

.sx-fa-btn--cart .fa {
    color: #ffffff;
}

.sx-fa-btn--cart:hover,
.sx-fa-btn--cart:focus {
    background: #c02414;
    border-color: #c02414;
    color: #ffffff;
}

.sx-fa-btn__count {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.sx-fa-btn__count:empty {
    display: none;
}

@media (max-width: 767px) {
    .sx-fa-header-actions {
        justify-content: center;
        gap: 10px;
        margin: 4px 0 12px;
        padding: 0 10px;
    }

    .sx-fa-btn {
        flex: 0 1 auto;
        height: 40px;
        padding: 0 18px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .sx-fa-header-actions {
        gap: 8px;
    }

    .sx-fa-btn {
        padding: 0 12px;
        font-size: 12px;
    }
}
